Uses of Class
org.opendaylight.controller.cluster.raft.RaftActorLeadershipTransferCohort
Packages that use RaftActorLeadershipTransferCohort
Package
Description
-
Uses of RaftActorLeadershipTransferCohort in org.opendaylight.controller.cluster.raft
Methods in org.opendaylight.controller.cluster.raft that return RaftActorLeadershipTransferCohortModifier and TypeMethodDescription@Nullable RaftActorLeadershipTransferCohortRaftActorContext.getRaftActorLeadershipTransferCohort()Returns the RaftActorLeadershipTransferCohort if leadership transfer is in progress.RaftActorContextImpl.getRaftActorLeadershipTransferCohort()Methods in org.opendaylight.controller.cluster.raft with parameters of type RaftActorLeadershipTransferCohortModifier and TypeMethodDescriptionvoidRaftActorContext.setRaftActorLeadershipTransferCohort(@Nullable RaftActorLeadershipTransferCohort leadershipTransferCohort) Sets the RaftActorLeadershipTransferCohort for transferring leadership.voidRaftActorContextImpl.setRaftActorLeadershipTransferCohort(RaftActorLeadershipTransferCohort leadershipTransferCohort) -
Uses of RaftActorLeadershipTransferCohort in org.opendaylight.controller.cluster.raft.behaviors
Methods in org.opendaylight.controller.cluster.raft.behaviors with parameters of type RaftActorLeadershipTransferCohortModifier and TypeMethodDescriptionvoidLeader.transferLeadership(@NonNull RaftActorLeadershipTransferCohort leadershipTransferCohort) Attempts to transfer leadership to a follower as per the raft paper (ยง3.10) as follows: Start a timer (Stopwatch). Send an initial AppendEntries heartbeat to all followers. On AppendEntriesReply, check if the follower's new match Index matches the leader's last index If it matches, Send an additional AppendEntries to ensure the follower has applied all its log entries to its state. Send an ElectionTimeout to the follower to immediately start an election. NotifytransferComplete(). Otherwise if the election time out period elapses, notifyabortTransfer().