Class PreemptionManager
java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.preemption.PreemptionManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddKillableContainer(KillableContainer container) getKillableContainers(String queueName, String partition) Map<org.apache.hadoop.yarn.api.records.ContainerId,RMContainer> getKillableContainersMap(String queueName, String partition) org.apache.hadoop.yarn.api.records.ResourcegetKillableResource(String queueName, String partition) voidmoveKillableContainer(KillableContainer oldContainer, KillableContainer newContainer) voidrefreshQueues(CSQueue parent, CSQueue current) voidremoveKillableContainer(KillableContainer container) voidupdateKillableContainerResource(KillableContainer container, org.apache.hadoop.yarn.api.records.Resource oldResource, org.apache.hadoop.yarn.api.records.Resource newResource)
-
Constructor Details
-
PreemptionManager
public PreemptionManager()
-
-
Method Details
-
refreshQueues
-
addKillableContainer
-
removeKillableContainer
-
moveKillableContainer
-
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
-
getKillableResource
-
getShallowCopyOfPreemptableQueues
-