abedb8a9d86b4593a37fd3d2313fbcb057c7846a
Files Diff
- Added: 0
- Removed: 0
- Renamed: 0
- Modified: 3
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Rename Variable | 2 | ||
Rename Variable appAttemptId2 : ApplicationAttemptId to appAttemptId : ApplicationAttemptId in method private preemptHalfResources(queueName String) : void in class org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.TestFairSchedulerPreemption | From | To | |
Rename Variable appAttemptId1 : ApplicationAttemptId to appAttemptId : ApplicationAttemptId in method private takeAllResource(queueName String) : void in class org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.TestFairSchedulerPreemption | From | To | |
Change Return Type | 1 | ||
Change Return Type List<RMContainer> to PreemptableContainers in method private identifyContainersToPreempt(starvedApp FSAppAttempt) : PreemptableContainers in class org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FSPreemptionThread | From | To | |
Extract Attribute | 1 | ||
Extract Attribute private GB : int in class org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.TestFairSchedulerPreemption | From | To | |
Parameterize Variable | 1 | ||
Parameterize Variable requestCapability : Resource to request : Resource in method private identifyContainersToPreemptOnNode(request Resource, node FSSchedulerNode, maxAMContainers int) : PreemptableContainers in class org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FSPreemptionThread | From | To | |
Change Variable Type | 1 | ||
Change Variable Type containers : List<RMContainer> to containers : PreemptableContainers in method public run() : void in class org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FSPreemptionThread | From | To | |
Extract Method | 3 | ||
Extract Method private identifyContainersToPreemptOnNode(request Resource, node FSSchedulerNode, maxAMContainers int) : PreemptableContainers extracted from private identifyContainersToPreempt(starvedApp FSAppAttempt) : List<RMContainer> in class org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FSPreemptionThread | From | To | |
Extract Method private takeAllResource(queueName String) : void extracted from private submitApps(queue1 String, queue2 String) : void in class org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.TestFairSchedulerPreemption | From | To | |
Extract Method private preemptHalfResources(queueName String) : void extracted from private submitApps(queue1 String, queue2 String) : void in class org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.TestFairSchedulerPreemption | From | To | |
Rename Parameter | 1 | ||
Rename Parameter queue1 : String to queueName : String in method private takeAllResource(queueName String) : void in class org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.TestFairSchedulerPreemption | From | To |