|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.yarn.api.records.ProtoBase<YarnProtos.ContainerStatusProto>
org.apache.hadoop.yarn.api.records.impl.pb.ContainerStatusPBImpl
public class ContainerStatusPBImpl
| Constructor Summary | |
|---|---|
ContainerStatusPBImpl()
|
|
ContainerStatusPBImpl(YarnProtos.ContainerStatusProto proto)
|
|
| 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. |
YarnProtos.ContainerStatusProto |
getProto()
|
ContainerState |
getState()
Get the ContainerState of the container. |
void |
setContainerId(ContainerId containerId)
|
void |
setDiagnostics(String diagnostics)
|
void |
setExitStatus(int exitStatus)
|
void |
setState(ContainerState state)
|
| Methods inherited from class org.apache.hadoop.yarn.api.records.ProtoBase |
|---|
convertFromProtoFormat, convertToProtoFormat, equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ContainerStatusPBImpl()
public ContainerStatusPBImpl(YarnProtos.ContainerStatusProto proto)
| Method Detail |
|---|
public YarnProtos.ContainerStatusProto getProto()
getProto in class ProtoBase<YarnProtos.ContainerStatusProto>public ContainerState getState()
ContainerStatusContainerState of the container.
getState in interface ContainerStatusContainerState of the containerpublic void setState(ContainerState state)
setState in interface ContainerStatuspublic ContainerId getContainerId()
ContainerStatusContainerId of the container.
getContainerId in interface ContainerStatusContainerId of the containerpublic void setContainerId(ContainerId containerId)
setContainerId in interface ContainerStatuspublic int getExitStatus()
ContainerStatusGet 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.
getExitStatus in interface ContainerStatuspublic void setExitStatus(int exitStatus)
setExitStatus in interface ContainerStatuspublic String getDiagnostics()
ContainerStatus
getDiagnostics in interface ContainerStatuspublic void setDiagnostics(String diagnostics)
setDiagnostics in interface ContainerStatus
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||