b577b649e0a68179bec9f40eb9b25ab7878cc3b5
Files Diff
- Added: 1
- Removed: 0
- Renamed: 0
- Modified: 8
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Rename Method | 2 | ||
Rename Method package clearCommands(version long) : ServerSession renamed to package clearResponses(version long) : ServerSession in class net.kuujo.copycat.raft.state.ServerSession | From | To | |
Rename Method package addCommand(sequence long, runnable Runnable) : ServerSession renamed to package registerCommand(sequence long, runnable Runnable) : ServerSession in class net.kuujo.copycat.raft.state.ServerSession | From | To | |
Change Parameter Type | 2 | ||
Change Parameter Type instant : Instant to timestamp : long in method private complete(timestamp long) : boolean in class net.kuujo.copycat.raft.state.ServerStateMachineExecutor.ServerScheduledTask | From | To | |
Change Parameter Type instant : Instant to timestamp : long in method package tick(timestamp long) : void in class net.kuujo.copycat.raft.state.ServerStateMachineExecutor | From | To | |
Move Method | 8 | ||
Move Method package apply(entry KeepAliveEntry) : CompletableFuture<Void> from class net.kuujo.copycat.raft.state.ServerContext to private apply(entry KeepAliveEntry) : CompletableFuture<Void> from class net.kuujo.copycat.raft.state.ServerStateMachine | From | To | |
Move Method private setLastApplied(lastApplied long) : void from class net.kuujo.copycat.raft.state.ServerContext to private setLastApplied(lastApplied long) : void from class net.kuujo.copycat.raft.state.ServerStateMachine | From | To | |
Move Method package apply(entry RegisterEntry) : CompletableFuture<Long> from class net.kuujo.copycat.raft.state.ServerContext to private apply(entry RegisterEntry) : CompletableFuture<Long> from class net.kuujo.copycat.raft.state.ServerStateMachine | From | To | |
Move Method package apply(entry NoOpEntry) : CompletableFuture<Long> from class net.kuujo.copycat.raft.state.ServerContext to package apply(entry NoOpEntry) : CompletableFuture<Long> from class net.kuujo.copycat.raft.state.ServerStateMachine | From | To | |
Move Method package apply(entry QueryEntry) : CompletableFuture<Object> from class net.kuujo.copycat.raft.state.ServerContext to package apply(entry QueryEntry) : CompletableFuture<Object> from class net.kuujo.copycat.raft.state.ServerStateMachine | From | To | |
Move Method private expireSession(sessionId long) : CompletableFuture<T> from class net.kuujo.copycat.raft.state.ServerContext to private expireSession(sessionId long, context Context) : CompletableFuture<T> from class net.kuujo.copycat.raft.state.ServerStateMachine | From | To | |
Move Method package apply(entry Entry) : CompletableFuture<?> from class net.kuujo.copycat.raft.state.ServerContext to package apply(entry Entry) : CompletableFuture<?> from class net.kuujo.copycat.raft.state.ServerStateMachine | From | To | |
Move Method package apply(entry CommandEntry) : CompletableFuture<Object> from class net.kuujo.copycat.raft.state.ServerContext to private apply(entry CommandEntry) : CompletableFuture<Object> from class net.kuujo.copycat.raft.state.ServerStateMachine | From | To | |
Move Attribute | 2 | ||
Move Attribute private lastApplied : long from class net.kuujo.copycat.raft.state.ServerContext to private lastApplied : long from class net.kuujo.copycat.raft.state.ServerStateMachine | From | To | |
Move Attribute private commits : ServerCommitPool from class net.kuujo.copycat.raft.state.ServerContext to private commits : ServerCommitPool from class net.kuujo.copycat.raft.state.ServerStateMachine | From | To | |
Extract Class | 1 | ||
Extract Class net.kuujo.copycat.raft.state.ServerStateMachine from class net.kuujo.copycat.raft.state.ServerContext | From | To | |
Rename Attribute | 4 | ||
Rename Attribute commandVersion : long to version : long in class net.kuujo.copycat.raft.state.ServerSession | From | To | |
Rename Attribute index : long to command : long in class net.kuujo.copycat.raft.state.ServerSession | From | To | |
Rename Attribute eventVersion : long to event : long in class net.kuujo.copycat.raft.state.ServerSession | From | To | |
Rename Attribute commandSequence : long to command : long in class net.kuujo.copycat.raft.state.ServerSession | From | To | |
Extract Variable | 1 | ||
Extract Variable stateContext : Context in method public open() : CompletableFuture<Void> from class net.kuujo.copycat.raft.state.ServerContext | From | To | |
Change Variable Type | 1 | ||
Change Variable Type future : ComposableFuture<CommandResponse> to future : CompletableFuture<CommandResponse> in method protected command(request CommandRequest) : CompletableFuture<CommandResponse> in class net.kuujo.copycat.raft.state.LeaderState | From | To | |
Extract Method | 2 | ||
Extract Method package executor() : ServerStateMachineExecutor extracted from package apply(entry CommandEntry) : CompletableFuture<Object> in class net.kuujo.copycat.raft.state.ServerStateMachine | From | To | |
Extract Method private executeCommand(entry CommandEntry, session ServerSession, future CompletableFuture<Object>, context Context) : CompletableFuture<Object> extracted from package apply(entry CommandEntry) : CompletableFuture<Object> in class net.kuujo.copycat.raft.state.ServerStateMachine | From | To | |
Change Attribute Type | 1 | ||
Change Attribute Type stateMachine : StateMachine to stateMachine : ServerStateMachine in class net.kuujo.copycat.raft.state.ServerContext | From | To | |
Rename Parameter | 6 | ||
Rename Parameter version : long to sequence : long in method package clearEvents(sequence long) : ServerSession in class net.kuujo.copycat.raft.state.ServerSession | From | To | |
Rename Parameter version : long to sequence : long in method package hasResponse(sequence long) : boolean in class net.kuujo.copycat.raft.state.ServerSession | From | To | |
Rename Parameter instant : Instant to timestamp : long in method private complete(timestamp long) : boolean in class net.kuujo.copycat.raft.state.ServerStateMachineExecutor.ServerScheduledTask | From | To | |
Rename Parameter instant : Instant to timestamp : long in method package tick(timestamp long) : void in class net.kuujo.copycat.raft.state.ServerStateMachineExecutor | From | To | |
Rename Parameter version : long to sequence : long in method package registerResponse(sequence long, response Object) : ServerSession in class net.kuujo.copycat.raft.state.ServerSession | From | To | |
Rename Parameter version : long to sequence : long in method package getResponse(sequence long) : Object in class net.kuujo.copycat.raft.state.ServerSession | From | To |