944cf872232d1a8899df0f0bbe90aa29f225cb90
Files Diff
- Added: 0
- Removed: 0
- Renamed: 0
- Modified: 3
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Change Parameter Type | 1 | ||
Change Parameter Type shares : int... to shares : long... in method private verifyMemoryShares(shares long...) : void in class org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.TestComputeFairShares | From | To | |
Change Return Type | 1 | ||
Change Return Type int to long in method private handleFixedFairShares(schedulables Collection<? extends Schedulable>, nonFixedSchedulables Collection<Schedulable>, isSteadyShare boolean, type String) : long in class org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.policies.ComputeFairShares | From | To | |
Change Variable Type | 3 | ||
Change Variable Type totalResource : int to totalResource : long in method private handleFixedFairShares(schedulables Collection<? extends Schedulable>, nonFixedSchedulables Collection<Schedulable>, isSteadyShare boolean, type String) : long in class org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.policies.ComputeFairShares | From | To | |
Change Variable Type takenResources : int to takenResources : long in method private computeSharesInternal(allSchedulables Collection<? extends Schedulable>, totalResources Resource, type String, isSteadyShare boolean) : void in class org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.policies.ComputeFairShares | From | To | |
Change Variable Type totalMaxShare : int to totalMaxShare : long in method private computeSharesInternal(allSchedulables Collection<? extends Schedulable>, totalResources Resource, type String, isSteadyShare boolean) : void in class org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.policies.ComputeFairShares | From | To | |
Extract Method | 1 | ||
Extract Method private safeAdd(a long, b long) : long extracted from private resourceUsedWithWeightToResourceRatio(w2rRatio double, schedulables Collection<? extends Schedulable>, type String) : long in class org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.policies.ComputeFairShares | From | To | |
Rename Parameter | 1 | ||
Rename Parameter usage : Resource to resourceUsage : Resource in method public setResourceUsage(resourceUsage Resource) : void in class org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FakeSchedulable | From | To |