java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.preemption.PreemptionManager

public class PreemptionManager extends Object
  • Constructor Details

    • PreemptionManager

      public PreemptionManager()
  • Method Details

    • refreshQueues

      public void refreshQueues(CSQueue parent, CSQueue current)
    • addKillableContainer

      public void addKillableContainer(KillableContainer container)
    • removeKillableContainer

      public void removeKillableContainer(KillableContainer container)
    • moveKillableContainer

      public void moveKillableContainer(KillableContainer oldContainer, KillableContainer newContainer)
    • updateKillableContainerResource

      public void updateKillableContainerResource(KillableContainer container, org.apache.hadoop.yarn.api.records.Resource oldResource, org.apache.hadoop.yarn.api.records.Resource newResource)
    • getKillableContainersMap

      @VisibleForTesting public Map<org.apache.hadoop.yarn.api.records.ContainerId,RMContainer> getKillableContainersMap(String queueName, String partition)
    • getKillableContainers

      public Iterator<RMContainer> getKillableContainers(String queueName, String partition)
    • getKillableResource

      public org.apache.hadoop.yarn.api.records.Resource getKillableResource(String queueName, String partition)
    • getShallowCopyOfPreemptableQueues

      public Map<String,PreemptableQueue> getShallowCopyOfPreemptableQueues()