b01001e6879c5873c9cabc6c41628f7cabc79547
Files Diff
- Added: 10
- Removed: 5
- Renamed: 0
- Modified: 20
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Change Parameter Type | 2 | ||
Change Parameter Type event : CacheEntryEvent<ServiceName,Set<Node>> to event : CacheEntryEvent<T,Set<Node>> in method public modified(event CacheEntryEvent<T,Set<Node>>) : void in class org.wildfly.clustering.server.provider.CacheServiceProviderRegistry | From | To | |
Change Parameter Type env : Value<ServerEnvironment> to group : Value<Group> in method public NodeService(group Value<Group>) in class org.jboss.as.test.clustering.cluster.singleton.service.NodeService | From | To | |
Move Attribute | 1 | ||
Move Attribute private started : boolean from class org.wildfly.clustering.server.singleton.DistributedSingletonServiceBuilder to private started : boolean from class org.wildfly.clustering.server.singleton.PrimaryProxyService | From | To | |
Extract Attribute | 1 | ||
Extract Attribute public NODE_HEADER : String in class org.jboss.as.test.clustering.cluster.singleton.service.NodeServiceServlet | From | To | |
Rename Class | 4 | ||
Rename Class org.jboss.as.test.clustering.cluster.singleton.service.MyServiceServlet renamed to org.jboss.as.test.clustering.cluster.singleton.service.NodeServiceServlet | From | To | |
Rename Class org.jboss.as.test.clustering.cluster.singleton.service.MyServicePolicyActivator renamed to org.jboss.as.test.clustering.cluster.singleton.service.NodeServicePolicyActivator | From | To | |
Rename Class org.jboss.as.test.clustering.cluster.singleton.service.MyServiceActivator renamed to org.jboss.as.test.clustering.cluster.singleton.service.NodeServiceActivator | From | To | |
Rename Class org.jboss.as.test.clustering.cluster.singleton.service.MyService renamed to org.jboss.as.test.clustering.cluster.singleton.service.NodeService | From | To | |
Change Variable Type | 8 | ||
Change Variable Type env : InjectedValue<ServerEnvironment> to group : InjectedValue<Group> in method private install(target ServiceTarget, factory SingletonServiceBuilderFactory, name ServiceName, quorum int) : void in class org.jboss.as.test.clustering.cluster.singleton.service.NodeServiceActivator | From | To | |
Change Variable Type env : InjectedValue<ServerEnvironment> to group : InjectedValue<Group> in method public activate(context ServiceActivatorContext) : void in class org.jboss.as.test.clustering.cluster.singleton.service.NodeServicePolicyActivator | From | To | |
Change Variable Type service : MyService to service : NodeService in method private install(target ServiceTarget, factory SingletonServiceBuilderFactory, name ServiceName, preferredNode String) : void in class org.jboss.as.test.clustering.tunnel.singleton.SingletonServiceActivator | From | To | |
Change Variable Type service : MyService to service : NodeService in method private install(target ServiceTarget, factory SingletonServiceBuilderFactory, name ServiceName, quorum int) : void in class org.jboss.as.test.clustering.cluster.singleton.service.NodeServiceActivator | From | To | |
Change Variable Type service : ServiceController<Environment> to service : ServiceController<Node> in method protected doGet(req HttpServletRequest, resp HttpServletResponse) : void in class org.jboss.as.test.clustering.cluster.singleton.service.NodeServiceServlet | From | To | |
Change Variable Type env : InjectedValue<ServerEnvironment> to group : InjectedValue<Group> in method private install(target ServiceTarget, factory SingletonServiceBuilderFactory, name ServiceName, preferredNode String) : void in class org.jboss.as.test.clustering.tunnel.singleton.SingletonServiceActivator | From | To | |
Change Variable Type env : Environment to node : Node in method protected doGet(req HttpServletRequest, resp HttpServletResponse) : void in class org.jboss.as.test.clustering.cluster.singleton.service.NodeServiceServlet | From | To | |
Change Variable Type service : MyService to service : NodeService in method public activate(context ServiceActivatorContext) : void in class org.jboss.as.test.clustering.cluster.singleton.service.NodeServicePolicyActivator | From | To | |
Split Attribute | 1 | ||
Split Attribute serviceRegistry : ServiceRegistry to [primaryController : ServiceController<T>, backupController : ServiceController<T>] in class org.wildfly.clustering.server.singleton.DistributedSingletonServiceBuilder | From | To | |
Extract Method | 1 | ||
Extract Method private start(controller ServiceController<?>) : void extracted from public start() : void in class org.wildfly.clustering.server.singleton.DistributedSingletonServiceBuilder | From | To | |
Rename Method | 2 | ||
Rename Method public isMaster() : boolean renamed to public isPrimary() : boolean in class org.wildfly.clustering.server.singleton.DistributedSingletonServiceBuilder | From | To | |
Rename Method public isMaster() : boolean renamed to public isPrimary() : boolean in class org.wildfly.clustering.singleton.Singleton | From | To | |
Rename Variable | 4 | ||
Rename Variable env : InjectedValue<ServerEnvironment> to group : InjectedValue<Group> in method private install(target ServiceTarget, factory SingletonServiceBuilderFactory, name ServiceName, preferredNode String) : void in class org.jboss.as.test.clustering.tunnel.singleton.SingletonServiceActivator | From | To | |
Rename Variable env : Environment to node : Node in method protected doGet(req HttpServletRequest, resp HttpServletResponse) : void in class org.jboss.as.test.clustering.cluster.singleton.service.NodeServiceServlet | From | To | |
Rename Variable env : InjectedValue<ServerEnvironment> to group : InjectedValue<Group> in method private install(target ServiceTarget, factory SingletonServiceBuilderFactory, name ServiceName, quorum int) : void in class org.jboss.as.test.clustering.cluster.singleton.service.NodeServiceActivator | From | To | |
Rename Variable env : InjectedValue<ServerEnvironment> to group : InjectedValue<Group> in method public activate(context ServiceActivatorContext) : void in class org.jboss.as.test.clustering.cluster.singleton.service.NodeServicePolicyActivator | From | To | |
Inline Method | 1 | ||
Inline Method package getServices(node Node) : List<T> inlined to public membershipChanged(previousMembers List<Node>, members List<Node>, merged boolean) : void in class org.wildfly.clustering.server.provider.CacheServiceProviderRegistry | From | To | |
Change Return Type | 4 | ||
Change Return Type Builder<T> to SingletonBuilder<T> in method public createSingletonServiceBuilder(name ServiceName, service Service<T>) : SingletonBuilder<T> in class org.wildfly.clustering.singleton.SingletonPolicy | From | To | |
Change Return Type Builder<T> to SingletonBuilder<T> in method public createSingletonServiceBuilder(name ServiceName, service Service<T>) : SingletonBuilder<T> in class org.wildfly.extension.clustering.singleton.SingletonPolicyBuilder | From | To | |
Change Return Type Environment to Node in method public getValue() : Node in class org.jboss.as.test.clustering.cluster.singleton.service.NodeService | From | To | |
Change Return Type List<T> to Collection<T> in method public execute(services Set<T>) : Collection<T> in class org.wildfly.clustering.server.provider.GetLocalServicesCommand | From | To | |
Rename Attribute | 3 | ||
Rename Attribute master : AtomicBoolean to primary : AtomicBoolean in class org.wildfly.clustering.server.singleton.DistributedSingletonServiceBuilder | From | To | |
Rename Attribute env : Value<ServerEnvironment> to group : Value<Group> in class org.jboss.as.test.clustering.cluster.singleton.service.NodeService | From | To | |
Rename Attribute singletonServiceName : ServiceName to serviceName : ServiceName in class org.wildfly.clustering.server.singleton.DistributedSingletonServiceBuilder | From | To | |
Change Attribute Type | 4 | ||
Change Attribute Type quorum : int to quorum : AtomicInteger in class org.wildfly.clustering.server.singleton.DistributedSingletonServiceBuilder | From | To | |
Change Attribute Type registration : ServiceProviderRegistration<ServiceName> to registration : InjectedValue<ServiceProviderRegistration<ServiceName>> in class org.wildfly.clustering.server.singleton.DistributedSingletonServiceBuilder | From | To | |
Change Attribute Type env : Value<ServerEnvironment> to group : Value<Group> in class org.jboss.as.test.clustering.cluster.singleton.service.NodeService | From | To | |
Change Attribute Type dispatcher : CommandDispatcher<SingletonContext<T>> to dispatcher : InjectedValue<CommandDispatcher<SingletonContext<T>>> in class org.wildfly.clustering.server.singleton.DistributedSingletonServiceBuilder | From | To | |
Rename Parameter | 1 | ||
Rename Parameter env : Value<ServerEnvironment> to group : Value<Group> in method public NodeService(group Value<Group>) in class org.jboss.as.test.clustering.cluster.singleton.service.NodeService | From | To |