b8a7ef1b64392094562e7782e0fd092934724ad2
Files Diff
- Added: 0
- Removed: 0
- Renamed: 0
- Modified: 7
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Change Return Type | 1 | ||
Change Return Type Map<ComponentInstanceId,ComponentInstance> to Collection<ComponentInstance> in method public getAllComponentInstances() : Collection<ComponentInstance> in class org.apache.hadoop.yarn.service.component.Component | From | To | |
Rename Attribute | 1 | ||
Rename Attribute sliderServiceClass : String to serviceClass : String in class org.apache.hadoop.yarn.service.registry.YarnRegistryViewForProviders | From | To | |
Extract Variable | 2 | ||
Extract Variable containerStartTime : long in method public transition(compInstance ComponentInstance, event ComponentInstanceEvent) : void from class org.apache.hadoop.yarn.service.component.instance.ComponentInstance.ContainerStartedTransition | From | To | |
Extract Variable requests : Collection<AMRMClient.ContainerRequest> in method public onContainersAllocated(containers List<Container>) : void from class org.apache.hadoop.yarn.service.ServiceScheduler.AMRMClientCallback | From | To | |
Extract Method | 2 | ||
Extract Method private releaseContainer(container Container) : void extracted from private assignContainerToCompInstance(container Container) : void in class org.apache.hadoop.yarn.service.component.Component | From | To | |
Extract Method public initCompInstanceDir(fs SliderFileSystem, instance ComponentInstance) : Path extracted from public createConfigFileAndAddLocalResource(launcher AbstractLauncher, fs SliderFileSystem, component Component, tokensForSubstitution Map<String,String>, instance ComponentInstance, context ServiceContext) : void in class org.apache.hadoop.yarn.service.provider.ProviderUtils | From | To | |
Change Attribute Type | 1 | ||
Change Attribute Type compInstances : Map<ComponentInstanceId,ComponentInstance> to compInstances : Map<String,ComponentInstance> in class org.apache.hadoop.yarn.service.component.Component | From | To | |
Rename Parameter | 1 | ||
Rename Parameter sliderServiceClass : String to serviceClass : String in method public YarnRegistryViewForProviders(registryOperations RegistryOperations, user String, serviceClass String, instanceName String, applicationAttemptId ApplicationAttemptId) in class org.apache.hadoop.yarn.service.registry.YarnRegistryViewForProviders | From | To |