ea58c43e21970aec0f70cbe582ce9ab20fdbc60a
Files Diff
- Added: 0
- Removed: 0
- Renamed: 0
- Modified: 25
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Rename Variable | 3 | ||
Rename Variable storageDirIdLocked : long to storageDir : StorageDir in method public lock(blockId long, blockLockId int) : StorageDir in class tachyon.worker.BlocksLocker | From | To | |
Rename Variable srcStorageDir : StorageDir to storageDir : StorageDir in method public promoteBlock(userId long, blockId long) : boolean in class tachyon.worker.WorkerStorage | From | To | |
Rename Variable storageDirIds : long[] to storageDirs : StorageDir[] in method public run() : void in class tachyon.worker.WorkerStorage.CheckpointThread | From | To | |
Change Return Type | 5 | ||
Change Return Type long to StorageDir in method public lock(blockId long, blockLockId int) : StorageDir in class tachyon.worker.BlocksLocker | From | To | |
Change Return Type long to boolean in method public unlock(blockId long, lockId int) : boolean in class tachyon.worker.BlocksLocker | From | To | |
Change Return Type long to StorageDir in method public locked(blockId long) : StorageDir in class tachyon.worker.BlocksLocker | From | To | |
Change Return Type long to boolean in method public unlockBlock(blockId long, userId long) : boolean in class tachyon.worker.WorkerStorage | From | To | |
Change Return Type long to StorageDir in method public lockBlock(blockId long, userId long) : StorageDir in class tachyon.worker.WorkerStorage | From | To | |
Rename Attribute | 1 | ||
Rename Attribute mLockedBlockIdToStorageDirId : Map<Long,Long> to mLockedBlockIdToStorageDir : Map<Long,StorageDir> in class tachyon.worker.BlocksLocker | From | To | |
Change Variable Type | 2 | ||
Change Variable Type storageDirIds : long[] to storageDirs : StorageDir[] in method public run() : void in class tachyon.worker.WorkerStorage.CheckpointThread | From | To | |
Change Variable Type storageDirIdLocked : long to storageDir : StorageDir in method public lock(blockId long, blockLockId int) : StorageDir in class tachyon.worker.BlocksLocker | From | To | |
Extract Variable | 1 | ||
Extract Variable lockIdSet : Set<Integer> in method public lock(blockId long, blockLockId int) : StorageDir from class tachyon.worker.BlocksLocker | From | To | |
Extract Method | 2 | ||
Extract Method private updateUserOwnBytes(userId long, sizeBytes long) : void extracted from public requestSpace(userId long, size long) : boolean in class tachyon.worker.hierarchy.StorageDir | From | To | |
Extract Method private updateUserOwnBytes(userId long, sizeBytes long) : void extracted from public returnSpace(userId long, size long) : void in class tachyon.worker.hierarchy.StorageDir | From | To | |
Change Attribute Type | 1 | ||
Change Attribute Type mLockedBlockIdToStorageDirId : Map<Long,Long> to mLockedBlockIdToStorageDir : Map<Long,StorageDir> in class tachyon.worker.BlocksLocker | From | To | |
Rename Parameter | 1 | ||
Rename Parameter size : long to sizeBytes : long in method private updateUserOwnBytes(userId long, sizeBytes long) : void in class tachyon.worker.hierarchy.StorageDir | From | To |