39d5d08c652678167d114506fea20a8a4ed4b1df
Files Diff
- Added: 9
- Removed: 0
- Renamed: 0
- Modified: 8
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Rename Method | 1 | ||
Rename Method private onMessageEvent(message GroupCommands.Message) : void renamed to private onTaskEvent(task GroupTask) : void in class io.atomix.coordination.DistributedGroup | From | To | |
Move And Rename Method | 1 | ||
Move And Rename Method private handle(message GroupCommands.Message) : void from class io.atomix.coordination.DistributedGroup.InternalLocalGroupMember to package handleMessage(message GroupMessage) : void from class io.atomix.coordination.LocalGroupMember | From | To | |
Change Parameter Type | 4 | ||
Change Parameter Type memberId : String to info : GroupMemberInfo in method private onJoinEvent(info GroupMemberInfo) : void in class io.atomix.coordination.DistributedGroup | From | To | |
Change Parameter Type message : GroupCommands.Message to message : GroupMessage in method package handleMessage(message GroupMessage) : void in class io.atomix.coordination.LocalGroupMember | From | To | |
Change Parameter Type consumer : Consumer<T> to consumer : Consumer<GroupMessage<T>> in method public onMessage(topic String, consumer Consumer<GroupMessage<T>>) : Listener<GroupMessage<T>> in class io.atomix.coordination.LocalGroupMember | From | To | |
Change Parameter Type message : GroupCommands.Message to task : GroupTask in method private onTaskEvent(task GroupTask) : void in class io.atomix.coordination.DistributedGroup | From | To | |
Move Method | 9 | ||
Move Method public onElection(callback Consumer<GroupMember>) : Listener<GroupMember> from class io.atomix.coordination.DistributedGroup to public onElection(callback Consumer<GroupMember>) : Listener<GroupMember> from class io.atomix.coordination.GroupElection | From | To | |
Move Method private onElectEvent(leader String) : void from class io.atomix.coordination.DistributedGroup to package onElectEvent(leader String) : void from class io.atomix.coordination.GroupElection | From | To | |
Move Method private onResignEvent(leader String) : void from class io.atomix.coordination.DistributedGroup to package onResignEvent(leader String) : void from class io.atomix.coordination.GroupElection | From | To | |
Move Method public onMessage(topic String, consumer Consumer<T>) : Listener<T> from class io.atomix.coordination.DistributedGroup.InternalLocalGroupMember to public onMessage(topic String, consumer Consumer<GroupMessage<T>>) : Listener<GroupMessage<T>> from class io.atomix.coordination.LocalGroupMember | From | To | |
Move Method public leader() : GroupMember from class io.atomix.coordination.DistributedGroup to public leader() : GroupMember from class io.atomix.coordination.GroupElection | From | To | |
Move Method public resign() : CompletableFuture<Void> from class io.atomix.coordination.DistributedGroup.InternalLocalGroupMember to public resign() : CompletableFuture<Void> from class io.atomix.coordination.LocalGroupMember | From | To | |
Move Method private onTermEvent(term long) : void from class io.atomix.coordination.DistributedGroup to package onTermEvent(term long) : void from class io.atomix.coordination.GroupElection | From | To | |
Move Method public term() : long from class io.atomix.coordination.DistributedGroup to public term() : long from class io.atomix.coordination.GroupElection | From | To | |
Move Method public onTerm(callback Consumer<Long>) : Listener<Long> from class io.atomix.coordination.DistributedGroup to public onTerm(callback Consumer<Long>) : Listener<Long> from class io.atomix.coordination.GroupElection | From | To | |
Change Return Type | 3 | ||
Change Return Type Listener<T> to Listener<GroupMessage<T>> in method public onMessage(topic String, consumer Consumer<GroupMessage<T>>) : Listener<GroupMessage<T>> in class io.atomix.coordination.LocalGroupMember | From | To | |
Change Return Type Set<String> to Set<GroupMemberInfo> in method public listen(commit Commit<GroupCommands.Listen>) : Set<GroupMemberInfo> in class io.atomix.coordination.state.GroupState | From | To | |
Change Return Type String to GroupMemberInfo in method public join(commit Commit<GroupCommands.Join>) : GroupMemberInfo in class io.atomix.coordination.state.GroupState | From | To | |
Move Attribute | 4 | ||
Move Attribute private electionListeners : Listeners<GroupMember> from class io.atomix.coordination.DistributedGroup to private electionListeners : Listeners<GroupMember> from class io.atomix.coordination.GroupElection | From | To | |
Move Attribute private leader : String from class io.atomix.coordination.DistributedGroup to package leader : String from class io.atomix.coordination.GroupElection | From | To | |
Move Attribute private term : long from class io.atomix.coordination.DistributedGroup to private term : long from class io.atomix.coordination.GroupElection | From | To | |
Move Attribute private termListeners : Listeners<Long> from class io.atomix.coordination.DistributedGroup to private termListeners : Listeners<Long> from class io.atomix.coordination.GroupElection | From | To | |
Extract Class | 1 | ||
Extract Class io.atomix.coordination.GroupElection from class io.atomix.coordination.DistributedGroup | From | To | |
Move And Rename Class | 2 | ||
Move And Rename Class io.atomix.coordination.DistributedGroup.InternalGroupMember moved and renamed to io.atomix.coordination.GroupScheduler | From | To | |
Move And Rename Class io.atomix.coordination.DistributedGroup.InternalLocalGroupMember.ListenerHolder moved and renamed to io.atomix.coordination.LocalGroupMember.MessageListenerHolder | From | To | |
Rename Parameter | 2 | ||
Rename Parameter message : GroupCommands.Message to task : GroupTask in method private onTaskEvent(task GroupTask) : void in class io.atomix.coordination.DistributedGroup | From | To | |
Rename Parameter memberId : String to info : GroupMemberInfo in method private onJoinEvent(info GroupMemberInfo) : void in class io.atomix.coordination.DistributedGroup | From | To |