10be45986cdf86a89055065b752959bd6369d54f
Files Diff
- Added: 1
- Removed: 0
- Renamed: 0
- Modified: 10
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Rename Method | 1 | ||
Rename Method private updateResponseWithNMTokens(response AllocateResponse, nmTokens List<NMToken>, allocatedContainers List<Container>) : void renamed to private updateAllocateResponse(response AllocateResponse, nmTokens List<NMToken>, allocatedContainers List<Container>) : void in class org.apache.hadoop.yarn.server.nodemanager.scheduler.DistributedScheduler | From | To | |
Change Return Type | 1 | ||
Change Return Type OpportunisticContainerAllocator.AllocationParams to AllocationParams in method public getAppParams() : AllocationParams in class org.apache.hadoop.yarn.server.scheduler.OpportunisticContainerContext | From | To | |
Move Attribute | 1 | ||
Move Attribute private nodeTokens : Map<NodeId,NMToken> from class org.apache.hadoop.yarn.server.scheduler.OpportunisticContainerContext to private nodeTokens : Map<NodeId,NMToken> from class org.apache.hadoop.yarn.server.nodemanager.scheduler.DistributedScheduler | From | To | |
Parameterize Variable | 1 | ||
Parameterize Variable distAllocContainers : List<Container> to allocContainers : List<Container> in method private handleNewContainers(allocContainers List<Container>, isRemotelyAllocated boolean) : void in class org.apache.hadoop.yarn.server.resourcemanager.OpportunisticContainerAllocatorAMService | From | To | |
Extract Method | 5 | ||
Extract Method private updateNMToken(container Container) : void extracted from private updateContainerAndNMToken(rmContainer RMContainer, newContainer boolean, increasedContainer boolean) : Container in class org.apache.hadoop.yarn.server.resourcemanager.scheduler.SchedulerApplicationAttempt | From | To | |
Extract Method private createMinContainerResource() : Resource extracted from public registerApplicationMasterForDistributedScheduling(request RegisterApplicationMasterRequest) : RegisterDistributedSchedulingAMResponse in class org.apache.hadoop.yarn.server.resourcemanager.OpportunisticContainerAllocatorAMService | From | To | |
Extract Method private createMaxContainerResource() : Resource extracted from public registerApplicationMasterForDistributedScheduling(request RegisterApplicationMasterRequest) : RegisterDistributedSchedulingAMResponse in class org.apache.hadoop.yarn.server.resourcemanager.OpportunisticContainerAllocatorAMService | From | To | |
Extract Method private createIncrContainerResource() : Resource extracted from public registerApplicationMasterForDistributedScheduling(request RegisterApplicationMasterRequest) : RegisterDistributedSchedulingAMResponse in class org.apache.hadoop.yarn.server.resourcemanager.OpportunisticContainerAllocatorAMService | From | To | |
Extract Method private handleNewContainers(allocContainers List<Container>, isRemotelyAllocated boolean) : void extracted from public allocateForDistributedScheduling(request DistributedSchedulingAllocateRequest) : DistributedSchedulingAllocateResponse in class org.apache.hadoop.yarn.server.resourcemanager.OpportunisticContainerAllocatorAMService | From | To |