35f07705552ef5636f8b8d2599a6af5ec1426203
Files Diff
- Added: 4
- Removed: 0
- Renamed: 0
- Modified: 3
Refactorings reported:
| Refactoring Name | Occurences | ||
|---|---|---|---|
| Pull Up Method | 3 | ||
| Pull Up Method public incDfsUsed(value long) : void from class org.apache.hadoop.fs.DU to public incDfsUsed(value long) : void from class org.apache.hadoop.fs.CachingGetSpaceUsed | From | To | |
| Pull Up Method public getUsed() : long from class org.apache.hadoop.fs.DU to public getUsed() : long from class org.apache.hadoop.fs.CachingGetSpaceUsed | From | To | |
| Pull Up Method public getDirPath() : String from class org.apache.hadoop.fs.DU to public getDirPath() : String from class org.apache.hadoop.fs.CachingGetSpaceUsed | From | To | |
| Move And Rename Method | 2 | ||
| Move And Rename Method public decDfsUsed(value long) : void from class org.apache.hadoop.fs.DU to public incDfsUsed(value long) : void from class org.apache.hadoop.fs.CachingGetSpaceUsed | From | To | |
| Move And Rename Method public shutdown() : void from class org.apache.hadoop.fs.DU to public close() : void from class org.apache.hadoop.fs.CachingGetSpaceUsed | From | To | |
| Move Method | 3 | ||
| Move Method protected getExecString() : String[] from class org.apache.hadoop.fs.DU to protected getExecString() : String[] from class org.apache.hadoop.fs.DU.DUShell | From | To | |
| Move Method public toString() : String from class org.apache.hadoop.fs.DU to public toString() : String from class org.apache.hadoop.fs.DU.DUShell | From | To | |
| Move Method protected parseExecResult(lines BufferedReader) : void from class org.apache.hadoop.fs.DU to protected parseExecResult(lines BufferedReader) : void from class org.apache.hadoop.fs.DU.DUShell | From | To | |
| Pull Up Attribute | 4 | ||
| Pull Up Attribute private used : AtomicLong from class org.apache.hadoop.fs.DU to protected used : AtomicLong from class org.apache.hadoop.fs.CachingGetSpaceUsed | From | To | |
| Pull Up Attribute private refreshInterval : long from class org.apache.hadoop.fs.DU to private refreshInterval : long from class org.apache.hadoop.fs.CachingGetSpaceUsed | From | To | |
| Pull Up Attribute private refreshUsed : Thread from class org.apache.hadoop.fs.DU to private refreshUsed : Thread from class org.apache.hadoop.fs.CachingGetSpaceUsed | From | To | |
| Pull Up Attribute private dirPath : String from class org.apache.hadoop.fs.DU to private dirPath : String from class org.apache.hadoop.fs.CachingGetSpaceUsed | From | To | |
| Extract Class | 1 | ||
| Extract Class org.apache.hadoop.fs.DU.DUShell from class org.apache.hadoop.fs.DU | From | To | |
| Extract Superclass | 1 | ||
| Extract Superclass org.apache.hadoop.fs.CachingGetSpaceUsed from classes [org.apache.hadoop.fs.DU] | From | To | |
| Extract Variable | 1 | ||
| Extract Variable duResult : String in method public main(args String[]) : void from class org.apache.hadoop.fs.DU | From | To | |
| Change Attribute Type | 1 | ||
| Change Attribute Type dfsUsage : DU to dfsUsage : GetSpaceUsed in class org.apache.hadoop.hdfs.server.datanode.fsdataset.impl.BlockPoolSlice | From | To |