f659485ee83f3f34e3717631983adfc8fa1e53dc
Files Diff
- Added: 1
- Removed: 0
- Renamed: 0
- Modified: 15
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Rename Method | 1 | ||
Rename Method private validateNodeLabels(nodeLabelsForHeartbeat Set<NodeLabel>) : void renamed to protected validate(nodeLabels Set<NodeLabel>) : void in class org.apache.hadoop.yarn.server.nodemanager.NodeStatusUpdaterImpl.NMDistributedNodeLabelsHandler | From | To | |
Pull Up Method | 1 | ||
Pull Up Method public isResyncIntervalElapsed() : boolean from class org.apache.hadoop.yarn.server.nodemanager.NodeStatusUpdaterImpl.NMDistributedNodeLabelsHandler to public isResyncIntervalElapsed() : boolean from class org.apache.hadoop.yarn.server.nodemanager.NodeStatusUpdaterImpl.CachedNodeDescriptorHandler | From | To | |
Pull Up Attribute | 1 | ||
Pull Up Attribute private resyncInterval : long from class org.apache.hadoop.yarn.server.nodemanager.NodeStatusUpdaterImpl.NMDistributedNodeLabelsHandler to private resyncInterval : long from class org.apache.hadoop.yarn.server.nodemanager.NodeStatusUpdaterImpl.CachedNodeDescriptorHandler | From | To | |
Replace Variable With Attribute | 1 | ||
Replace Variable With Attribute tempDir : File to TEMP_DIR : File in method public testNodeHeartbeatWithNodeAttributes() : void in class org.apache.hadoop.yarn.server.resourcemanager.TestResourceTrackerService | From | To | |
Extract Superclass | 1 | ||
Extract Superclass org.apache.hadoop.yarn.server.nodemanager.NodeStatusUpdaterImpl.CachedNodeDescriptorHandler from classes [org.apache.hadoop.yarn.server.nodemanager.NodeStatusUpdaterImpl.NMDistributedNodeAttributesHandler, org.apache.hadoop.yarn.server.nodemanager.NodeStatusUpdaterImpl.NMDistributedNodeLabelsHandler] | From | To | |
Extract Method | 2 | ||
Extract Method public newInstance(nodeId NodeId, httpPort int, resource Resource, nodeManagerVersionId String, containerStatuses List<NMContainerStatus>, runningApplications List<ApplicationId>, nodeLabels Set<NodeLabel>, physicalResource Resource, nodeAttributes Set<NodeAttribute>) : RegisterNodeManagerRequest extracted from public newInstance(nodeId NodeId, httpPort int, resource Resource, nodeManagerVersionId String, containerStatuses List<NMContainerStatus>, runningApplications List<ApplicationId>, nodeLabels Set<NodeLabel>, physicalResource Resource) : RegisterNodeManagerRequest in class org.apache.hadoop.yarn.server.api.protocolrecords.RegisterNodeManagerRequest | From | To | |
Extract Method private updateNodeAttributesIfNecessary(nodeId NodeId, nodeAttributes Set<NodeAttribute>) : void extracted from public nodeHeartbeat(request NodeHeartbeatRequest) : NodeHeartbeatResponse in class org.apache.hadoop.yarn.server.resourcemanager.ResourceTrackerService | From | To | |
Rename Parameter | 1 | ||
Rename Parameter nodeLabelsForHeartbeat : Set<NodeLabel> to nodeLabels : Set<NodeLabel> in method protected validate(nodeLabels Set<NodeLabel>) : void in class org.apache.hadoop.yarn.server.nodemanager.NodeStatusUpdaterImpl.NMDistributedNodeLabelsHandler | From | To |