1b3b9e5c31c38388c1ce4208c65e8dd5f956da82
Files Diff
- Added: 3
- Removed: 0
- Renamed: 0
- Modified: 9
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Move Method | 2 | ||
Move Method private createMockMTab(cgroupDir File) : File from class org.apache.hadoop.yarn.server.nodemanager.util.TestCgroupsLCEResourcesHandler to public createMockMTab(parentDir File) : File from class org.apache.hadoop.yarn.server.nodemanager.containermanager.linux.resources.TestCGroupsHandlerImpl | From | To | |
Move Method private createMockCgroupMount(cgroupDir File) : File from class org.apache.hadoop.yarn.server.nodemanager.util.TestCgroupsLCEResourcesHandler to public createMockCgroupMount(parentDir File, type String, hierarchy String) : File from class org.apache.hadoop.yarn.server.nodemanager.containermanager.linux.resources.TestCGroupsHandlerImpl | From | To | |
Rename Variable | 3 | ||
Rename Variable cgroupMountDir : File to cpuCgroupMountDir : File in method public testContainerLimits() : void in class org.apache.hadoop.yarn.server.nodemanager.util.TestCgroupsLCEResourcesHandler | From | To | |
Rename Variable cgroupMountDir : File to cpuCgroupMountDir : File in method public testInit() : void in class org.apache.hadoop.yarn.server.nodemanager.util.TestCgroupsLCEResourcesHandler | From | To | |
Rename Variable containerDir : File to containerCpuDir : File in method public testContainerLimits() : void in class org.apache.hadoop.yarn.server.nodemanager.util.TestCgroupsLCEResourcesHandler | From | To | |
Change Return Type | 1 | ||
Change Return Type void to Map<CGroupController,String> in method package initializeControllerPathsFromMtab(mtab String, cGroupPrefix String) : Map<CGroupController,String> in class org.apache.hadoop.yarn.server.nodemanager.containermanager.linux.resources.CGroupsHandlerImpl | From | To | |
Extract And Move Method | 2 | ||
Extract And Move Method public createMockCgroupMount(parentDir File, type String) : File extracted from public testContainerLimits() : void in class org.apache.hadoop.yarn.server.nodemanager.util.TestCgroupsLCEResourcesHandler & moved to class org.apache.hadoop.yarn.server.nodemanager.containermanager.linux.resources.TestCGroupsHandlerImpl | From | To | |
Extract And Move Method public createMockCgroupMount(parentDir File, type String) : File extracted from public testInit() : void in class org.apache.hadoop.yarn.server.nodemanager.util.TestCgroupsLCEResourcesHandler & moved to class org.apache.hadoop.yarn.server.nodemanager.containermanager.linux.resources.TestCGroupsHandlerImpl | From | To | |
Rename Parameter | 1 | ||
Rename Parameter cgroupDir : File to parentDir : File in method public createMockMTab(parentDir File) : File in class org.apache.hadoop.yarn.server.nodemanager.containermanager.linux.resources.TestCGroupsHandlerImpl | From | To |