443425a5d956021a176482222f9bfe7023f2b633
Files Diff
- Added: 9
- Removed: 0
- Renamed: 0
- Modified: 12
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Change Return Type | 1 | ||
Change Return Type void to ContainerInfo in method private createContainer(containerName String) : ContainerInfo in class org.apache.hadoop.ozone.scm.container.TestContainerMapping | From | To | |
Move Attribute | 1 | ||
Move Attribute public thrown : ExpectedException from class org.apache.hadoop.ozone.scm.container.TestContainerStateManager to public thrown : ExpectedException from class org.apache.hadoop.ozone.scm.container.ContainerStates.TestContainerAttribute | From | To | |
Change Variable Type | 5 | ||
Change Variable Type pendingCloseContainers : List<ContainerInfo> to pendingCloseContainers : NavigableSet<ContainerID> in method public testContainerCloseWithContainerReport() : void in class org.apache.hadoop.ozone.scm.container.TestContainerMapping | From | To | |
Change Variable Type closeContainers : List<ContainerInfo> to closeContainers : NavigableSet<ContainerID> in method public testCloseContainer() : void in class org.apache.hadoop.ozone.scm.container.TestContainerMapping | From | To | |
Change Variable Type pendingCloseContainers : List<ContainerInfo> to pendingCloseContainers : NavigableSet<ContainerID> in method public testCloseContainer() : void in class org.apache.hadoop.ozone.scm.container.TestContainerMapping | From | To | |
Change Variable Type deleteContainers : List<ContainerInfo> to deleteContainers : NavigableSet<ContainerID> in method public testContainerCreationLeaseTimeout() : void in class org.apache.hadoop.ozone.scm.container.TestContainerMapping | From | To | |
Change Variable Type containerList : List<ContainerInfo> to containerList : NavigableSet<ContainerID> in method public testUpdateContainerState() : void in class org.apache.hadoop.ozone.scm.container.TestContainerStateManager | From | To | |
Extract Variable | 1 | ||
Extract Variable temp : OzoneProtos.SCMContainerInfo in method public getContainer(containerName String) : ContainerInfo from class org.apache.hadoop.ozone.scm.container.ContainerMapping | From | To | |
Change Attribute Type | 1 | ||
Change Attribute Type containers : Map<ContainerKey,PriorityQueue<ContainerInfo>> to containers : ContainerStateMap in class org.apache.hadoop.ozone.scm.container.ContainerStateManager | From | To | |
Extract And Move Method | 1 | ||
Extract And Move Method public setState(state OzoneProtos.LifeCycleState) : void extracted from public allocateContainer(selector PipelineSelector, type OzoneProtos.ReplicationType, replicationFactor OzoneProtos.ReplicationFactor, containerName String, owner String) : ContainerInfo in class org.apache.hadoop.ozone.scm.container.ContainerStateManager & moved to class org.apache.hadoop.scm.container.common.helpers.ContainerInfo | From | To |