java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.allocator.ContainerAllocation

public class ContainerAllocation extends Object
  • Field Details

    • LOCALITY_SKIPPED

      public static final ContainerAllocation LOCALITY_SKIPPED
      Skip the locality (e.g. node-local, rack-local, any), and look at other localities of the same priority
    • PRIORITY_SKIPPED

      public static final ContainerAllocation PRIORITY_SKIPPED
      Skip the priority, and look at other priorities of the same application
    • APP_SKIPPED

      public static final ContainerAllocation APP_SKIPPED
      Skip the application, and look at other applications of the same queue
    • QUEUE_SKIPPED

      public static final ContainerAllocation QUEUE_SKIPPED
      Skip the leaf-queue, and look at other queues of the same parent queue
  • Constructor Details

    • ContainerAllocation

      public ContainerAllocation(RMContainer containerToBeUnreserved, org.apache.hadoop.yarn.api.records.Resource resourceToBeAllocated, AllocationState state)
  • Method Details

    • getContainerToBeUnreserved

      public RMContainer getContainerToBeUnreserved()
    • getResourceToBeAllocated

      public org.apache.hadoop.yarn.api.records.Resource getResourceToBeAllocated()
    • getAllocationState

      public AllocationState getAllocationState()
    • getContainerNodeType

      public NodeType getContainerNodeType()
    • getUpdatedContainer

      public RMContainer getUpdatedContainer()
    • setToKillContainers

      public void setToKillContainers(List<RMContainer> toKillContainers)
    • getToKillContainers

      public List<RMContainer> getToKillContainers()