66a78d582626626a8b4475bf6d9bfc5eee198bbc
Files Diff
- Added: 2
- Removed: 2
- Renamed: 0
- Modified: 3
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Change Parameter Type | 1 | ||
Change Parameter Type cache : LockCache<T> to pool : LockPool<T> in method private assertAllLocksReleased(pool LockPool<T>) : void in class alluxio.master.file.meta.InodeLockManager | From | To | |
Rename Variable | 4 | ||
Rename Variable i : int to key : int in method public insertValueTest() : void in class alluxio.collections.LockPoolTest | From | To | |
Rename Variable valNode : ValNode to resource : Resource in method public tryGet(key K, mode LockMode) : Optional<LockResource> in class alluxio.collections.LockPool | From | To | |
Rename Variable valNode : ValNode to resource : Resource in method public get(key K, mode LockMode) : LockResource in class alluxio.collections.LockPool | From | To | |
Move Attribute | 1 | ||
Move Attribute private mLastSizeWarningTime : long from class alluxio.collections.LockCache to private mLastSizeWarningTime : long from class alluxio.collections.LockPool.Evictor | From | To | |
Extract Class | 1 | ||
Extract Class alluxio.collections.LockPool.Evictor from class alluxio.collections.LockCache | From | To | |
Rename Class | 2 | ||
Rename Class alluxio.collections.LockCache renamed to alluxio.collections.LockPool | From | To | |
Rename Class alluxio.collections.LockCacheTest renamed to alluxio.collections.LockPoolTest | From | To | |
Move And Rename Class | 1 | ||
Move And Rename Class alluxio.collections.LockCache.ValNode moved and renamed to alluxio.collections.LockPool.Resource | From | To | |
Rename Attribute | 5 | ||
Rename Attribute mCache : Map<K,ValNode> to mPool : Map<K,Resource> in class alluxio.collections.LockPool | From | To | |
Rename Attribute mHardLimit : int to mHighWatermark : int in class alluxio.collections.LockPool | From | To | |
Rename Attribute mValue : ReentrantReadWriteLock to mLock : ReentrantReadWriteLock in class alluxio.collections.LockPool.Resource | From | To | |
Rename Attribute MAX_SIZE : int to HIGH_WATERMARK : int in class alluxio.collections.LockPoolTest | From | To | |
Rename Attribute mIterator : Iterator<Map.Entry<K,ValNode>> to mLowWatermark : int in class alluxio.collections.LockPool | From | To | |
Change Variable Type | 2 | ||
Change Variable Type valNode : ValNode to resource : Resource in method public get(key K, mode LockMode) : LockResource in class alluxio.collections.LockPool | From | To | |
Change Variable Type valNode : ValNode to resource : Resource in method public tryGet(key K, mode LockMode) : Optional<LockResource> in class alluxio.collections.LockPool | From | To | |
Split Attribute | 1 | ||
Split Attribute mCache : LockCache<Integer> to [mPool : LockPool<Integer>, LOW_WATERMARK : int] in class alluxio.collections.LockPoolTest | From | To | |
Change Attribute Type | 4 | ||
Change Attribute Type mIterator : Iterator<Map.Entry<K,ValNode>> to mLowWatermark : int in class alluxio.collections.LockPool | From | To | |
Change Attribute Type mInodeLocks : LockCache<Long> to mInodeLocks : LockPool<Long> in class alluxio.master.file.meta.InodeLockManager | From | To | |
Change Attribute Type mEdgeLocks : LockCache<Edge> to mEdgeLocks : LockPool<Edge> in class alluxio.master.file.meta.InodeLockManager | From | To | |
Change Attribute Type mCache : Map<K,ValNode> to mPool : Map<K,Resource> in class alluxio.collections.LockPool | From | To | |
Rename Parameter | 2 | ||
Rename Parameter value : ReentrantReadWriteLock to lock : ReentrantReadWriteLock in method private Resource(lock ReentrantReadWriteLock) in class alluxio.collections.LockPool.Resource | From | To | |
Rename Parameter cache : LockCache<T> to pool : LockPool<T> in method private assertAllLocksReleased(pool LockPool<T>) : void in class alluxio.master.file.meta.InodeLockManager | From | To |