public class ComponentInstanceState extends Object
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
log |
| Constructor and Description |
|---|
ComponentInstanceState(String componentName,
org.apache.hadoop.yarn.api.records.ContainerId containerId,
String applicationId) |
ComponentInstanceState(String componentName,
org.apache.hadoop.yarn.api.records.ContainerId containerId,
String applicationId,
Map<String,State> pkgStatuses) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyCommandResult(CommandResult result,
Command command) |
void |
applyCommandResult(CommandResult result,
Command command,
String pkg) |
void |
commandIssued(Command command) |
void |
commandIssued(Command command,
boolean isInUpgradeMode) |
boolean |
equals(Object o) |
String |
getComponentName() |
Boolean |
getConfigReported() |
org.apache.hadoop.yarn.api.records.ContainerId |
getContainerId() |
ContainerState |
getContainerState() |
long |
getLastHeartbeat() |
Command |
getNextCommand() |
Command |
getNextCommand(boolean isInUpgradeMode) |
String |
getNextPkgToInstall() |
State |
getState() |
State |
getTargetState() |
int |
hashCode() |
boolean |
hasPendingCommand() |
ContainerState |
heartbeat(long heartbeatTime)
Update the heartbeat, and change container state
to mark as healthy if appropriate
|
boolean |
isStopInitiated() |
void |
setConfigReported(Boolean configReported) |
void |
setContainerState(ContainerState containerState) |
protected void |
setState(State state) |
void |
setStopInitiated(boolean stopInitiated) |
void |
setTargetState(State targetState) |
String |
toString() |
public ComponentInstanceState(String componentName, org.apache.hadoop.yarn.api.records.ContainerId containerId, String applicationId)
public String getComponentName()
public Boolean getConfigReported()
public void setConfigReported(Boolean configReported)
public ContainerState getContainerState()
public void setContainerState(ContainerState containerState)
public long getLastHeartbeat()
public ContainerState heartbeat(long heartbeatTime)
heartbeatTime - last time the heartbeat was seenpublic org.apache.hadoop.yarn.api.records.ContainerId getContainerId()
public void commandIssued(Command command)
public void commandIssued(Command command, boolean isInUpgradeMode)
public void applyCommandResult(CommandResult result, Command command, String pkg)
public void applyCommandResult(CommandResult result, Command command)
public boolean hasPendingCommand()
public Command getNextCommand()
public Command getNextCommand(boolean isInUpgradeMode)
public State getState()
protected void setState(State state)
public State getTargetState()
public void setTargetState(State targetState)
public String getNextPkgToInstall()
public boolean isStopInitiated()
public void setStopInitiated(boolean stopInitiated)
Copyright © 2014–2015 The Apache Software Foundation. All rights reserved.