be108c0bfbfece08e5b673510b08cf9acff3205f
Files Diff
- Added: 0
- Removed: 0
- Renamed: 0
- Modified: 3
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Move And Rename Method | 2 | ||
Move And Rename Method public timestamp() : long from class net.kuujo.copycat.raft.server.state.ServerContext.SessionContext to package getTimestamp() : long from class net.kuujo.copycat.raft.server.state.ServerSession | From | To | |
Move And Rename Method public query(version long) : void from class net.kuujo.copycat.raft.server.state.ServerContext.SessionContext to package setVersion(version long) : ServerSession from class net.kuujo.copycat.raft.server.state.ServerSession | From | To | |
Rename Variable | 1 | ||
Rename Variable context : SessionContext to session : ServerSession in method private keepAlive(index long, timestamp long, sessionId long) : CompletableFuture<Void> in class net.kuujo.copycat.raft.server.state.ServerContext | From | To | |
Change Return Type | 2 | ||
Change Return Type Session to ServerSession in method package getSession(sessionId long) : ServerSession in class net.kuujo.copycat.raft.server.state.SessionManager | From | To | |
Change Return Type void to ServerSession in method package setVersion(version long) : ServerSession in class net.kuujo.copycat.raft.server.state.ServerSession | From | To | |
Move Attribute | 4 | ||
Move Attribute private version : long from class net.kuujo.copycat.raft.server.state.ServerContext.SessionContext to private version : long from class net.kuujo.copycat.raft.server.state.ServerSession | From | To | |
Move Attribute private queries : Map<Long,List<Runnable>> from class net.kuujo.copycat.raft.server.state.ServerContext.SessionContext to private queries : Map<Long,List<Runnable>> from class net.kuujo.copycat.raft.server.state.ServerSession | From | To | |
Move Attribute private timestamp : long from class net.kuujo.copycat.raft.server.state.ServerContext.SessionContext to private timestamp : long from class net.kuujo.copycat.raft.server.state.ServerSession | From | To | |
Move Attribute private index : long from class net.kuujo.copycat.raft.server.state.ServerContext.SessionContext to private index : long from class net.kuujo.copycat.raft.server.state.ServerSession | From | To | |
Change Variable Type | 4 | ||
Change Variable Type context : SessionContext to session : ServerSession in method private keepAlive(index long, timestamp long, sessionId long) : CompletableFuture<Void> in class net.kuujo.copycat.raft.server.state.ServerContext | From | To | |
Change Variable Type session : Session to session : ServerSession in method private query(index long, sessionId long, version long, timestamp long, query Query) : CompletableFuture<Object> in class net.kuujo.copycat.raft.server.state.ServerContext | From | To | |
Change Variable Type session : Session to session : ServerSession in method private command(index long, sessionId long, request long, version long, timestamp long, command Command) : CompletableFuture<Object> in class net.kuujo.copycat.raft.server.state.ServerContext | From | To | |
Change Variable Type session : Session to session : ServerSession in method private register(index long, connectionId UUID, timestamp long) : CompletableFuture<Long> in class net.kuujo.copycat.raft.server.state.ServerContext | From | To | |
Extract And Move Method | 2 | ||
Extract And Move Method package registerQuery(version long, query Runnable) : ServerSession extracted from private query(index long, sessionId long, version long, timestamp long, query Query) : CompletableFuture<Object> in class net.kuujo.copycat.raft.server.state.ServerContext & moved to class net.kuujo.copycat.raft.server.state.ServerSession | From | To | |
Extract And Move Method package setTimestamp(timestamp long) : ServerSession extracted from private command(index long, sessionId long, request long, version long, timestamp long, command Command) : CompletableFuture<Object> in class net.kuujo.copycat.raft.server.state.ServerContext & moved to class net.kuujo.copycat.raft.server.state.ServerSession | From | To |