b9d9f82e4e77db5e309be1db60b89c8786c846a0
Files Diff
- Added: 1
- Removed: 0
- Renamed: 0
- Modified: 19
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Rename Method | 3 | ||
Rename Method private doCommit() : void renamed to private entriesCommit() : void in class net.kuujo.copycat.resource.internal.LeaderState.Replicator.Replica | From | To | |
Rename Method private doCommit(prevIndex Long, prevEntry ByteBuffer, entries List<ByteBuffer>) : void renamed to private commit(prevIndex Long, prevEntry ByteBuffer, entries List<ByteBuffer>) : void in class net.kuujo.copycat.resource.internal.LeaderState.Replicator.Replica | From | To | |
Rename Method private checkCommits() : void renamed to private commitEntries() : void in class net.kuujo.copycat.resource.internal.LeaderState.Replicator | From | To | |
Change Parameter Type | 3 | ||
Change Parameter Type consumer : BiFunction<Long,ByteBuffer,ByteBuffer> to consumer : TriFunction<Long,Long,ByteBuffer,ByteBuffer> in method public consumer(consumer TriFunction<Long,Long,ByteBuffer,ByteBuffer>) : ResourceContext in class net.kuujo.copycat.resource.internal.ResourceContext | From | To | |
Change Parameter Type consumer : BiFunction<Long,ByteBuffer,ByteBuffer> to consumer : TriFunction<Long,Long,ByteBuffer,ByteBuffer> in method public consumer(consumer TriFunction<Long,Long,ByteBuffer,ByteBuffer>) : CopycatStateContext in class net.kuujo.copycat.resource.internal.CopycatStateContext | From | To | |
Change Parameter Type consumer : BiFunction<Long,ByteBuffer,ByteBuffer> to consumer : TriFunction<Long,Long,ByteBuffer,ByteBuffer> in method public consumer(consumer TriFunction<Long,Long,ByteBuffer,ByteBuffer>) : ResourceContext in class net.kuujo.copycat.resource.internal.DefaultResourceContext | From | To | |
Rename Variable | 2 | ||
Rename Variable uri : String to member : String in method private Replicator() in class net.kuujo.copycat.resource.internal.LeaderState.Replicator | From | To | |
Rename Variable i : long to commitIndex : long in method private applyEntries() : void in class net.kuujo.copycat.resource.internal.LeaderState | From | To | |
Change Return Type | 2 | ||
Change Return Type CompletableFuture<Long> to void in method private commit() : void in class net.kuujo.copycat.resource.internal.LeaderState.Replicator.Replica | From | To | |
Change Return Type BiFunction<Long,ByteBuffer,ByteBuffer> to TriFunction<Long,Long,ByteBuffer,ByteBuffer> in method public consumer() : TriFunction<Long,Long,ByteBuffer,ByteBuffer> in class net.kuujo.copycat.resource.internal.CopycatStateContext | From | To | |
Move Class | 1 | ||
Move Class net.kuujo.copycat.resource.internal.LeaderState.Replica moved to net.kuujo.copycat.resource.internal.LeaderState.Replicator.Replica | From | To | |
Parameterize Variable | 1 | ||
Parameterize Variable index : long to prevIndex : Long in method private getPrevEntry(prevIndex Long) : ByteBuffer in class net.kuujo.copycat.resource.internal.LeaderState.Replicator.Replica | From | To | |
Extract Variable | 1 | ||
Extract Variable term : long in method public commit(request CommitRequest) : CompletableFuture<CommitResponse> from class net.kuujo.copycat.resource.internal.LeaderState | From | To | |
Change Variable Type | 3 | ||
Change Variable Type consumer : BiFunction<Long,ByteBuffer,ByteBuffer> to consumer : TriFunction<Long,Long,ByteBuffer,ByteBuffer> in method public commit(request CommitRequest) : CompletableFuture<CommitResponse> in class net.kuujo.copycat.resource.internal.LeaderState | From | To | |
Change Variable Type index : long to prevIndex : Long in method private getPrevEntry(prevIndex Long) : ByteBuffer in class net.kuujo.copycat.resource.internal.LeaderState.Replicator.Replica | From | To | |
Change Variable Type consumer : BiFunction<Long,ByteBuffer,ByteBuffer> to consumer : TriFunction<Long,Long,ByteBuffer,ByteBuffer> in method public query(request QueryRequest) : CompletableFuture<QueryResponse> in class net.kuujo.copycat.resource.internal.LeaderState | From | To | |
Extract Method | 6 | ||
Extract Method private getEntries(prevIndex Long) : List<ByteBuffer> extracted from private doCommit() : void in class net.kuujo.copycat.resource.internal.LeaderState.Replicator.Replica | From | To | |
Extract Method private getPrevEntry(prevIndex Long) : ByteBuffer extracted from private doCommit() : void in class net.kuujo.copycat.resource.internal.LeaderState.Replicator.Replica | From | To | |
Extract Method private resetNextIndex() : void extracted from private doCommit(prevIndex Long, prevEntry ByteBuffer, entries List<ByteBuffer>) : void in class net.kuujo.copycat.resource.internal.LeaderState.Replicator.Replica | From | To | |
Extract Method private updateNextIndex() : void extracted from private doCommit(prevIndex Long, prevEntry ByteBuffer, entries List<ByteBuffer>) : void in class net.kuujo.copycat.resource.internal.LeaderState.Replicator.Replica | From | To | |
Extract Method private hasMoreEntries() : boolean extracted from private doCommit(prevIndex Long, prevEntry ByteBuffer, entries List<ByteBuffer>) : void in class net.kuujo.copycat.resource.internal.LeaderState.Replicator.Replica | From | To | |
Extract Method private getPrevIndex() : Long extracted from private doCommit() : void in class net.kuujo.copycat.resource.internal.LeaderState.Replicator.Replica | From | To | |
Change Attribute Type | 1 | ||
Change Attribute Type consumer : BiFunction<Long,ByteBuffer,ByteBuffer> to consumer : TriFunction<Long,Long,ByteBuffer,ByteBuffer> in class net.kuujo.copycat.resource.internal.CopycatStateContext | From | To |