448cb7df676d3c0f5fdc52fbbe736f3b54e519a3
Files Diff
- Added: 1
- Removed: 0
- Renamed: 0
- Modified: 5
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Parameterize Variable | 1 | ||
Parameterize Variable cur : DatanodeStorageInfo to chosen : DatanodeStorageInfo in method private processChosenExcessReplica(nonExcess Collection<DatanodeStorageInfo>, chosen DatanodeStorageInfo, storedBlock BlockInfo) : void in class org.apache.hadoop.hdfs.server.blockmanagement.BlockManager | From | To | |
Extract Method | 2 | ||
Extract Method private processChosenExcessReplica(nonExcess Collection<DatanodeStorageInfo>, chosen DatanodeStorageInfo, storedBlock BlockInfo) : void extracted from private chooseExcessReplicates(nonExcess Collection<DatanodeStorageInfo>, storedBlock BlockInfo, replication short, addedNode DatanodeDescriptor, delNodeHint DatanodeDescriptor, replicator BlockPlacementPolicy) : void in class org.apache.hadoop.hdfs.server.blockmanagement.BlockManager | From | To | |
Extract Method private chooseExcessReplicasContiguous(bc BlockCollection, nonExcess Collection<DatanodeStorageInfo>, storedBlock BlockInfo, replication short, addedNode DatanodeDescriptor, delNodeHint DatanodeDescriptor, excessTypes List<StorageType>) : void extracted from private chooseExcessReplicates(nonExcess Collection<DatanodeStorageInfo>, storedBlock BlockInfo, replication short, addedNode DatanodeDescriptor, delNodeHint DatanodeDescriptor, replicator BlockPlacementPolicy) : void in class org.apache.hadoop.hdfs.server.blockmanagement.BlockManager | From | To |