|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.yarn.api.records.ContainerStatus
@InterfaceAudience.Public @InterfaceStability.Stable public abstract class ContainerStatus
ContainerStatus represents the current status of a
Container.
It provides details such as:
ContainerId of the container.ContainerState of the container.
| Constructor Summary | |
|---|---|
ContainerStatus()
|
|
| Method Summary | |
|---|---|
abstract ContainerId |
getContainerId()
Get the ContainerId of the container. |
abstract String |
getDiagnostics()
Get diagnostic messages for failed containers. |
abstract int |
getExitStatus()
Get the exit status for the container. |
abstract ContainerState |
getState()
Get the ContainerState of the container. |
static ContainerStatus |
newInstance(ContainerId containerId,
ContainerState containerState,
String diagnostics,
int exitStatus)
|
abstract void |
setContainerId(ContainerId containerId)
|
abstract void |
setDiagnostics(String diagnostics)
|
abstract void |
setExitStatus(int exitStatus)
|
abstract void |
setState(ContainerState state)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContainerStatus()
| Method Detail |
|---|
@InterfaceAudience.Private
@InterfaceStability.Unstable
public static ContainerStatus newInstance(ContainerId containerId,
ContainerState containerState,
String diagnostics,
int exitStatus)
@InterfaceAudience.Public @InterfaceStability.Stable public abstract ContainerId getContainerId()
ContainerId of the container.
ContainerId of the container@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setContainerId(ContainerId containerId)
@InterfaceAudience.Public @InterfaceStability.Stable public abstract ContainerState getState()
ContainerState of the container.
ContainerState of the container@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setState(ContainerState state)
@InterfaceAudience.Public @InterfaceStability.Unstable public abstract int getExitStatus()
Get the exit status for the container.
Note: This is valid only for completed containers i.e. containers
with state ContainerState.COMPLETE.
Otherwise, it returns an ContainerExitStatus.INVALID.
Containers killed by the framework, either due to being released by the application or being 'lost' due to node failures etc. have a special exit code of ContainerExitStatus.ABORTED.
When threshold number of the nodemanager-local-directories or threshold number of the nodemanager-log-directories become bad, then container is not launched and is exited with ContainersExitStatus.DISKS_FAILED.
@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setExitStatus(int exitStatus)
@InterfaceAudience.Public @InterfaceStability.Stable public abstract String getDiagnostics()
@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setDiagnostics(String diagnostics)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||