public class NMContainerStatusPBImpl extends NMContainerStatus
Constructor and Description |
---|
NMContainerStatusPBImpl() |
NMContainerStatusPBImpl(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.Priority |
getPriority()
Get the
Priority of the request. |
YarnServerCommonServiceProtos.NMContainerStatusProto |
getProto() |
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 |
setPriority(org.apache.hadoop.yarn.api.records.Priority priority) |
String |
toString() |
newInstance
public NMContainerStatusPBImpl()
public NMContainerStatusPBImpl(YarnServerCommonServiceProtos.NMContainerStatusProto proto)
public 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 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
Copyright © 2018 Apache Software Foundation. All Rights Reserved.