695a402fcad20c711c5d845e0664c43fd6b06286
Files Diff
- Added: 0
- Removed: 0
- Renamed: 0
- Modified: 13
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Rename Method | 2 | ||
Rename Method private getLastAttemptedTimeStamp() : long renamed to private getLastAttemptedOrReportedTime() : long in class org.apache.hadoop.hdfs.server.namenode.BlockStorageMovementAttemptedItems.ItemInfo | From | To | |
Rename Method package getBlocksMovementsCompletionHandler() : BlocksMovementsCompletionHandler renamed to package getBlocksMovementsStatusHandler() : BlocksMovementsStatusHandler in class org.apache.hadoop.hdfs.server.datanode.StoragePolicySatisfyWorker | From | To | |
Change Parameter Type | 1 | ||
Change Parameter Type handler : BlocksMovementsCompletionHandler to handler : BlocksMovementsStatusHandler in method public BlockStorageMovementTracker(moverCompletionService CompletionService<BlockMovementResult>, handler BlocksMovementsStatusHandler) in class org.apache.hadoop.hdfs.server.datanode.BlockStorageMovementTracker | From | To | |
Change Return Type | 1 | ||
Change Return Type BlocksMovementsCompletionHandler to BlocksMovementsStatusHandler in method package getBlocksMovementsStatusHandler() : BlocksMovementsStatusHandler in class org.apache.hadoop.hdfs.server.datanode.StoragePolicySatisfyWorker | From | To | |
Extract Attribute | 2 | ||
Extract Attribute private running : boolean in class org.apache.hadoop.hdfs.server.datanode.BlockStorageMovementTracker | From | To | |
Extract Attribute private nnIndex : int in class org.apache.hadoop.hdfs.server.namenode.TestStoragePolicySatisfierWithHA | From | To | |
Rename Class | 1 | ||
Rename Class org.apache.hadoop.hdfs.server.datanode.StoragePolicySatisfyWorker.BlocksMovementsCompletionHandler renamed to org.apache.hadoop.hdfs.server.datanode.StoragePolicySatisfyWorker.BlocksMovementsStatusHandler | From | To | |
Replace Variable With Attribute | 2 | ||
Replace Variable With Attribute fs : DistributedFileSystem to dfs : DistributedFileSystem in method private createCluster() : void in class org.apache.hadoop.hdfs.server.namenode.TestStoragePolicySatisfierWithHA | From | To | |
Replace Variable With Attribute fs : DistributedFileSystem to dfs : DistributedFileSystem in method public testWhenNNHAStateChanges() : void in class org.apache.hadoop.hdfs.server.namenode.TestStoragePolicySatisfierWithHA | From | To | |
Rename Attribute | 2 | ||
Rename Attribute lastAttemptedTimeStamp : long to lastAttemptedOrReportedTime : long in class org.apache.hadoop.hdfs.server.namenode.BlockStorageMovementAttemptedItems.ItemInfo | From | To | |
Rename Attribute blksMovementscompletionHandler : BlocksMovementsCompletionHandler to blksMovementsStatusHandler : BlocksMovementsStatusHandler in class org.apache.hadoop.hdfs.server.datanode.BlockStorageMovementTracker | From | To | |
Extract Method | 3 | ||
Extract Method private createCluster() : void extracted from public testWhenNNHAStateChanges() : void in class org.apache.hadoop.hdfs.server.namenode.TestStoragePolicySatisfierWithHA | From | To | |
Extract Method private startCluster(conf Configuration, storageTypes StorageType[][], numberOfDatanodes int, storagesPerDn int, nodeCapacity long) : void extracted from public testWhenNNHAStateChanges() : void in class org.apache.hadoop.hdfs.server.namenode.TestStoragePolicySatisfierWithHA | From | To | |
Extract Method private addDropSPSWorkCommandsToAllDNs() : void extracted from public deactivate(reconfig boolean) : void in class org.apache.hadoop.hdfs.server.namenode.StoragePolicySatisfier | From | To | |
Change Attribute Type | 2 | ||
Change Attribute Type blksMovementscompletionHandler : BlocksMovementsCompletionHandler to blksMovementsStatusHandler : BlocksMovementsStatusHandler in class org.apache.hadoop.hdfs.server.datanode.BlockStorageMovementTracker | From | To | |
Change Attribute Type handler : BlocksMovementsCompletionHandler to handler : BlocksMovementsStatusHandler in class org.apache.hadoop.hdfs.server.datanode.StoragePolicySatisfyWorker | From | To | |
Rename Parameter | 1 | ||
Rename Parameter lastAttemptedTimeStamp : long to lastAttemptedOrReportedTime : long in method private ItemInfo(lastAttemptedOrReportedTime long, allBlockLocsAttemptedToSatisfy boolean) in class org.apache.hadoop.hdfs.server.namenode.BlockStorageMovementAttemptedItems.ItemInfo | From | To |