Uses of Interface
io.microraft.RaftEndpoint
Package
Description
-
Uses of RaftEndpoint in io.microraft
Modifier and TypeMethodDescriptionRaftNode.getLocalEndpoint()
Returns the local endpoint of this Raft node.Modifier and TypeMethodDescriptionRaftNode.changeMembership
(RaftEndpoint endpoint, MembershipChangeMode mode, long expectedGroupMembersCommitIndex) Replicates and commits the given membership change to the Raft group, if the given group members commit index is equal to the current group members commit index in the local Raft state.RaftNode.RaftNodeBuilder.setLocalEndpoint
(RaftEndpoint localEndpoint) Sets the endpoint of the Raft node being created.RaftNode.transferLeadership
(RaftEndpoint endpoint) Transfers the leadership role to the given endpoint, if this Raft node is the current Raft group leader with theRaftNodeStatus.ACTIVE
status and the given endpoint is in the committed member list of the Raft group.Modifier and TypeMethodDescriptionRaftNode.RaftNodeBuilder.setInitialGroupMembers
(Collection<RaftEndpoint> initialGroupMembers) Sets the initial member list of the Raft group that the Raft node belongs to.RaftNode.RaftNodeBuilder.setInitialGroupMembers
(Collection<RaftEndpoint> initialGroupMembers, Collection<RaftEndpoint> initialVotingGroupMembers) Sets the initial member list of the Raft group that the Raft node belongs to. -
Uses of RaftEndpoint in io.microraft.exception
Modifier and TypeMethodDescriptionRaftException.getLeader()
Returns the leader endpoint of the related Raft group, if available and known by the Raft node by the time this exception is thrown.Modifier and TypeMethodDescriptionMismatchingRaftGroupMembersCommitIndexException.getMembers()
Returns the current Raft group members knwon by the Raft nodeModifierConstructorDescriptionCannotReplicateException
(RaftEndpoint leader) Creates an instance of the exception.Creates an instance of the exception.LaggingCommitIndexException
(long commitIndex, long expectedCommitIndex, RaftEndpoint leader) Creates an instance of this exception.NotLeaderException
(RaftEndpoint local, RaftEndpoint leader) Creates an instance of this exceptionRaftException
(RaftEndpoint leader) Creates an instance of this exceptionRaftException
(String message, RaftEndpoint leader) Creates an instance of this exceptionRaftException
(String message, RaftEndpoint leader, Throwable cause) Creates an instance of this exceptionModifierConstructorDescriptionMismatchingRaftGroupMembersCommitIndexException
(long commitIndex, Collection<RaftEndpoint> members) Creates an instance of this exception -
Uses of RaftEndpoint in io.microraft.persistence
-
Uses of RaftEndpoint in io.microraft.report
Modifier and TypeMethodDescriptionRaftNodeReport.getEndpoint()
Returns the local endpoint of the Raft node.RaftTerm.getLeaderEndpoint()
Returns the known Raft leader endpoint in the current term, or null if unknown.RaftTerm.getVotedEndpoint()
Returns the Raft endpoint that this Raft node has voted for in the current term, or null if none.Modifier and TypeMethodDescriptionRaftLogStats.getFollowerMatchIndices()
Returns the indices of the last known appended Raft log entries on the followers.RaftNodeReport.getHeartbeatTimestamps()
Returns timestamps of latest heartbeats sent by the non-leader nodes to the leader Raft node, including bothRaftRole.FOLLOWER
andRaftRole.LEARNER
nodes.RaftGroupMembers.getMembers()
Returns the member list of the Raft group.RaftGroupMembers.getVotingMembers()
Returns voting members in the Raft group member list. -
Uses of RaftEndpoint in io.microraft.transport
Modifier and TypeMethodDescriptionboolean
Transport.isReachable
(RaftEndpoint endpoint) Returns true if the given endpoint is supposedly reachable by the time this method is called, false otherwise.void
Transport.send
(RaftEndpoint target, io.microraft.model.message.RaftMessage message) Sends the givenRaftMessage
object to the given endpoint.