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. |
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 |
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, newInstance
public 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()
NMContainerStatus
Resource
of the container.getAllocatedResource
in class NMContainerStatus
Resource
of the container.public org.apache.hadoop.yarn.api.records.ContainerId getContainerId()
NMContainerStatus
ContainerId
of the container.getContainerId
in class NMContainerStatus
ContainerId
of the container.public String getDiagnostics()
NMContainerStatus
getDiagnostics
in class NMContainerStatus
public org.apache.hadoop.yarn.api.records.ContainerState getContainerState()
getContainerState
in class NMContainerStatus
public void setAllocatedResource(org.apache.hadoop.yarn.api.records.Resource resource)
setAllocatedResource
in class NMContainerStatus
public void setContainerId(org.apache.hadoop.yarn.api.records.ContainerId containerId)
setContainerId
in class NMContainerStatus
public void setDiagnostics(String diagnosticsInfo)
setDiagnostics
in class NMContainerStatus
public void setContainerState(org.apache.hadoop.yarn.api.records.ContainerState containerState)
setContainerState
in class NMContainerStatus
public int getContainerExitStatus()
NMContainerStatus
exit status
of the container.getContainerExitStatus
in class NMContainerStatus
exit status
of the container.public void setContainerExitStatus(int containerExitStatus)
setContainerExitStatus
in class NMContainerStatus
public int getVersion()
getVersion
in class NMContainerStatus
public void setVersion(int version)
setVersion
in class NMContainerStatus
public org.apache.hadoop.yarn.api.records.Priority getPriority()
NMContainerStatus
Priority
of the request.getPriority
in class NMContainerStatus
Priority
of the requestpublic void setPriority(org.apache.hadoop.yarn.api.records.Priority priority)
setPriority
in class NMContainerStatus
public long getCreationTime()
NMContainerStatus
getCreationTime
in class NMContainerStatus
public void setCreationTime(long creationTime)
setCreationTime
in class NMContainerStatus
public String getNodeLabelExpression()
NMContainerStatus
getNodeLabelExpression
in class NMContainerStatus
public void setNodeLabelExpression(String nodeLabelExpression)
setNodeLabelExpression
in class NMContainerStatus
public org.apache.hadoop.yarn.api.records.ExecutionType getExecutionType()
NMContainerStatus
ExecutionType
of the container.getExecutionType
in class NMContainerStatus
ExecutionType
of the containerpublic void setExecutionType(org.apache.hadoop.yarn.api.records.ExecutionType executionType)
setExecutionType
in class NMContainerStatus
Copyright © 2020 Apache Software Foundation. All rights reserved.