@InterfaceAudience.Public @InterfaceStability.Stable public abstract class ContainerStatus extends Object
ContainerStatus
represents the current status of a
Container
.
It provides details such as:
ContainerId
of the container.ContainerState
of the container.Constructor and Description |
---|
ContainerStatus() |
Modifier and Type | Method and Description |
---|---|
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. |
public ContainerStatus()
@InterfaceAudience.Public @InterfaceStability.Stable public abstract ContainerId getContainerId()
ContainerId
of the container.ContainerId
of the container@InterfaceAudience.Public @InterfaceStability.Stable public abstract ContainerState getState()
ContainerState
of the container.ContainerState
of the container@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.Public @InterfaceStability.Stable public abstract String getDiagnostics()
Copyright © 2015 Apache Software Foundation. All rights reserved.