6db86b434683c5108c442957109cf39a13e13289
Files Diff
- Added: 13
- Removed: 4
- Renamed: 0
- Modified: 11
Link to commit
Third party dependencies:
Dependency Action | |
---|---|
Added | |
net.kuujo.copycat:copycat-log:0.5.0-SNAPSHOT | |
Updated | |
From io.vertx:vertx-core 2.1.1 To 3.0.0-SNAPSHOT | |
From io.vertx:vertx-core 3.0.0-SNAPSHOT To 2.1.1 |
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Rename Method | 9 | ||
Rename Method public cluster() : Cluster renamed to public getCluster() : Cluster in class net.kuujo.copycat.resource.PartitionContext | From | To | |
Rename Method public setDefaultName(name String) : void renamed to public setDirectory(directory String) : void in class net.kuujo.copycat.resource.ResourceConfig | From | To | |
Rename Method public config() : T renamed to public getResourceConfig() : T in class net.kuujo.copycat.resource.PartitionContext | From | To | |
Rename Method public executor() : Executor renamed to public getExecutor() : Executor in class net.kuujo.copycat.resource.PartitionContext | From | To | |
Rename Method public name() : String renamed to public getName() : String in class net.kuujo.copycat.resource.PartitionContext | From | To | |
Rename Method public commitHandler(handler CommitHandler) : ResourceContext renamed to public setCommitHandler(handler CommitHandler) : PartitionContext in class net.kuujo.copycat.resource.PartitionContext | From | To | |
Rename Method public serializer() : CopycatSerializer renamed to public getSerializer() : CopycatSerializer in class net.kuujo.copycat.resource.PartitionContext | From | To | |
Rename Method public raft() : RaftContext renamed to public getContext() : RaftContext in class net.kuujo.copycat.resource.PartitionContext | From | To | |
Rename Method public scheduler() : ScheduledExecutorService renamed to public getScheduler() : ScheduledExecutorService in class net.kuujo.copycat.resource.PartitionContext | From | To | |
Change Parameter Type | 7 | ||
Change Parameter Type context : ResourceContext to context : PartitionContext in method public ManagedRemoteMember(id int, address String, protocol Protocol, context PartitionContext) in class net.kuujo.copycat.cluster.internal.ManagedRemoteMember | From | To | |
Change Parameter Type config : ResourceConfig<?> to config : PartitionConfig in method private createRaftConfig(config PartitionConfig, cluster ClusterConfig) : RaftConfig in class net.kuujo.copycat.resource.PartitionContext | From | To | |
Change Parameter Type context : ResourceContext to context : PartitionContext in method public ManagedCluster(config ClusterConfig, context PartitionContext) in class net.kuujo.copycat.cluster.internal.ManagedCluster | From | To | |
Change Parameter Type context : ResourceContext to context : PartitionContext in method package ManagedMembers(config ClusterConfig, context PartitionContext) in class net.kuujo.copycat.cluster.internal.ManagedMembers | From | To | |
Change Parameter Type context : ResourceContext to context : PartitionContext in method public ManagedLocalMember(id int, address String, protocol Protocol, context PartitionContext) in class net.kuujo.copycat.cluster.internal.ManagedLocalMember | From | To | |
Change Parameter Type context : ResourceContext to context : PartitionContext in method public ManagedMember(id int, context PartitionContext) in class net.kuujo.copycat.cluster.internal.ManagedMember | From | To | |
Change Parameter Type config : T to config : ResourceConfig<?> in method protected ResourceConfig(config ResourceConfig<?>) in class net.kuujo.copycat.resource.ResourceConfig | From | To | |
Move Method | 5 | ||
Move Method public getLog() : LogConfig from class net.kuujo.copycat.resource.ResourceConfig to public getLog() : LogConfig from class net.kuujo.copycat.resource.PartitionConfig | From | To | |
Move Method public setLog(log LogConfig) : void from class net.kuujo.copycat.resource.ResourceConfig to public setLog(log LogConfig) : void from class net.kuujo.copycat.resource.PartitionConfig | From | To | |
Move Method public addReplica(id int) : T from class net.kuujo.copycat.resource.ResourceConfig to public addReplica(id int) : PartitionConfig from class net.kuujo.copycat.resource.PartitionConfig | From | To | |
Move Method public getReplicas() : Set<Integer> from class net.kuujo.copycat.resource.ResourceConfig to public getReplicas() : Set<Integer> from class net.kuujo.copycat.resource.PartitionConfig | From | To | |
Move Method public setReplicas(ids Collection<Integer>) : void from class net.kuujo.copycat.resource.ResourceConfig to public setReplicas(ids Collection<Integer>) : void from class net.kuujo.copycat.resource.PartitionConfig | From | To | |
Change Return Type | 5 | ||
Change Return Type CompletableFuture<Cluster> to CompletableFuture<Void> in method public open() : CompletableFuture<Void> in class net.kuujo.copycat.cluster.internal.ManagedCluster | From | To | |
Change Return Type CompletableFuture<ResourceContext> to CompletableFuture<PartitionContext> in method public open() : CompletableFuture<PartitionContext> in class net.kuujo.copycat.resource.PartitionContext | From | To | |
Change Return Type T to PartitionConfig in method public addReplica(id int) : PartitionConfig in class net.kuujo.copycat.resource.PartitionConfig | From | To | |
Change Return Type ResourceContext to PartitionContext in method public setCommitHandler(handler CommitHandler) : PartitionContext in class net.kuujo.copycat.resource.PartitionContext | From | To | |
Change Return Type Set<MemberConfig> to List<MemberConfig> in method public getMembers() : List<MemberConfig> in class net.kuujo.copycat.cluster.ClusterConfig | From | To | |
Move Attribute | 2 | ||
Move Attribute private log : LogConfig from class net.kuujo.copycat.resource.ResourceConfig to private log : LogConfig from class net.kuujo.copycat.resource.PartitionConfig | From | To | |
Move Attribute private replicas : Set<Integer> from class net.kuujo.copycat.resource.ResourceConfig to private replicas : Set<Integer> from class net.kuujo.copycat.resource.PartitionConfig | From | To | |
Rename Class | 3 | ||
Rename Class net.kuujo.copycat.resource.ResourceState renamed to net.kuujo.copycat.resource.PartitionState | From | To | |
Rename Class net.kuujo.copycat.resource.ResourceContext renamed to net.kuujo.copycat.resource.PartitionContext | From | To | |
Rename Class net.kuujo.copycat.resource.internal.AbstractResource renamed to net.kuujo.copycat.resource.internal.AbstractDiscreteResource | From | To | |
Rename Attribute | 1 | ||
Rename Attribute config : ResourceConfig<?> to resourceConfig : ResourceConfig<?> in class net.kuujo.copycat.resource.PartitionContext | From | To | |
Change Variable Type | 1 | ||
Change Variable Type openFuture : CompletableFuture<ResourceContext> to openFuture : CompletableFuture<PartitionContext> in method public open() : CompletableFuture<PartitionContext> in class net.kuujo.copycat.resource.PartitionContext | From | To | |
Extract Interface | 1 | ||
Extract Interface net.kuujo.copycat.resource.DiscreteResource from classes [net.kuujo.copycat.resource.internal.AbstractDiscreteResource] | From | To | |
Extract Method | 1 | ||
Extract Method public setDirectory(directory File) : void extracted from public setDefaultName(name String) : void in class net.kuujo.copycat.resource.ResourceConfig | From | To | |
Change Attribute Type | 5 | ||
Change Attribute Type openFuture : CompletableFuture<ResourceContext> to openFuture : CompletableFuture<PartitionContext> in class net.kuujo.copycat.resource.PartitionContext | From | To | |
Change Attribute Type context : ResourceContext to context : PartitionContext in class net.kuujo.copycat.cluster.internal.ManagedMembers | From | To | |
Change Attribute Type context : ResourceContext to context : PartitionContext in class net.kuujo.copycat.cluster.internal.ManagedMember | From | To | |
Change Attribute Type members : Set<MemberConfig> to members : List<MemberConfig> in class net.kuujo.copycat.cluster.ClusterConfig | From | To | |
Change Attribute Type context : ResourceContext to context : PartitionContext in class net.kuujo.copycat.resource.internal.AbstractDiscreteResource | From | To | |
Rename Parameter | 4 | ||
Rename Parameter name : String to directory : String in method public setDirectory(directory String) : void in class net.kuujo.copycat.resource.ResourceConfig | From | To | |
Rename Parameter config : ResourceConfig<?> to resourceConfig : ResourceConfig<?> in method public PartitionContext(resourceConfig ResourceConfig<?>, partitionConfig PartitionConfig, cluster ClusterConfig, scheduler ScheduledExecutorService, executor Executor) in class net.kuujo.copycat.resource.PartitionContext | From | To | |
Rename Parameter config : ResourceConfig<?> to resourceConfig : ResourceConfig<?> in method public PartitionContext(resourceConfig ResourceConfig<?>, partitionConfig PartitionConfig, cluster ClusterConfig, executor Executor) in class net.kuujo.copycat.resource.PartitionContext | From | To | |
Rename Parameter config : ResourceConfig<?> to resourceConfig : ResourceConfig<?> in method public PartitionContext(resourceConfig ResourceConfig<?>, partitionConfig PartitionConfig, cluster ClusterConfig) in class net.kuujo.copycat.resource.PartitionContext | From | To |