c583ab02c730be0a63d974039a78f2dc67dc2db6
Files Diff
- Added: 3
- Removed: 0
- Renamed: 0
- Modified: 17
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Rename Variable | 1 | ||
Rename Variable amUsed : Resource to tmpUser : TempUserPerPartition in method private calculateIdealAssignedResourcePerApp(clusterResource Resource, tq TempQueuePerPartition, selectedCandidates Map<ApplicationAttemptId,Set<RMContainer>>, queueReassignableResource Resource, orderedByPriority PriorityQueue<TempAppPerPartition>) : TreeSet<TempAppPerPartition> in class org.apache.hadoop.yarn.server.resourcemanager.monitor.capacity.FifoIntraQueuePreemptionPlugin | From | To | |
Change Variable Type | 1 | ||
Change Variable Type amUsed : Resource to tmpUser : TempUserPerPartition in method private calculateIdealAssignedResourcePerApp(clusterResource Resource, tq TempQueuePerPartition, selectedCandidates Map<ApplicationAttemptId,Set<RMContainer>>, queueReassignableResource Resource, orderedByPriority PriorityQueue<TempAppPerPartition>) : TreeSet<TempAppPerPartition> in class org.apache.hadoop.yarn.server.resourcemanager.monitor.capacity.FifoIntraQueuePreemptionPlugin | From | To | |
Extract Method | 1 | ||
Extract Method private createTempAppForResCalculation(tq TempQueuePerPartition, apps Collection<FiCaSchedulerApp>, clusterResource Resource, perUserAMUsed Map<String,Resource>) : PriorityQueue<TempAppPerPartition> extracted from public computeAppsIdealAllocation(clusterResource Resource, partitionBasedResource Resource, tq TempQueuePerPartition, selectedCandidates Map<ApplicationAttemptId,Set<RMContainer>>, totalPreemptedResourceAllowed Resource, queueReassignableResource Resource, maxAllowablePreemptLimit float) : void in class org.apache.hadoop.yarn.server.resourcemanager.monitor.capacity.FifoIntraQueuePreemptionPlugin | From | To | |
Rename Parameter | 2 | ||
Rename Parameter tq2 : TempAppPerPartition to ta2 : TempAppPerPartition in method public compare(ta1 TempAppPerPartition, ta2 TempAppPerPartition) : int in class org.apache.hadoop.yarn.server.resourcemanager.monitor.capacity.IntraQueueCandidatesSelector.TAPriorityComparator | From | To | |
Rename Parameter tq1 : TempAppPerPartition to ta1 : TempAppPerPartition in method public compare(ta1 TempAppPerPartition, ta2 TempAppPerPartition) : int in class org.apache.hadoop.yarn.server.resourcemanager.monitor.capacity.IntraQueueCandidatesSelector.TAPriorityComparator | From | To |