bf8a1750e99cfbfa76021ce51b6514c74c06f498
Files Diff
- Added: 0
- Removed: 0
- Renamed: 0
- Modified: 5
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Extract Attribute | 1 | ||
Extract Attribute public STATUS_TEMPLATE : String in class org.apache.hadoop.yarn.server.nodemanager.containermanager.linux.runtime.docker.DockerInspectCommand | From | To | |
Parameterize Variable | 1 | ||
Parameterize Variable currentContainerStatus : String to containerStatusStr : String in method public parseContainerStatus(containerStatusStr String) : DockerContainerStatus in class org.apache.hadoop.yarn.server.nodemanager.containermanager.linux.runtime.docker.DockerCommandExecutor | From | To | |
Change Variable Type | 1 | ||
Change Variable Type containerId : String to containerId : ContainerId in method public signalContainer(ctx ContainerRuntimeContext) : void in class org.apache.hadoop.yarn.server.nodemanager.containermanager.linux.runtime.DockerLinuxContainerRuntime | From | To | |
Extract Method | 4 | ||
Extract Method private verifyStopCommand(dockerCommands List<String>, signal String) : void extracted from public testDockerStopOnTermSignalWhenRunning() : void in class org.apache.hadoop.yarn.server.nodemanager.containermanager.linux.runtime.TestDockerContainerRuntime | From | To | |
Extract Method public parseContainerStatus(containerStatusStr String) : DockerContainerStatus extracted from public getContainerStatus(containerId String, privilegedOperationExecutor PrivilegedOperationExecutor, nmContext Context) : DockerContainerStatus in class org.apache.hadoop.yarn.server.nodemanager.containermanager.linux.runtime.docker.DockerCommandExecutor | From | To | |
Extract Method private verifyStopCommand(dockerCommands List<String>, signal String) : void extracted from public testDockerStopOnTermSignalWhenRunningPrivileged() : void in class org.apache.hadoop.yarn.server.nodemanager.containermanager.linux.runtime.TestDockerContainerRuntime | From | To | |
Extract Method private executeDockerInspect(containerId ContainerId, inspectCommand DockerInspectCommand) : String extracted from public getIpAndHost(container Container) : String[] in class org.apache.hadoop.yarn.server.nodemanager.containermanager.linux.runtime.DockerLinuxContainerRuntime | From | To |