bf2b687412f9a830ec4834477ccf25dbe76fddcd
Files Diff
- Added: 2
- Removed: 1
- Renamed: 0
- Modified: 11
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Rename Method | 1 | ||
Rename Method private calculateSharesForMandatoryResources(clusterRes ResourceInformation[], first Resource, second Resource, firstShares double[], secondShares double[]) : int renamed to private calculateSharesForTwoMandatoryResources(clusterRes ResourceInformation[], first Resource, second Resource, firstShares double[], secondShares double[]) : int in class org.apache.hadoop.yarn.util.resource.DominantResourceCalculator | From | To | |
Move And Rename Method | 1 | ||
Move And Rename Method public testUserLimitThroughput() : void from class org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.TestCapacityScheduler to private testUserLimitThroughputWithNumberOfResourceTypes(numOfResourceTypes int) : void from class org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.TestCapacitySchedulerPerf | From | To | |
Rename Variable | 1 | ||
Rename Variable maxLength : int to arrLenThis : int in method public compareTo(other Resource) : int in class org.apache.hadoop.yarn.api.records.Resource | From | To | |
Rename Class | 1 | ||
Rename Class org.apache.hadoop.yarn.api.records.impl.BaseResource renamed to org.apache.hadoop.yarn.api.records.impl.LightWeightResource | From | To | |
Extract Variable | 1 | ||
Extract Variable ri : ResourceInformation in method public getResourceInformation(index int) : ResourceInformation from class org.apache.hadoop.yarn.api.records.Resource | From | To | |
Extract Method | 1 | ||
Extract Method public initializeResourcesFromResourceInformationMap(resourceInformationMap Map<String,ResourceInformation>) : void extracted from package initializeResourcesMap(conf Configuration) : void in class org.apache.hadoop.yarn.util.resource.ResourceUtils | From | To |