|
Change Parameter Type commands : List<LogCommand> to outcome : Outcome<MEMBER> in method private generateCommitIfNecessary(ctx ReadableRaftState<MEMBER>, req AppendEntries.Request<MEMBER>, outcome Outcome<MEMBER>) : boolean in class org.neo4j.coreedge.raft.roles.Follower |
From |
To |
|
Change Parameter Type shipCommands : Iterable<ShipCommand> to shipCommands : Collection<ShipCommand> in method public Outcome(newRole Role, term long, leader MEMBER, leaderCommit long, votedFor MEMBER, votesForMe Set<MEMBER>, lastLogIndexBeforeWeBecameLeader long, followerStates FollowerStates<MEMBER>, renewElectionTimeout boolean, logCommands Collection<LogCommand>, outgoingMessages Collection<RaftMessages.Directed<MEMBER>>, shipCommands Collection<ShipCommand>) in class org.neo4j.coreedge.raft.outcome.Outcome |
From |
To |
|
Change Parameter Type logCommands : Iterable<LogCommand> to logCommands : Collection<LogCommand> in method public Outcome(newRole Role, term long, leader MEMBER, leaderCommit long, votedFor MEMBER, votesForMe Set<MEMBER>, lastLogIndexBeforeWeBecameLeader long, followerStates FollowerStates<MEMBER>, renewElectionTimeout boolean, logCommands Collection<LogCommand>, outgoingMessages Collection<RaftMessages.Directed<MEMBER>>, shipCommands Collection<ShipCommand>) in class org.neo4j.coreedge.raft.outcome.Outcome |
From |
To |
|
Change Parameter Type outgoingMessages : Collection<RaftMessages.Directed<MEMBER>> to outcome : Outcome<MEMBER> in method package sendHeartbeats(ctx ReadableRaftState<MEMBER>, outcome Outcome<MEMBER>) : void in class org.neo4j.coreedge.raft.roles.Leader |
From |
To |
|
Extract And Move Method public setLeader(leader MEMBER) : void extracted from public handle(message RaftMessages.Message<MEMBER>, ctx ReadableRaftState<MEMBER>, log Log) : Outcome<MEMBER> in class org.neo4j.coreedge.raft.roles.Candidate & moved to class org.neo4j.coreedge.raft.outcome.Outcome |
From |
To |
|
Extract And Move Method public renewElectionTimeout() : void extracted from public handle(message RaftMessages.Message<MEMBER>, ctx ReadableRaftState<MEMBER>, log Log) : Outcome<MEMBER> in class org.neo4j.coreedge.raft.roles.Follower & moved to class org.neo4j.coreedge.raft.outcome.Outcome |
From |
To |
|
Extract And Move Method public setLeader(leader MEMBER) : void extracted from public handle(message RaftMessages.Message<MEMBER>, ctx ReadableRaftState<MEMBER>, log Log) : Outcome<MEMBER> in class org.neo4j.coreedge.raft.roles.Follower & moved to class org.neo4j.coreedge.raft.outcome.Outcome |
From |
To |
|
Extract And Move Method public setLeaderCommit(leaderCommit long) : void extracted from public handle(message RaftMessages.Message<MEMBER>, ctx ReadableRaftState<MEMBER>, log Log) : Outcome<MEMBER> in class org.neo4j.coreedge.raft.roles.Leader & moved to class org.neo4j.coreedge.raft.outcome.Outcome |
From |
To |
|
Extract And Move Method public addLogCommand(logCommand LogCommand) : void extracted from public handle(message RaftMessages.Message<MEMBER>, ctx ReadableRaftState<MEMBER>, log Log) : Outcome<MEMBER> in class org.neo4j.coreedge.raft.roles.Leader & moved to class org.neo4j.coreedge.raft.outcome.Outcome |
From |
To |
|
Extract And Move Method public setLeaderCommit(leaderCommit long) : void extracted from public handle(message RaftMessages.Message<MEMBER>, ctx ReadableRaftState<MEMBER>, log Log) : Outcome<MEMBER> in class org.neo4j.coreedge.raft.roles.Follower & moved to class org.neo4j.coreedge.raft.outcome.Outcome |
From |
To |
|
Extract And Move Method public addLogCommand(logCommand LogCommand) : void extracted from public handle(message RaftMessages.Message<MEMBER>, ctx ReadableRaftState<MEMBER>, log Log) : Outcome<MEMBER> in class org.neo4j.coreedge.raft.roles.Follower & moved to class org.neo4j.coreedge.raft.outcome.Outcome |
From |
To |
|
Extract And Move Method public addShipCommand(shipCommand ShipCommand) : void extracted from public handle(message RaftMessages.Message<MEMBER>, ctx ReadableRaftState<MEMBER>, log Log) : Outcome<MEMBER> in class org.neo4j.coreedge.raft.roles.Leader & moved to class org.neo4j.coreedge.raft.outcome.Outcome |
From |
To |
|
Extract And Move Method public setLastLogIndexBeforeWeBecameLeader(lastLogIndexBeforeWeBecameLeader long) : void extracted from public handle(message RaftMessages.Message<MEMBER>, ctx ReadableRaftState<MEMBER>, log Log) : Outcome<MEMBER> in class org.neo4j.coreedge.raft.roles.Candidate & moved to class org.neo4j.coreedge.raft.outcome.Outcome |
From |
To |
|
Extract And Move Method public setVotedFor(votedFor MEMBER) : void extracted from public handle(message RaftMessages.Message<MEMBER>, ctx ReadableRaftState<MEMBER>, log Log) : Outcome<MEMBER> in class org.neo4j.coreedge.raft.roles.Follower & moved to class org.neo4j.coreedge.raft.outcome.Outcome |
From |
To |
|
Rename Parameter newTerm : long to term : long in method public Outcome(newRole Role, term long, leader MEMBER, leaderCommit long, votedFor MEMBER, votesForMe Set<MEMBER>, lastLogIndexBeforeWeBecameLeader long, followerStates FollowerStates<MEMBER>, renewElectionTimeout boolean, logCommands Collection<LogCommand>, outgoingMessages Collection<RaftMessages.Directed<MEMBER>>, shipCommands Collection<ShipCommand>) in class org.neo4j.coreedge.raft.outcome.Outcome |
From |
To |
|
Rename Parameter outgoingMessages : Collection<RaftMessages.Directed<MEMBER>> to outcome : Outcome<MEMBER> in method package sendHeartbeats(ctx ReadableRaftState<MEMBER>, outcome Outcome<MEMBER>) : void in class org.neo4j.coreedge.raft.roles.Leader |
From |
To |
|
Rename Parameter commands : List<LogCommand> to outcome : Outcome<MEMBER> in method private generateCommitIfNecessary(ctx ReadableRaftState<MEMBER>, req AppendEntries.Request<MEMBER>, outcome Outcome<MEMBER>) : boolean in class org.neo4j.coreedge.raft.roles.Follower |
From |
To |