Class NMContainerStatusPBImpl
java.lang.Object
org.apache.hadoop.yarn.server.api.protocolrecords.NMContainerStatus
org.apache.hadoop.yarn.server.api.protocolrecords.impl.pb.NMContainerStatusPBImpl
-
Constructor Summary
ConstructorsConstructorDescriptionNMContainerStatusPBImpl(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProto proto) -
Method Summary
Modifier and TypeMethodDescriptionbooleanorg.apache.hadoop.yarn.api.records.ResourceGet the allocatedResourceof the container.longGet and set the Allocation tags associated with the container.intGet the finalexit statusof the container.org.apache.hadoop.yarn.api.records.ContainerIdGet theContainerIdof the container.org.apache.hadoop.yarn.api.records.ContainerStatelongGet the time when the container is created.Get the DiagnosticsInfo of the container.org.apache.hadoop.yarn.api.records.ExecutionTypeGet theExecutionTypeof the container.Get the node-label-expression in the original ResourceRequest.org.apache.hadoop.yarn.api.records.PriorityGet thePriorityof the request.org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProtogetProto()intinthashCode()voidsetAllocatedResource(org.apache.hadoop.yarn.api.records.Resource resource) voidsetAllocationRequestId(long allocationRequestId) Set the ID corresponding to the original allocation request.voidsetAllocationTags(Set<String> allocationTags) voidsetContainerExitStatus(int containerExitStatus) voidsetContainerId(org.apache.hadoop.yarn.api.records.ContainerId containerId) voidsetContainerState(org.apache.hadoop.yarn.api.records.ContainerState containerState) voidsetCreationTime(long creationTime) voidsetDiagnostics(String diagnosticsInfo) voidsetExecutionType(org.apache.hadoop.yarn.api.records.ExecutionType executionType) voidsetNodeLabelExpression(String nodeLabelExpression) voidsetPriority(org.apache.hadoop.yarn.api.records.Priority priority) voidsetVersion(int version) toString()Methods inherited from class org.apache.hadoop.yarn.server.api.protocolrecords.NMContainerStatus
newInstance, newInstance
-
Constructor Details
-
NMContainerStatusPBImpl
public NMContainerStatusPBImpl() -
NMContainerStatusPBImpl
public NMContainerStatusPBImpl(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProto proto)
-
-
Method Details
-
getProto
public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProto getProto() -
hashCode
public int hashCode() -
equals
-
toString
-
getAllocatedResource
public org.apache.hadoop.yarn.api.records.Resource getAllocatedResource()Description copied from class:NMContainerStatusGet the allocatedResourceof the container.- Specified by:
getAllocatedResourcein classNMContainerStatus- Returns:
- allocated
Resourceof the container.
-
getContainerId
public org.apache.hadoop.yarn.api.records.ContainerId getContainerId()Description copied from class:NMContainerStatusGet theContainerIdof the container.- Specified by:
getContainerIdin classNMContainerStatus- Returns:
ContainerIdof the container.
-
getDiagnostics
Description copied from class:NMContainerStatusGet the DiagnosticsInfo of the container.- Specified by:
getDiagnosticsin classNMContainerStatus- Returns:
- DiagnosticsInfo of the container
-
getContainerState
public org.apache.hadoop.yarn.api.records.ContainerState getContainerState()- Specified by:
getContainerStatein classNMContainerStatus
-
setAllocatedResource
public void setAllocatedResource(org.apache.hadoop.yarn.api.records.Resource resource) - Specified by:
setAllocatedResourcein classNMContainerStatus
-
setContainerId
public void setContainerId(org.apache.hadoop.yarn.api.records.ContainerId containerId) - Specified by:
setContainerIdin classNMContainerStatus
-
setDiagnostics
- Specified by:
setDiagnosticsin classNMContainerStatus
-
setContainerState
public void setContainerState(org.apache.hadoop.yarn.api.records.ContainerState containerState) - Specified by:
setContainerStatein classNMContainerStatus
-
getContainerExitStatus
public int getContainerExitStatus()Description copied from class:NMContainerStatusGet the finalexit statusof the container.- Specified by:
getContainerExitStatusin classNMContainerStatus- Returns:
- final
exit statusof the container.
-
setContainerExitStatus
public void setContainerExitStatus(int containerExitStatus) - Specified by:
setContainerExitStatusin classNMContainerStatus
-
getVersion
public int getVersion()- Overrides:
getVersionin classNMContainerStatus
-
setVersion
public void setVersion(int version) - Overrides:
setVersionin classNMContainerStatus
-
getPriority
public org.apache.hadoop.yarn.api.records.Priority getPriority()Description copied from class:NMContainerStatusGet thePriorityof the request.- Specified by:
getPriorityin classNMContainerStatus- Returns:
Priorityof the request
-
setPriority
public void setPriority(org.apache.hadoop.yarn.api.records.Priority priority) - Specified by:
setPriorityin classNMContainerStatus
-
getCreationTime
public long getCreationTime()Description copied from class:NMContainerStatusGet the time when the container is created.- Specified by:
getCreationTimein classNMContainerStatus- Returns:
- CreationTime.
-
setCreationTime
public void setCreationTime(long creationTime) - Specified by:
setCreationTimein classNMContainerStatus
-
getNodeLabelExpression
Description copied from class:NMContainerStatusGet the node-label-expression in the original ResourceRequest.- Specified by:
getNodeLabelExpressionin classNMContainerStatus- Returns:
- NodeLabelExpression.
-
setNodeLabelExpression
- Specified by:
setNodeLabelExpressionin classNMContainerStatus
-
getExecutionType
public org.apache.hadoop.yarn.api.records.ExecutionType getExecutionType()Description copied from class:NMContainerStatusGet theExecutionTypeof the container.- Overrides:
getExecutionTypein classNMContainerStatus- Returns:
ExecutionTypeof the container
-
setExecutionType
public void setExecutionType(org.apache.hadoop.yarn.api.records.ExecutionType executionType) - Overrides:
setExecutionTypein classNMContainerStatus
-
getAllocationRequestId
public long getAllocationRequestId()- Specified by:
getAllocationRequestIdin classNMContainerStatus- Returns:
- the ID corresponding to the original allocation request.
-
setAllocationRequestId
public void setAllocationRequestId(long allocationRequestId) Description copied from class:NMContainerStatusSet the ID corresponding to the original allocation request.- Specified by:
setAllocationRequestIdin classNMContainerStatus- Parameters:
allocationRequestId- the ID corresponding to the original allocation request.
-
getAllocationTags
Description copied from class:NMContainerStatusGet and set the Allocation tags associated with the container.- Overrides:
getAllocationTagsin classNMContainerStatus- Returns:
- Allocation tags.
-
setAllocationTags
- Overrides:
setAllocationTagsin classNMContainerStatus
-