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 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

      Map<String,List<Map<String,String>>> getExposedPorts()
    • setExposedPorts

      void setExposedPorts(Map<String,List<Map<String,String>>> exposed)
    • 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 NM LocalScheduler).
      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

      Set<String> getAllocationTags()
      Return SchedulingRequest.getAllocationTags() specified by AM.
      Returns:
      allocation tags, could be null/empty