|
Move Method package sortContainers(containers List<RMContainer>) : void from class org.apache.hadoop.yarn.server.resourcemanager.monitor.capacity.ProportionalCapacityPreemptionPolicy to package sortContainers(containers List<RMContainer>) : void from class org.apache.hadoop.yarn.server.resourcemanager.monitor.capacity.FifoCandidatesSelector |
From |
To |
|
Move Method private resetCapacity(rc ResourceCalculator, clusterResource Resource, queues Collection<TempQueuePerPartition>, ignoreGuar boolean) : void from class org.apache.hadoop.yarn.server.resourcemanager.monitor.capacity.ProportionalCapacityPreemptionPolicy to private resetCapacity(rc ResourceCalculator, clusterResource Resource, queues Collection<TempQueuePerPartition>, ignoreGuar boolean) : void from class org.apache.hadoop.yarn.server.resourcemanager.monitor.capacity.PreemptableResourceCalculator |
From |
To |
|
Move Method private tryPreemptContainerAndDeductResToObtain(resourceToObtainByPartitions Map<String,Resource>, rmContainer RMContainer, clusterResource Resource, preemptMap Map<ApplicationAttemptId,Set<RMContainer>>) : boolean from class org.apache.hadoop.yarn.server.resourcemanager.monitor.capacity.ProportionalCapacityPreemptionPolicy to private tryPreemptContainerAndDeductResToObtain(resourceToObtainByPartitions Map<String,Resource>, rmContainer RMContainer, clusterResource Resource, preemptMap Map<ApplicationAttemptId,Set<RMContainer>>, totalPreemptionAllowed Resource) : boolean from class org.apache.hadoop.yarn.server.resourcemanager.monitor.capacity.FifoCandidatesSelector |
From |
To |
|
Move Method private computeIdealResourceDistribution(rc ResourceCalculator, queues List<TempQueuePerPartition>, totalPreemptionAllowed Resource, tot_guarant Resource) : void from class org.apache.hadoop.yarn.server.resourcemanager.monitor.capacity.ProportionalCapacityPreemptionPolicy to private computeIdealResourceDistribution(rc ResourceCalculator, queues List<TempQueuePerPartition>, totalPreemptionAllowed Resource, tot_guarant Resource) : void from class org.apache.hadoop.yarn.server.resourcemanager.monitor.capacity.PreemptableResourceCalculator |
From |
To |
|
Move Method private preemptFrom(app FiCaSchedulerApp, clusterResource Resource, resToObtainByPartition Map<String,Resource>, skippedAMContainerlist List<RMContainer>, skippedAMSize Resource, preemptMap Map<ApplicationAttemptId,Set<RMContainer>>) : void from class org.apache.hadoop.yarn.server.resourcemanager.monitor.capacity.ProportionalCapacityPreemptionPolicy to private preemptFrom(app FiCaSchedulerApp, clusterResource Resource, resToObtainByPartition Map<String,Resource>, skippedAMContainerlist List<RMContainer>, skippedAMSize Resource, selectedContainers Map<ApplicationAttemptId,Set<RMContainer>>, totalPreemptionAllowed Resource) : void from class org.apache.hadoop.yarn.server.resourcemanager.monitor.capacity.FifoCandidatesSelector |
From |
To |
|
Move Method private preemptMapContains(preemptMap Map<ApplicationAttemptId,Set<RMContainer>>, attemptId ApplicationAttemptId, rmContainer RMContainer) : boolean from class org.apache.hadoop.yarn.server.resourcemanager.monitor.capacity.ProportionalCapacityPreemptionPolicy to private preemptMapContains(preemptMap Map<ApplicationAttemptId,Set<RMContainer>>, attemptId ApplicationAttemptId, rmContainer RMContainer) : boolean from class org.apache.hadoop.yarn.server.resourcemanager.monitor.capacity.FifoCandidatesSelector |
From |
To |
|
Move Method private computeFixpointAllocation(rc ResourceCalculator, tot_guarant Resource, qAlloc Collection<TempQueuePerPartition>, unassigned Resource, ignoreGuarantee boolean) : void from class org.apache.hadoop.yarn.server.resourcemanager.monitor.capacity.ProportionalCapacityPreemptionPolicy to private computeFixpointAllocation(rc ResourceCalculator, tot_guarant Resource, qAlloc Collection<TempQueuePerPartition>, unassigned Resource, ignoreGuarantee boolean) : void from class org.apache.hadoop.yarn.server.resourcemanager.monitor.capacity.PreemptableResourceCalculator |
From |
To |
|
Move Method protected getMostUnderservedQueues(orderedByNeed PriorityQueue<TempQueuePerPartition>, tqComparator TQComparator) : Collection<TempQueuePerPartition> from class org.apache.hadoop.yarn.server.resourcemanager.monitor.capacity.ProportionalCapacityPreemptionPolicy to protected getMostUnderservedQueues(orderedByNeed PriorityQueue<TempQueuePerPartition>, tqComparator TQComparator) : Collection<TempQueuePerPartition> from class org.apache.hadoop.yarn.server.resourcemanager.monitor.capacity.PreemptableResourceCalculator |
From |
To |
|
Move Method private preemptAMContainers(clusterResource Resource, preemptMap Map<ApplicationAttemptId,Set<RMContainer>>, skippedAMContainerlist List<RMContainer>, resToObtainByPartition Map<String,Resource>, skippedAMSize Resource, maxAMCapacityForThisQueue Resource) : void from class org.apache.hadoop.yarn.server.resourcemanager.monitor.capacity.ProportionalCapacityPreemptionPolicy to private preemptAMContainers(clusterResource Resource, preemptMap Map<ApplicationAttemptId,Set<RMContainer>>, skippedAMContainerlist List<RMContainer>, resToObtainByPartition Map<String,Resource>, skippedAMSize Resource, maxAMCapacityForThisQueue Resource, totalPreemptionAllowed Resource) : void from class org.apache.hadoop.yarn.server.resourcemanager.monitor.capacity.FifoCandidatesSelector |
From |
To |
|
Move Method private addToPreemptMap(preemptMap Map<ApplicationAttemptId,Set<RMContainer>>, appAttemptId ApplicationAttemptId, containerToPreempt RMContainer) : void from class org.apache.hadoop.yarn.server.resourcemanager.monitor.capacity.ProportionalCapacityPreemptionPolicy to private addToPreemptMap(preemptMap Map<ApplicationAttemptId,Set<RMContainer>>, appAttemptId ApplicationAttemptId, containerToPreempt RMContainer) : void from class org.apache.hadoop.yarn.server.resourcemanager.monitor.capacity.FifoCandidatesSelector |
From |
To |
|
Rename Parameter root : TempQueuePerPartition to q : TempQueuePerPartition in method private getLeafQueueNames(q TempQueuePerPartition) : Set<String> in class org.apache.hadoop.yarn.server.resourcemanager.monitor.capacity.ProportionalCapacityPreemptionPolicy |
From |
To |
|
Rename Parameter preemptMap : Map<ApplicationAttemptId,Set<RMContainer>> to selectedContainers : Map<ApplicationAttemptId,Set<RMContainer>> in method private preemptFrom(app FiCaSchedulerApp, clusterResource Resource, resToObtainByPartition Map<String,Resource>, skippedAMContainerlist List<RMContainer>, skippedAMSize Resource, selectedContainers Map<ApplicationAttemptId,Set<RMContainer>>, totalPreemptionAllowed Resource) : void in class org.apache.hadoop.yarn.server.resourcemanager.monitor.capacity.FifoCandidatesSelector |
From |
To |
|
Rename Parameter killableResource : Resource to killable : Resource in method package TempQueuePerPartition(queueName String, current Resource, pending Resource, guaranteed Resource, maxCapacity Resource, preemptionDisabled boolean, partition String, killable Resource) in class org.apache.hadoop.yarn.server.resourcemanager.monitor.capacity.TempQueuePerPartition |
From |
To |