|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@InterfaceAudience.Public @InterfaceStability.Stable public interface ContainerStatus
ContainerStatus represents the current status of a
Container.
It provides details such as:
ContainerId of the container.ContainerState of the container.
| Method Summary | |
|---|---|
ContainerId |
getContainerId()
Get the ContainerId of the container. |
String |
getDiagnostics()
Get diagnostic messages for failed containers. |
int |
getExitStatus()
Get the exit status for the container. |
ContainerState |
getState()
Get the ContainerState of the container. |
void |
setContainerId(ContainerId containerId)
|
void |
setDiagnostics(String diagnostics)
|
void |
setExitStatus(int exitStatus)
|
void |
setState(ContainerState state)
|
| Method Detail |
|---|
@InterfaceAudience.Public @InterfaceStability.Stable ContainerId getContainerId()
ContainerId of the container.
ContainerId of the container@InterfaceAudience.Private @InterfaceStability.Unstable void setContainerId(ContainerId containerId)
@InterfaceAudience.Public @InterfaceStability.Stable ContainerState getState()
ContainerState of the container.
ContainerState of the container@InterfaceAudience.Private @InterfaceStability.Unstable void setState(ContainerState state)
@InterfaceAudience.Public @InterfaceStability.Stable 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 invalid exit code equal to -1000;
Container 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 -100.
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 exit status of -101.
@InterfaceAudience.Private @InterfaceStability.Unstable void setExitStatus(int exitStatus)
@InterfaceAudience.Public @InterfaceStability.Stable String getDiagnostics()
@InterfaceAudience.Private @InterfaceStability.Unstable void setDiagnostics(String diagnostics)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||