Interface RMContainer
- All Superinterfaces:
Comparable<RMContainer>,org.apache.hadoop.yarn.event.EventHandler<RMContainerEvent>
- All Known Implementing Classes:
RMContainerImpl
public interface RMContainer
extends org.apache.hadoop.yarn.event.EventHandler<RMContainerEvent>, Comparable<RMContainer>
Represents the ResourceManager's view of an application container. See
RMContainerImpl for an implementation. Containers may be in one
of several states, given in RMContainerState. An RMContainer
instance may exist even if there is no actual running container, such as
when resources are being reserved to fill space for a future container
allocation.-
Method Summary
Modifier and TypeMethodDescriptionbooleanorg.apache.hadoop.yarn.api.records.ContainerReportorg.apache.hadoop.yarn.api.records.NodeIdorg.apache.hadoop.yarn.api.records.Resourceorg.apache.hadoop.yarn.api.records.Priorityorg.apache.hadoop.yarn.api.records.Resourceorg.apache.hadoop.yarn.server.scheduler.SchedulerRequestKeyReturnSchedulingRequest.getAllocationTags()specified by AM.org.apache.hadoop.yarn.api.records.ApplicationAttemptIdorg.apache.hadoop.yarn.api.records.Containerintorg.apache.hadoop.yarn.api.records.ContainerIdorg.apache.hadoop.yarn.api.records.ContainerStatelongorg.apache.hadoop.yarn.api.records.ExecutionTypelongorg.apache.hadoop.yarn.api.records.Resourceorg.apache.hadoop.yarn.api.records.NodeIdorg.apache.hadoop.yarn.api.records.NodeIdorg.apache.hadoop.yarn.api.records.Resourceorg.apache.hadoop.yarn.server.scheduler.SchedulerRequestKeygetState()booleanbooleanIf the container was allocated by a container other than the Resource Manager (e.g., the distributed scheduler in the NMLocalScheduler).voidsetContainerId(org.apache.hadoop.yarn.api.records.ContainerId containerId) voidMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface org.apache.hadoop.yarn.event.EventHandler
handle
-
Method Details
-
getContainerId
org.apache.hadoop.yarn.api.records.ContainerId getContainerId() -
setContainerId
void setContainerId(org.apache.hadoop.yarn.api.records.ContainerId containerId) -
getApplicationAttemptId
org.apache.hadoop.yarn.api.records.ApplicationAttemptId getApplicationAttemptId() -
getState
RMContainerState getState() -
getContainer
org.apache.hadoop.yarn.api.records.Container getContainer() -
getReservedResource
org.apache.hadoop.yarn.api.records.Resource getReservedResource() -
getReservedNode
org.apache.hadoop.yarn.api.records.NodeId getReservedNode() -
getReservedSchedulerKey
org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey getReservedSchedulerKey() -
getAllocatedResource
org.apache.hadoop.yarn.api.records.Resource getAllocatedResource() -
getLastConfirmedResource
org.apache.hadoop.yarn.api.records.Resource getLastConfirmedResource() -
getAllocatedNode
org.apache.hadoop.yarn.api.records.NodeId getAllocatedNode() -
getAllocatedSchedulerKey
org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey getAllocatedSchedulerKey() -
getAllocatedPriority
org.apache.hadoop.yarn.api.records.Priority getAllocatedPriority() -
getCreationTime
long getCreationTime() -
getFinishTime
long getFinishTime() -
getDiagnosticsInfo
String getDiagnosticsInfo() -
getLogURL
String getLogURL() -
getContainerExitStatus
int getContainerExitStatus() -
getContainerState
org.apache.hadoop.yarn.api.records.ContainerState getContainerState() -
createContainerReport
org.apache.hadoop.yarn.api.records.ContainerReport createContainerReport() -
isAMContainer
boolean isAMContainer() -
getContainerRequest
ContainerRequest getContainerRequest() -
getNodeHttpAddress
String getNodeHttpAddress() -
getExposedPorts
-
setExposedPorts
-
getNodeLabelExpression
String getNodeLabelExpression() -
getQueueName
String getQueueName() -
getExecutionType
org.apache.hadoop.yarn.api.records.ExecutionType getExecutionType() -
isRemotelyAllocated
boolean isRemotelyAllocated()If the container was allocated by a container other than the Resource Manager (e.g., the distributed scheduler in the NMLocalScheduler).- Returns:
- If the container was allocated remotely.
-
getAllocatedOrReservedResource
org.apache.hadoop.yarn.api.records.Resource getAllocatedOrReservedResource() -
completed
boolean completed() -
getNodeId
org.apache.hadoop.yarn.api.records.NodeId getNodeId() -
getAllocationTags
ReturnSchedulingRequest.getAllocationTags()specified by AM.- Returns:
- allocation tags, could be null/empty
-