b008348dbf9bdd5070930be5d182116c5d370f6b
Files Diff
- Added: 0
- Removed: 0
- Renamed: 0
- Modified: 4
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Change Parameter Type | 2 | ||
Change Parameter Type block : Block to block : BlockInfo in method private logBlockReplicationInfo(block BlockInfo, bc BlockCollection, srcNode DatanodeDescriptor, num NumberReplicas, storages Iterable<DatanodeStorageInfo>) : void in class org.apache.hadoop.hdfs.server.blockmanagement.DecommissionManager | From | To | |
Change Parameter Type block : Block to block : BlockInfo in method private getReplication(block BlockInfo) : int in class org.apache.hadoop.hdfs.server.blockmanagement.BlockManager | From | To | |
Extract Method | 3 | ||
Extract Method package getStripedDataBlockNum(block BlockInfo) : short extracted from public getMinStorageNum(block BlockInfo) : short in class org.apache.hadoop.hdfs.server.blockmanagement.BlockManager | From | To | |
Extract Method public getExpectedReplicaNum(bc BlockCollection, block BlockInfo) : short extracted from private addStoredBlock(block BlockInfo, reportedBlock Block, storageInfo DatanodeStorageInfo, delNodeHint DatanodeDescriptor, logEveryBlock boolean) : Block in class org.apache.hadoop.hdfs.server.blockmanagement.BlockManager | From | To | |
Extract Method public getExpectedReplicaNum(bc BlockCollection, block BlockInfo) : short extracted from public checkReplication(bc BlockCollection) : void in class org.apache.hadoop.hdfs.server.blockmanagement.BlockManager | From | To | |
Extract And Move Method | 2 | ||
Extract And Move Method public getExpectedReplicaNum(bc BlockCollection, block BlockInfo) : short extracted from private isSufficient(block BlockInfo, bc BlockCollection, numberReplicas NumberReplicas) : boolean in class org.apache.hadoop.hdfs.server.blockmanagement.DecommissionManager & moved to class org.apache.hadoop.hdfs.server.blockmanagement.BlockManager | From | To | |
Extract And Move Method public getExpectedReplicaNum(bc BlockCollection, block BlockInfo) : short extracted from private logBlockReplicationInfo(block Block, bc BlockCollection, srcNode DatanodeDescriptor, num NumberReplicas, storages Iterable<DatanodeStorageInfo>) : void in class org.apache.hadoop.hdfs.server.blockmanagement.DecommissionManager & moved to class org.apache.hadoop.hdfs.server.blockmanagement.BlockManager | From | To |