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 long |
getAllocationRequestId() |
Set<String> |
getAllocationTags()
Get and set the Allocation tags associated with 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.
|
org.apache.hadoop.yarn.api.records.ExecutionType |
getExecutionType()
Get the
ExecutionType of the container. |
abstract String |
getNodeLabelExpression()
Get the node-label-expression in the original ResourceRequest.
|
abstract org.apache.hadoop.yarn.api.records.Priority |
getPriority()
Get the
Priority of the request. |
int |
getVersion() |
static NMContainerStatus |
newInstance(org.apache.hadoop.yarn.api.records.ContainerId containerId,
int version,
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) |
static NMContainerStatus |
newInstance(org.apache.hadoop.yarn.api.records.ContainerId containerId,
int version,
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,
String nodeLabelExpression,
org.apache.hadoop.yarn.api.records.ExecutionType executionType,
long allocationRequestId) |
abstract void |
setAllocatedResource(org.apache.hadoop.yarn.api.records.Resource resource) |
abstract void |
setAllocationRequestId(long allocationRequestId)
Set the ID corresponding to the original allocation request.
|
void |
setAllocationTags(Set<String> allocationTags) |
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) |
void |
setExecutionType(org.apache.hadoop.yarn.api.records.ExecutionType executionType) |
abstract void |
setNodeLabelExpression(String nodeLabelExpression) |
abstract void |
setPriority(org.apache.hadoop.yarn.api.records.Priority priority) |
void |
setVersion(int version) |
public static NMContainerStatus newInstance(org.apache.hadoop.yarn.api.records.ContainerId containerId, int version, 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 static NMContainerStatus newInstance(org.apache.hadoop.yarn.api.records.ContainerId containerId, int version, 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, String nodeLabelExpression, org.apache.hadoop.yarn.api.records.ExecutionType executionType, long allocationRequestId)
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)
public abstract String getNodeLabelExpression()
public abstract void setNodeLabelExpression(String nodeLabelExpression)
public abstract long getAllocationRequestId()
public abstract void setAllocationRequestId(long allocationRequestId)
allocationRequestId
- the ID corresponding to the original
allocation request.public int getVersion()
public void setVersion(int version)
public org.apache.hadoop.yarn.api.records.ExecutionType getExecutionType()
ExecutionType
of the container.ExecutionType
of the containerpublic void setExecutionType(org.apache.hadoop.yarn.api.records.ExecutionType executionType)
public Set<String> getAllocationTags()
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.