java.lang.Object
org.opendaylight.controller.cluster.raft.messages.AbstractRaftRPC
org.opendaylight.controller.cluster.raft.messages.RequestVote
All Implemented Interfaces:
ControlMessage, Serializable, RaftRPC

public final class RequestVote extends AbstractRaftRPC
Invoked by candidates to gather votes (ยง5.2).
See Also:
  • Constructor Details

    • RequestVote

      public RequestVote(long term, String candidateId, long lastLogIndex, long lastLogTerm)
  • Method Details

    • getCandidateId

      public String getCandidateId()
    • getLastLogIndex

      public long getLastLogIndex()
    • getLastLogTerm

      public long getLastLogTerm()
    • toString

      public String toString()
      Overrides:
      toString in class Object