public class NMContainerStatusPBImpl extends NMContainerStatus
| Constructor and Description |
|---|
NMContainerStatusPBImpl() |
NMContainerStatusPBImpl(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProto proto) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
org.apache.hadoop.yarn.api.records.Resource |
getAllocatedResource()
Get the allocated
Resource of the container. |
long |
getAllocationRequestId() |
Set<String> |
getAllocationTags()
Get and set the Allocation tags associated with the container.
|
int |
getContainerExitStatus()
Get the final
exit status of the container. |
org.apache.hadoop.yarn.api.records.ContainerId |
getContainerId()
Get the
ContainerId of the container. |
org.apache.hadoop.yarn.api.records.ContainerState |
getContainerState() |
long |
getCreationTime()
Get the time when the container is created
|
String |
getDiagnostics()
Get the DiagnosticsInfo of the container.
|
org.apache.hadoop.yarn.api.records.ExecutionType |
getExecutionType()
Get the
ExecutionType of the container. |
String |
getNodeLabelExpression()
Get the node-label-expression in the original ResourceRequest
|
org.apache.hadoop.yarn.api.records.Priority |
getPriority()
Get the
Priority of the request. |
org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProto |
getProto() |
int |
getVersion() |
int |
hashCode() |
void |
setAllocatedResource(org.apache.hadoop.yarn.api.records.Resource resource) |
void |
setAllocationRequestId(long allocationRequestId)
Set the ID corresponding to the original allocation request.
|
void |
setAllocationTags(Set<String> allocationTags) |
void |
setContainerExitStatus(int containerExitStatus) |
void |
setContainerId(org.apache.hadoop.yarn.api.records.ContainerId containerId) |
void |
setContainerState(org.apache.hadoop.yarn.api.records.ContainerState containerState) |
void |
setCreationTime(long creationTime) |
void |
setDiagnostics(String diagnosticsInfo) |
void |
setExecutionType(org.apache.hadoop.yarn.api.records.ExecutionType executionType) |
void |
setNodeLabelExpression(String nodeLabelExpression) |
void |
setPriority(org.apache.hadoop.yarn.api.records.Priority priority) |
void |
setVersion(int version) |
String |
toString() |
newInstance, newInstancepublic NMContainerStatusPBImpl()
public NMContainerStatusPBImpl(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProto proto)
public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProto getProto()
public org.apache.hadoop.yarn.api.records.Resource getAllocatedResource()
NMContainerStatusResource of the container.getAllocatedResource in class NMContainerStatusResource of the container.public org.apache.hadoop.yarn.api.records.ContainerId getContainerId()
NMContainerStatusContainerId of the container.getContainerId in class NMContainerStatusContainerId of the container.public String getDiagnostics()
NMContainerStatusgetDiagnostics in class NMContainerStatuspublic org.apache.hadoop.yarn.api.records.ContainerState getContainerState()
getContainerState in class NMContainerStatuspublic void setAllocatedResource(org.apache.hadoop.yarn.api.records.Resource resource)
setAllocatedResource in class NMContainerStatuspublic void setContainerId(org.apache.hadoop.yarn.api.records.ContainerId containerId)
setContainerId in class NMContainerStatuspublic void setDiagnostics(String diagnosticsInfo)
setDiagnostics in class NMContainerStatuspublic void setContainerState(org.apache.hadoop.yarn.api.records.ContainerState containerState)
setContainerState in class NMContainerStatuspublic int getContainerExitStatus()
NMContainerStatusexit status of the container.getContainerExitStatus in class NMContainerStatusexit status of the container.public void setContainerExitStatus(int containerExitStatus)
setContainerExitStatus in class NMContainerStatuspublic int getVersion()
getVersion in class NMContainerStatuspublic void setVersion(int version)
setVersion in class NMContainerStatuspublic org.apache.hadoop.yarn.api.records.Priority getPriority()
NMContainerStatusPriority of the request.getPriority in class NMContainerStatusPriority of the requestpublic void setPriority(org.apache.hadoop.yarn.api.records.Priority priority)
setPriority in class NMContainerStatuspublic long getCreationTime()
NMContainerStatusgetCreationTime in class NMContainerStatuspublic void setCreationTime(long creationTime)
setCreationTime in class NMContainerStatuspublic String getNodeLabelExpression()
NMContainerStatusgetNodeLabelExpression in class NMContainerStatuspublic void setNodeLabelExpression(String nodeLabelExpression)
setNodeLabelExpression in class NMContainerStatuspublic org.apache.hadoop.yarn.api.records.ExecutionType getExecutionType()
NMContainerStatusExecutionType of the container.getExecutionType in class NMContainerStatusExecutionType of the containerpublic void setExecutionType(org.apache.hadoop.yarn.api.records.ExecutionType executionType)
setExecutionType in class NMContainerStatuspublic long getAllocationRequestId()
getAllocationRequestId in class NMContainerStatuspublic void setAllocationRequestId(long allocationRequestId)
NMContainerStatussetAllocationRequestId in class NMContainerStatusallocationRequestId - the ID corresponding to the original
allocation request.public Set<String> getAllocationTags()
NMContainerStatusgetAllocationTags in class NMContainerStatuspublic void setAllocationTags(Set<String> allocationTags)
setAllocationTags in class NMContainerStatusCopyright © 2008–2023 Apache Software Foundation. All rights reserved.