b0cb8d9bb44c963ae686d2b5c1b70bc76b955e10
Files Diff
- Added: 7
- Removed: 1
- Renamed: 0
- Modified: 11
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Rename Method | 1 | ||
Rename Method public handleStorageMovementAttemptFinishedBlks(moveAttemptFinishedBlks BlocksStorageMoveAttemptFinished) : void renamed to public notifyStorageMovementAttemptFinishedBlks(moveAttemptFinishedBlks BlocksStorageMoveAttemptFinished) : void in class org.apache.hadoop.hdfs.server.namenode.sps.StoragePolicySatisfier | From | To | |
Merge Attribute | 1 | ||
Merge Attribute [block : Block, source : DatanodeInfo, target : DatanodeInfo, targetStorageType : StorageType] to blkMovingInfo : BlockMovingInfo in class org.apache.hadoop.hdfs.server.datanode.StoragePolicySatisfyWorker.BlockMovingTask | From | To | |
Move Method | 2 | ||
Move Method private sendRequest(out DataOutputStream, eb ExtendedBlock, accessToken Token<BlockTokenIdentifier>, srcDn DatanodeInfo, destinStorageType StorageType) : void from class org.apache.hadoop.hdfs.server.datanode.StoragePolicySatisfyWorker.BlockMovingTask to private sendRequest(out DataOutputStream, eb ExtendedBlock, accessToken Token<BlockTokenIdentifier>, source DatanodeInfo, targetStorageType StorageType) : void from class org.apache.hadoop.hdfs.server.common.sps.BlockDispatcher | From | To | |
Move Method private receiveResponse(in DataInputStream) : void from class org.apache.hadoop.hdfs.server.datanode.StoragePolicySatisfyWorker.BlockMovingTask to private receiveResponse(in DataInputStream) : void from class org.apache.hadoop.hdfs.server.common.sps.BlockDispatcher | From | To | |
Change Return Type | 1 | ||
Change Return Type BlockMovementListener to BlockStorageMovementAttemptedItems in method package getAttemptedItemsMonitor() : BlockStorageMovementAttemptedItems in class org.apache.hadoop.hdfs.server.namenode.sps.StoragePolicySatisfier | From | To | |
Move Attribute | 1 | ||
Move Attribute private ioFileBufferSize : int from class org.apache.hadoop.hdfs.server.datanode.StoragePolicySatisfyWorker to private ioFileBufferSize : int from class org.apache.hadoop.hdfs.server.common.sps.BlockDispatcher | From | To | |
Extract Class | 2 | ||
Extract Class org.apache.hadoop.hdfs.server.common.sps.BlockDispatcher from class org.apache.hadoop.hdfs.server.datanode.StoragePolicySatisfyWorker | From | To | |
Extract Class org.apache.hadoop.hdfs.server.common.sps.BlockDispatcher from class org.apache.hadoop.hdfs.server.datanode.StoragePolicySatisfyWorker.BlockMovingTask | From | To | |
Move Class | 4 | ||
Move Class org.apache.hadoop.hdfs.server.datanode.StoragePolicySatisfyWorker.BlockMovementAttemptFinished moved to org.apache.hadoop.hdfs.server.common.sps.BlockMovementAttemptFinished | From | To | |
Move Class org.apache.hadoop.hdfs.server.datanode.StoragePolicySatisfyWorker.BlocksMovementsStatusHandler moved to org.apache.hadoop.hdfs.server.common.sps.BlocksMovementsStatusHandler | From | To | |
Move Class org.apache.hadoop.hdfs.server.datanode.StoragePolicySatisfyWorker.BlockMovementStatus moved to org.apache.hadoop.hdfs.server.common.sps.BlockMovementStatus | From | To | |
Move Class org.apache.hadoop.hdfs.server.datanode.BlockStorageMovementTracker moved to org.apache.hadoop.hdfs.server.common.sps.BlockStorageMovementTracker | From | To | |
Extract Variable | 1 | ||
Extract Variable blkMgr : BlockManager in method public startCluster(conf Configuration, storageTypes StorageType[][], numberOfDatanodes int, storagesPerDn int, nodeCapacity long) : MiniDFSCluster from class org.apache.hadoop.hdfs.server.sps.TestExternalStoragePolicySatisfier | From | To | |
Inline Variable | 1 | ||
Inline Variable sock : Socket in method private moveBlock() : BlockMovementStatus from class org.apache.hadoop.hdfs.server.datanode.StoragePolicySatisfyWorker.BlockMovingTask | From | To | |
Rename Parameter | 2 | ||
Rename Parameter destinStorageType : StorageType to targetStorageType : StorageType in method private sendRequest(out DataOutputStream, eb ExtendedBlock, accessToken Token<BlockTokenIdentifier>, source DatanodeInfo, targetStorageType StorageType) : void in class org.apache.hadoop.hdfs.server.common.sps.BlockDispatcher | From | To | |
Rename Parameter srcDn : DatanodeInfo to source : DatanodeInfo in method private sendRequest(out DataOutputStream, eb ExtendedBlock, accessToken Token<BlockTokenIdentifier>, source DatanodeInfo, targetStorageType StorageType) : void in class org.apache.hadoop.hdfs.server.common.sps.BlockDispatcher | From | To |