0d721a4ce12d47ea6252e498ada65075d25f2ebb
Files Diff
- Added: 2
- Removed: 0
- Renamed: 0
- Modified: 12
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Rename Method | 6 | ||
Rename Method public poll(request PollRequest) : CompletableFuture<PollResponse> renamed to public vote(request VoteRequest) : CompletableFuture<VoteResponse> in class net.kuujo.copycat.resource.internal.LeaderState | From | To | |
Rename Method public voted() : boolean renamed to public accepted() : boolean in class net.kuujo.copycat.protocol.rpc.PollResponse | From | To | |
Rename Method public poll(request PollRequest) : CompletableFuture<PollResponse> renamed to public vote(request VoteRequest) : CompletableFuture<VoteResponse> in class net.kuujo.copycat.resource.internal.CandidateState | From | To | |
Rename Method protected handlePoll(request PollRequest) : PollResponse renamed to protected handleVote(request VoteRequest) : VoteResponse in class net.kuujo.copycat.resource.internal.FollowerState | From | To | |
Rename Method private resetTimer() : void renamed to private sendVoteRequests() : void in class net.kuujo.copycat.resource.internal.CandidateState | From | To | |
Rename Method public withVoted(voted boolean) : Builder renamed to public withAccepted(accepted boolean) : Builder in class net.kuujo.copycat.protocol.rpc.PollResponse.Builder | From | To | |
Change Parameter Type | 3 | ||
Change Parameter Type request : PollRequest to request : VoteRequest in method public vote(request VoteRequest) : CompletableFuture<VoteResponse> in class net.kuujo.copycat.resource.internal.CandidateState | From | To | |
Change Parameter Type request : PollRequest to request : VoteRequest in method public vote(request VoteRequest) : CompletableFuture<VoteResponse> in class net.kuujo.copycat.resource.internal.LeaderState | From | To | |
Change Parameter Type request : PollRequest to request : VoteRequest in method protected handleVote(request VoteRequest) : VoteResponse in class net.kuujo.copycat.resource.internal.FollowerState | From | To | |
Change Return Type | 5 | ||
Change Return Type PollResponse to VoteResponse in method protected handleVote(request VoteRequest) : VoteResponse in class net.kuujo.copycat.resource.internal.FollowerState | From | To | |
Change Return Type AbstractState to RaftProtocol in method public pollHandler(handler MessageHandler<PollRequest,PollResponse>) : RaftProtocol in class net.kuujo.copycat.resource.internal.AbstractState | From | To | |
Change Return Type CopycatStateContext to RaftProtocol in method public pollHandler(handler MessageHandler<PollRequest,PollResponse>) : RaftProtocol in class net.kuujo.copycat.resource.internal.CopycatStateContext | From | To | |
Change Return Type CompletableFuture<PollResponse> to CompletableFuture<VoteResponse> in method public vote(request VoteRequest) : CompletableFuture<VoteResponse> in class net.kuujo.copycat.resource.internal.CandidateState | From | To | |
Change Return Type CompletableFuture<PollResponse> to CompletableFuture<VoteResponse> in method public vote(request VoteRequest) : CompletableFuture<VoteResponse> in class net.kuujo.copycat.resource.internal.LeaderState | From | To | |
Move Attribute | 1 | ||
Move Attribute private voted : boolean from class net.kuujo.copycat.protocol.rpc.PollResponse to private voted : boolean from class net.kuujo.copycat.protocol.rpc.VoteResponse | From | To | |
Rename Attribute | 1 | ||
Rename Attribute voted : boolean to accepted : boolean in class net.kuujo.copycat.protocol.rpc.PollResponse | From | To | |
Change Variable Type | 2 | ||
Change Variable Type response : PollResponse to response : VoteResponse in method protected handleVote(request VoteRequest) : VoteResponse in class net.kuujo.copycat.resource.internal.FollowerState | From | To | |
Change Variable Type request : PollRequest to request : VoteRequest in method private sendVoteRequests() : void in class net.kuujo.copycat.resource.internal.CandidateState | From | To | |
Extract Method | 2 | ||
Extract Method private logUpToDate(index Long, term Long, request Request) : boolean extracted from protected handlePoll(request PollRequest) : PollResponse in class net.kuujo.copycat.resource.internal.ActiveState | From | To | |
Extract Method private sendPollRequests() : void extracted from private resetHeartbeatTimeout() : void in class net.kuujo.copycat.resource.internal.FollowerState | From | To | |
Rename Parameter | 1 | ||
Rename Parameter voted : boolean to accepted : boolean in method public withAccepted(accepted boolean) : Builder in class net.kuujo.copycat.protocol.rpc.PollResponse.Builder | From | To |