public abstract class NMContainerStatus extends Object
ContainerStatus
is used both
inside YARN and by end-users.Constructor and Description |
---|
NMContainerStatus() |
Modifier and Type | Method and Description |
---|---|
abstract org.apache.hadoop.yarn.api.records.Resource |
getAllocatedResource()
Get the allocated
Resource of the container. |
abstract int |
getContainerExitStatus()
Get the final
exit status of the container. |
abstract org.apache.hadoop.yarn.api.records.ContainerId |
getContainerId()
Get the
ContainerId of the container. |
abstract org.apache.hadoop.yarn.api.records.ContainerState |
getContainerState() |
abstract long |
getCreationTime()
Get the time when the container is created
|
abstract String |
getDiagnostics()
Get the DiagnosticsInfo of the container.
|
abstract org.apache.hadoop.yarn.api.records.Priority |
getPriority()
Get the
Priority of the request. |
static NMContainerStatus |
newInstance(org.apache.hadoop.yarn.api.records.ContainerId containerId,
org.apache.hadoop.yarn.api.records.ContainerState containerState,
org.apache.hadoop.yarn.api.records.Resource allocatedResource,
String diagnostics,
int containerExitStatus,
org.apache.hadoop.yarn.api.records.Priority priority,
long creationTime) |
abstract void |
setAllocatedResource(org.apache.hadoop.yarn.api.records.Resource resource) |
abstract void |
setContainerExitStatus(int containerExitStatus) |
abstract void |
setContainerId(org.apache.hadoop.yarn.api.records.ContainerId containerId) |
abstract void |
setContainerState(org.apache.hadoop.yarn.api.records.ContainerState containerState) |
abstract void |
setCreationTime(long creationTime) |
abstract void |
setDiagnostics(String diagnostics) |
abstract void |
setPriority(org.apache.hadoop.yarn.api.records.Priority priority) |
public static NMContainerStatus newInstance(org.apache.hadoop.yarn.api.records.ContainerId containerId, org.apache.hadoop.yarn.api.records.ContainerState containerState, org.apache.hadoop.yarn.api.records.Resource allocatedResource, String diagnostics, int containerExitStatus, org.apache.hadoop.yarn.api.records.Priority priority, long creationTime)
public abstract org.apache.hadoop.yarn.api.records.ContainerId getContainerId()
ContainerId
of the container.ContainerId
of the container.public abstract void setContainerId(org.apache.hadoop.yarn.api.records.ContainerId containerId)
public abstract org.apache.hadoop.yarn.api.records.Resource getAllocatedResource()
Resource
of the container.Resource
of the container.public abstract void setAllocatedResource(org.apache.hadoop.yarn.api.records.Resource resource)
public abstract String getDiagnostics()
public abstract void setDiagnostics(String diagnostics)
public abstract org.apache.hadoop.yarn.api.records.ContainerState getContainerState()
public abstract void setContainerState(org.apache.hadoop.yarn.api.records.ContainerState containerState)
public abstract int getContainerExitStatus()
exit status
of the container.exit status
of the container.public abstract void setContainerExitStatus(int containerExitStatus)
public abstract org.apache.hadoop.yarn.api.records.Priority getPriority()
Priority
of the request.Priority
of the requestpublic abstract void setPriority(org.apache.hadoop.yarn.api.records.Priority priority)
public abstract long getCreationTime()
public abstract void setCreationTime(long creationTime)
Copyright © 2018 Apache Software Foundation. All Rights Reserved.