1094af072ca22e3e8b2eb8da3a52fbe2ad12a353
Files Diff
- Added: 3
- Removed: 0
- Renamed: 0
- Modified: 4
Refactorings reported:
| Refactoring Name | Occurences | ||
|---|---|---|---|
| Rename Variable | 3 | ||
| Rename Variable newContainerInfo : OzoneProtos.SCMContainerInfo to newState : OzoneProtos.SCMContainerInfo in method public processContainerReports(reports ContainerReportsRequestProto) : void in class org.apache.hadoop.ozone.scm.container.ContainerMapping | From | To | |
| Rename Variable oldInfo : OzoneProtos.SCMContainerInfo to knownState : OzoneProtos.SCMContainerInfo in method public processContainerReports(reports ContainerReportsRequestProto) : void in class org.apache.hadoop.ozone.scm.container.ContainerMapping | From | To | |
| Rename Variable containerInfo : StorageContainerDatanodeProtocolProtos.ContainerInfo to datanodeState : StorageContainerDatanodeProtocolProtos.ContainerInfo in method public processContainerReports(reports ContainerReportsRequestProto) : void in class org.apache.hadoop.ozone.scm.container.ContainerMapping | From | To | |
| Parameterize Variable | 2 | ||
| Parameterize Variable containerInfo : StorageContainerDatanodeProtocolProtos.ContainerInfo to datanodeState : StorageContainerDatanodeProtocolProtos.ContainerInfo in method private reconcileState(datanodeState StorageContainerDatanodeProtocolProtos.ContainerInfo, knownState OzoneProtos.SCMContainerInfo) : OzoneProtos.SCMContainerInfo in class org.apache.hadoop.ozone.scm.container.ContainerMapping | From | To | |
| Parameterize Variable oldInfo : OzoneProtos.SCMContainerInfo to knownState : OzoneProtos.SCMContainerInfo in method private reconcileState(datanodeState StorageContainerDatanodeProtocolProtos.ContainerInfo, knownState OzoneProtos.SCMContainerInfo) : OzoneProtos.SCMContainerInfo in class org.apache.hadoop.ozone.scm.container.ContainerMapping | From | To | |
| Extract Method | 4 | ||
| Extract Method private closeContainerIfNeeded(newState OzoneProtos.SCMContainerInfo) : boolean extracted from public processContainerReports(reports ContainerReportsRequestProto) : void in class org.apache.hadoop.ozone.scm.container.ContainerMapping | From | To | |
| Extract Method private shouldClose(info ContainerInfo) : boolean extracted from public processContainerReports(reports ContainerReportsRequestProto) : void in class org.apache.hadoop.ozone.scm.container.ContainerMapping | From | To | |
| Extract Method private reconcileState(datanodeState StorageContainerDatanodeProtocolProtos.ContainerInfo, knownState OzoneProtos.SCMContainerInfo) : OzoneProtos.SCMContainerInfo extracted from public processContainerReports(reports ContainerReportsRequestProto) : void in class org.apache.hadoop.ozone.scm.container.ContainerMapping | From | To | |
| Extract Method private isClosed(info ContainerInfo) : boolean extracted from public processContainerReports(reports ContainerReportsRequestProto) : void in class org.apache.hadoop.ozone.scm.container.ContainerMapping | From | To |