public abstract class PreemptionCandidatesSelector extends Object
| Modifier and Type | Field and Description | 
|---|---|
| protected CapacitySchedulerPreemptionContext | preemptionContext | 
| protected org.apache.hadoop.yarn.util.resource.ResourceCalculator | rc | 
| Modifier and Type | Method and Description | 
|---|---|
| long | getMaximumKillWaitTimeMs() | 
| abstract Map<org.apache.hadoop.yarn.api.records.ApplicationAttemptId,Set<RMContainer>> | selectCandidates(Map<org.apache.hadoop.yarn.api.records.ApplicationAttemptId,Set<RMContainer>> selectedCandidates,
                org.apache.hadoop.yarn.api.records.Resource clusterResource,
                org.apache.hadoop.yarn.api.records.Resource totalPreemptedResourceAllowed)Get preemption candidates from computed resource sharing and already
 selected candidates. | 
| void | setMaximumKillWaitTime(long maximumKillWaitTime) | 
protected CapacitySchedulerPreemptionContext preemptionContext
protected org.apache.hadoop.yarn.util.resource.ResourceCalculator rc
public abstract Map<org.apache.hadoop.yarn.api.records.ApplicationAttemptId,Set<RMContainer>> selectCandidates(Map<org.apache.hadoop.yarn.api.records.ApplicationAttemptId,Set<RMContainer>> selectedCandidates, org.apache.hadoop.yarn.api.records.Resource clusterResource, org.apache.hadoop.yarn.api.records.Resource totalPreemptedResourceAllowed)
selectedCandidates - already selected candidates from previous policiesclusterResource - total resourcetotalPreemptedResourceAllowed - how many resources allowed to be
                                      preempted in this round. Should be
                                      updated(in-place set) after the callpublic long getMaximumKillWaitTimeMs()
public void setMaximumKillWaitTime(long maximumKillWaitTime)
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.