Uses of Interface
org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior
Packages that use RaftActorBehavior
Package
Description
-
Uses of RaftActorBehavior in org.opendaylight.controller.cluster.raft
Methods in org.opendaylight.controller.cluster.raft that return RaftActorBehaviorModifier and TypeMethodDescriptionprotected RaftActorBehaviorRaftActor.getCurrentBehavior()RaftActorContext.getCurrentBehavior()Returns the current behavior attached to the RaftActor.RaftActorContextImpl.getCurrentBehavior()Methods in org.opendaylight.controller.cluster.raft with parameters of type RaftActorBehaviorModifier and TypeMethodDescriptionprotected voidRaftActor.changeCurrentBehavior(RaftActorBehavior newBehavior) -
Uses of RaftActorBehavior in org.opendaylight.controller.cluster.raft.behaviors
Classes in org.opendaylight.controller.cluster.raft.behaviors that implement RaftActorBehaviorModifier and TypeClassDescriptionclassThe behavior of a RaftActor when it is in the Leader state.classAbstract class that provides common code for a RaftActor behavior.final classThe behavior of a RaftActor when it is in the Candidate raft state.classThe behavior of a RaftActor in the Follower raft state.classLeader which is termed as isolated.classThe behavior of a RaftActor when it is in the Leader state.classThe behavior of a RaftActor when it is in the PreLeader state.Methods in org.opendaylight.controller.cluster.raft.behaviors that return RaftActorBehaviorModifier and TypeMethodDescriptionprotected RaftActorBehaviorAbstractRaftActorBehavior.appendEntries(akka.actor.ActorRef sender, AppendEntries appendEntries) Handles the common logic for the AppendEntries message and delegates handling to the derived class.static RaftActorBehaviorAbstractRaftActorBehavior.createBehavior(RaftActorContext context, RaftState state) protected RaftActorBehaviorAbstractLeader.handleAppendEntries(akka.actor.ActorRef sender, AppendEntries appendEntries) protected abstract RaftActorBehaviorAbstractRaftActorBehavior.handleAppendEntries(akka.actor.ActorRef sender, AppendEntries appendEntries) Derived classes should not directly handle AppendEntries messages it should let the base class handle it first.protected RaftActorBehaviorCandidate.handleAppendEntries(akka.actor.ActorRef sender, AppendEntries appendEntries) protected RaftActorBehaviorFollower.handleAppendEntries(akka.actor.ActorRef sender, AppendEntries appendEntries) protected RaftActorBehaviorAbstractLeader.handleAppendEntriesReply(akka.actor.ActorRef sender, AppendEntriesReply appendEntriesReply) protected abstract RaftActorBehaviorAbstractRaftActorBehavior.handleAppendEntriesReply(akka.actor.ActorRef sender, AppendEntriesReply appendEntriesReply) Derived classes should not directly handle AppendEntriesReply messages it should let the base class handle it first.protected RaftActorBehaviorCandidate.handleAppendEntriesReply(akka.actor.ActorRef sender, AppendEntriesReply appendEntriesReply) protected RaftActorBehaviorFollower.handleAppendEntriesReply(akka.actor.ActorRef sender, AppendEntriesReply appendEntriesReply) protected RaftActorBehaviorIsolatedLeader.handleAppendEntriesReply(akka.actor.ActorRef sender, AppendEntriesReply appendEntriesReply) protected RaftActorBehaviorLeader.handleAppendEntriesReply(akka.actor.ActorRef sender, AppendEntriesReply appendEntriesReply) AbstractLeader.handleMessage(akka.actor.ActorRef sender, Object message) AbstractRaftActorBehavior.handleMessage(akka.actor.ActorRef sender, Object message) Candidate.handleMessage(akka.actor.ActorRef sender, Object message) Follower.handleMessage(akka.actor.ActorRef sender, Object message) Leader.handleMessage(akka.actor.ActorRef sender, Object originalMessage) PreLeader.handleMessage(akka.actor.ActorRef sender, Object message) @Nullable RaftActorBehaviorRaftActorBehavior.handleMessage(akka.actor.ActorRef sender, Object message) Handle a message.protected RaftActorBehaviorAbstractLeader.handleRequestVoteReply(akka.actor.ActorRef sender, RequestVoteReply requestVoteReply) protected abstract RaftActorBehaviorAbstractRaftActorBehavior.handleRequestVoteReply(akka.actor.ActorRef sender, RequestVoteReply requestVoteReply) Derived classes should not directly handle RequestVoteReply messages it should let the base class handle it first.protected RaftActorBehaviorCandidate.handleRequestVoteReply(akka.actor.ActorRef sender, RequestVoteReply requestVoteReply) protected RaftActorBehaviorFollower.handleRequestVoteReply(akka.actor.ActorRef sender, RequestVoteReply requestVoteReply) protected RaftActorBehaviorAbstractRaftActorBehavior.internalSwitchBehavior(RaftActorBehavior newBehavior) protected RaftActorBehaviorAbstractRaftActorBehavior.internalSwitchBehavior(RaftState newState) protected RaftActorBehaviorAbstractRaftActorBehavior.requestVote(akka.actor.ActorRef sender, RequestVote requestVote) Handles the logic for the RequestVote message that is common for all behaviors.AbstractRaftActorBehavior.switchBehavior(RaftActorBehavior behavior) RaftActorBehavior.switchBehavior(RaftActorBehavior behavior) Closes the current behavior and switches to the specified behavior, if possible.Methods in org.opendaylight.controller.cluster.raft.behaviors with parameters of type RaftActorBehaviorModifier and TypeMethodDescriptionprotected RaftActorBehaviorAbstractRaftActorBehavior.internalSwitchBehavior(RaftActorBehavior newBehavior) AbstractRaftActorBehavior.switchBehavior(RaftActorBehavior behavior) RaftActorBehavior.switchBehavior(RaftActorBehavior behavior) Closes the current behavior and switches to the specified behavior, if possible.