ae14e5d07f1b6702a5160637438028bb03d9387e
Files Diff
- Added: 4
- Removed: 0
- Renamed: 0
- Modified: 34
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Rename Method | 1 | ||
Rename Method private getPartitionByNodeId(nodeId NodeId) : String renamed to private getPartitionByRMContainer(rmContainer RMContainer) : String in class org.apache.hadoop.yarn.server.resourcemanager.monitor.capacity.ProportionalCapacityPreemptionPolicy | From | To | |
Change Parameter Type | 1 | ||
Change Parameter Type nodeId : NodeId to rmContainer : RMContainer in method private getPartitionByRMContainer(rmContainer RMContainer) : String in class org.apache.hadoop.yarn.server.resourcemanager.monitor.capacity.ProportionalCapacityPreemptionPolicy | From | To | |
Rename Variable | 2 | ||
Rename Variable killContainerEvent : ContainerPreemptEvent to containerKillableEvent : ContainerPreemptEvent in method public handle(event SchedulerEvent) : void in class org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacityScheduler | From | To | |
Rename Variable containerToBeKilled : RMContainer to killableContainer : RMContainer in method public handle(event SchedulerEvent) : void in class org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacityScheduler | From | To | |
Extract Variable | 3 | ||
Extract Variable usedExceptKillable : Resource in method package canAssignToThisQueue(clusterResource Resource, nodePartition String, currentResourceLimits ResourceLimits, resourceCouldBeUnreserved Resource, schedulingMode SchedulingMode) : boolean from class org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.AbstractCSQueue | From | To | |
Extract Variable containerId : ContainerId in method protected completedContainerInternal(rmContainer RMContainer, containerStatus ContainerStatus, event RMContainerEventType) : void from class org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacityScheduler | From | To | |
Extract Variable containerId : ContainerId in method public allocate(type NodeType, node FiCaSchedulerNode, priority Priority, request ResourceRequest, container Container) : RMContainer from class org.apache.hadoop.yarn.server.resourcemanager.scheduler.common.fica.FiCaSchedulerApp | From | To | |
Extract Method | 3 | ||
Extract Method package allocateResource(clusterResource Resource, resource Resource, nodePartition String, changeContainerResource boolean) : void extracted from public attachContainer(clusterResource Resource, application FiCaSchedulerApp, rmContainer RMContainer) : void in class org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.ParentQueue | From | To | |
Extract Method package allocateResource(clusterResource Resource, resource Resource, nodePartition String, changeContainerResource boolean) : void extracted from public assignContainers(clusterResource Resource, node FiCaSchedulerNode, resourceLimits ResourceLimits, schedulingMode SchedulingMode) : CSAssignment in class org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.ParentQueue | From | To | |
Extract Method package allocateResource(clusterResource Resource, resource Resource, nodePartition String, changeContainerResource boolean) : void extracted from public recoverContainer(clusterResource Resource, attempt SchedulerApplicationAttempt, rmContainer RMContainer) : void in class org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.ParentQueue | From | To | |
Rename Parameter | 1 | ||
Rename Parameter nodeId : NodeId to rmContainer : RMContainer in method private getPartitionByRMContainer(rmContainer RMContainer) : String in class org.apache.hadoop.yarn.server.resourcemanager.monitor.capacity.ProportionalCapacityPreemptionPolicy | From | To |