Uses of Interface
io.microraft.RaftEndpoint
-
-
Uses of RaftEndpoint in io.microraft
Methods in io.microraft that return RaftEndpoint Modifier and Type Method Description RaftEndpoint
RaftNode. getLocalEndpoint()
Returns the local endpoint of this Raft node.Methods in io.microraft with parameters of type RaftEndpoint Modifier and Type Method Description CompletableFuture<Ordered<RaftGroupMembers>>
RaftNode. 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
RaftNode.RaftNodeBuilder. setLocalEndpoint(RaftEndpoint localEndpoint)
Sets the endpoint of the Raft node being created.CompletableFuture<Ordered<Object>>
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.Method parameters in io.microraft with type arguments of type RaftEndpoint Modifier and Type Method Description RaftNode.RaftNodeBuilder
RaftNode.RaftNodeBuilder. setInitialGroupMembers(Collection<RaftEndpoint> initialGroupMembers)
Sets the initial member list of the Raft group that the Raft node belongs to.RaftNode.RaftNodeBuilder
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
Methods in io.microraft.exception that return RaftEndpoint Modifier and Type Method Description RaftEndpoint
RaftException. 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.Methods in io.microraft.exception that return types with arguments of type RaftEndpoint Modifier and Type Method Description Collection<RaftEndpoint>
MismatchingRaftGroupMembersCommitIndexException. getMembers()
Constructors in io.microraft.exception with parameters of type RaftEndpoint Constructor Description CannotReplicateException(RaftEndpoint leader)
IndeterminateStateException(RaftEndpoint leader)
LaggingCommitIndexException(long commitIndex, long expectedCommitIndex, RaftEndpoint leader)
NotLeaderException(RaftEndpoint local, RaftEndpoint leader)
RaftException(RaftEndpoint leader)
RaftException(String message, RaftEndpoint leader)
RaftException(String message, RaftEndpoint leader, Throwable cause)
Constructor parameters in io.microraft.exception with type arguments of type RaftEndpoint Constructor Description MismatchingRaftGroupMembersCommitIndexException(long commitIndex, Collection<RaftEndpoint> members)
-
Uses of RaftEndpoint in io.microraft.model.groupop
Methods in io.microraft.model.groupop that return RaftEndpoint Modifier and Type Method Description RaftEndpoint
UpdateRaftGroupMembersOp. getEndpoint()
Methods in io.microraft.model.groupop that return types with arguments of type RaftEndpoint Modifier and Type Method Description Collection<RaftEndpoint>
UpdateRaftGroupMembersOp. getMembers()
Collection<RaftEndpoint>
UpdateRaftGroupMembersOp. getVotingMembers()
Methods in io.microraft.model.groupop with parameters of type RaftEndpoint Modifier and Type Method Description UpdateRaftGroupMembersOp.UpdateRaftGroupMembersOpBuilder
UpdateRaftGroupMembersOp.UpdateRaftGroupMembersOpBuilder. setEndpoint(RaftEndpoint endpoint)
Method parameters in io.microraft.model.groupop with type arguments of type RaftEndpoint Modifier and Type Method Description UpdateRaftGroupMembersOp.UpdateRaftGroupMembersOpBuilder
UpdateRaftGroupMembersOp.UpdateRaftGroupMembersOpBuilder. setMembers(Collection<RaftEndpoint> members)
UpdateRaftGroupMembersOp.UpdateRaftGroupMembersOpBuilder
UpdateRaftGroupMembersOp.UpdateRaftGroupMembersOpBuilder. setVotingMembers(Collection<RaftEndpoint> votingMembers)
-
Uses of RaftEndpoint in io.microraft.model.log
Methods in io.microraft.model.log that return types with arguments of type RaftEndpoint Modifier and Type Method Description Collection<RaftEndpoint>
RaftGroupMembersView. getMembers()
Returns the member list of the Raft group.Collection<RaftEndpoint>
RaftGroupMembersView. getVotingMembers()
Returns voting members in the Raft group member list.Method parameters in io.microraft.model.log with type arguments of type RaftEndpoint Modifier and Type Method Description RaftGroupMembersView.RaftGroupMembersViewBuilder
RaftGroupMembersView.RaftGroupMembersViewBuilder. setMembers(Collection<RaftEndpoint> members)
RaftGroupMembersView.RaftGroupMembersViewBuilder
RaftGroupMembersView.RaftGroupMembersViewBuilder. setVotingMembers(Collection<RaftEndpoint> votingMembers)
-
Uses of RaftEndpoint in io.microraft.model.message
Methods in io.microraft.model.message that return RaftEndpoint Modifier and Type Method Description RaftEndpoint
RaftMessage. getSender()
Returns the endpoint of the Raft node which created this messageMethods in io.microraft.model.message that return types with arguments of type RaftEndpoint Modifier and Type Method Description Collection<RaftEndpoint>
InstallSnapshotRequest. getSnapshottedMembers()
Method parameters in io.microraft.model.message with type arguments of type RaftEndpoint Modifier and Type Method Description InstallSnapshotRequest.InstallSnapshotRequestBuilder
InstallSnapshotRequest.InstallSnapshotRequestBuilder. setSnapshottedMembers(Collection<RaftEndpoint> snapshottedMembers)
-
Uses of RaftEndpoint in io.microraft.persistence
Methods in io.microraft.persistence that return RaftEndpoint Modifier and Type Method Description RaftEndpoint
RestoredRaftState. getLocalEndpoint()
RaftEndpoint
RestoredRaftState. getVotedMember()
Methods in io.microraft.persistence with parameters of type RaftEndpoint Modifier and Type Method Description void
NopRaftStore. persistAndFlushLocalEndpoint(RaftEndpoint localEndpoint, boolean localEndpointVoting)
void
RaftStore. persistAndFlushLocalEndpoint(RaftEndpoint localEndpoint, boolean localEndpointVoting)
Persists and flushes the given local Raft endpoint and its voting flag.void
NopRaftStore. persistAndFlushTerm(int term, RaftEndpoint votedFor)
void
RaftStore. persistAndFlushTerm(int term, RaftEndpoint votedFor)
Persists the term and the Raft endpoint that the local Raft node voted for in the given term.Constructors in io.microraft.persistence with parameters of type RaftEndpoint Constructor Description RestoredRaftState(RaftEndpoint localEndpoint, boolean localEndpointVoting, RaftGroupMembersView initialGroupMembers, int term, RaftEndpoint votedMember, SnapshotEntry snapshotEntry, List<LogEntry> entries)
-
Uses of RaftEndpoint in io.microraft.report
Methods in io.microraft.report that return RaftEndpoint Modifier and Type Method Description RaftEndpoint
RaftNodeReport. getEndpoint()
Returns the local endpoint of the Raft node.RaftEndpoint
RaftTerm. getLeaderEndpoint()
Returns the known Raft leader endpoint in the current term, or null if unknown.RaftEndpoint
RaftTerm. getVotedEndpoint()
Returns the Raft endpoint that this Raft node has voted for in the current term, or null if none.Methods in io.microraft.report that return types with arguments of type RaftEndpoint Modifier and Type Method Description Map<RaftEndpoint,Long>
RaftLogStats. getFollowerMatchIndices()
Returns the indices of the last known appended Raft log entries on the followers.Collection<RaftEndpoint>
RaftGroupMembers. getMembers()
Returns the member list of the Raft group.Collection<RaftEndpoint>
RaftGroupMembers. getVotingMembers()
Returns voting members in the Raft group member list. -
Uses of RaftEndpoint in io.microraft.transport
Methods in io.microraft.transport with parameters of type RaftEndpoint Modifier and Type Method Description boolean
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, RaftMessage message)
Sends the givenRaftMessage
object to the given endpoint.
-