Package io.dingodb.common
Interface Common.BRaftStatusOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Common.BRaftStatus,Common.BRaftStatus.Builder
- Enclosing class:
- Common
public static interface Common.BRaftStatusOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleana map of stable followers, where the key is the peer ID and the value is the status of the followerbooleana map of unstable followers, where the key is the peer ID and the value is the status of the followerlongthe index of the highest log entry currently being applied to the state machinelongthe index of the highest log entry known to be committedlongthe index of the last log entry persisted to disklongthe index of the first log entrylongthe index of the highest log entry applied to the state machinelongthe index of the last log entrythe ID of the current leader peercom.google.protobuf.ByteStringthe ID of the current leader peerthe ID of the peer associated with this statuscom.google.protobuf.ByteStringthe ID of the peer associated with this statuslongthe index of the highest log entry not yet known to be committedlongthe size of the pending queuethe current state of the raft nodeintthe current state of the raft nodebooleanwhether the node is in read-only modeDeprecated.inta map of stable followers, where the key is the peer ID and the value is the status of the followera map of stable followers, where the key is the peer ID and the value is the status of the followergetStableFollowersOrDefault(String key, Common.RaftPeerStatus defaultValue) a map of stable followers, where the key is the peer ID and the value is the status of the followera map of stable followers, where the key is the peer ID and the value is the status of the followerlonggetTerm()the current term of the raft nodeDeprecated.inta map of unstable followers, where the key is the peer ID and the value is the status of the followera map of unstable followers, where the key is the peer ID and the value is the status of the followergetUnstableFollowersOrDefault(String key, Common.RaftPeerStatus defaultValue) a map of unstable followers, where the key is the peer ID and the value is the status of the followera map of unstable followers, where the key is the peer ID and the value is the status of the followerMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getRaftStateValue
int getRaftStateValue()the current state of the raft node
.dingodb.pb.common.RaftNodeState raft_state = 1;- Returns:
- The enum numeric value on the wire for raftState.
-
getRaftState
Common.RaftNodeState getRaftState()the current state of the raft node
.dingodb.pb.common.RaftNodeState raft_state = 1;- Returns:
- The raftState.
-
getPeerId
String getPeerId()the ID of the peer associated with this status
string peer_id = 11;- Returns:
- The peerId.
-
getPeerIdBytes
com.google.protobuf.ByteString getPeerIdBytes()the ID of the peer associated with this status
string peer_id = 11;- Returns:
- The bytes for peerId.
-
getLeaderPeerId
String getLeaderPeerId()the ID of the current leader peer
string leader_peer_id = 12;- Returns:
- The leaderPeerId.
-
getLeaderPeerIdBytes
com.google.protobuf.ByteString getLeaderPeerIdBytes()the ID of the current leader peer
string leader_peer_id = 12;- Returns:
- The bytes for leaderPeerId.
-
getReadonly
boolean getReadonly()whether the node is in read-only mode
bool readonly = 13;- Returns:
- The readonly.
-
getTerm
long getTerm()the current term of the raft node
int64 term = 14;- Returns:
- The term.
-
getCommittedIndex
long getCommittedIndex()the index of the highest log entry known to be committed
int64 committed_index = 15;- Returns:
- The committedIndex.
-
getKnownAppliedIndex
long getKnownAppliedIndex()the index of the highest log entry applied to the state machine
int64 known_applied_index = 16;- Returns:
- The knownAppliedIndex.
-
getPendingIndex
long getPendingIndex()the index of the highest log entry not yet known to be committed
int64 pending_index = 17;- Returns:
- The pendingIndex.
-
getPendingQueueSize
long getPendingQueueSize()the size of the pending queue
int64 pending_queue_size = 18;- Returns:
- The pendingQueueSize.
-
getApplyingIndex
long getApplyingIndex()the index of the highest log entry currently being applied to the state machine
int64 applying_index = 19;- Returns:
- The applyingIndex.
-
getFirstIndex
long getFirstIndex()the index of the first log entry
int64 first_index = 20;- Returns:
- The firstIndex.
-
getLastIndex
long getLastIndex()the index of the last log entry
int64 last_index = 21;- Returns:
- The lastIndex.
-
getDiskIndex
long getDiskIndex()the index of the last log entry persisted to disk
int64 disk_index = 22;- Returns:
- The diskIndex.
-
getStableFollowersCount
int getStableFollowersCount()a map of stable followers, where the key is the peer ID and the value is the status of the follower
map<string, .dingodb.pb.common.RaftPeerStatus> stable_followers = 23; -
containsStableFollowers
a map of stable followers, where the key is the peer ID and the value is the status of the follower
map<string, .dingodb.pb.common.RaftPeerStatus> stable_followers = 23; -
getStableFollowers
Deprecated.UsegetStableFollowersMap()instead. -
getStableFollowersMap
Map<String,Common.RaftPeerStatus> getStableFollowersMap()a map of stable followers, where the key is the peer ID and the value is the status of the follower
map<string, .dingodb.pb.common.RaftPeerStatus> stable_followers = 23; -
getStableFollowersOrDefault
a map of stable followers, where the key is the peer ID and the value is the status of the follower
map<string, .dingodb.pb.common.RaftPeerStatus> stable_followers = 23; -
getStableFollowersOrThrow
a map of stable followers, where the key is the peer ID and the value is the status of the follower
map<string, .dingodb.pb.common.RaftPeerStatus> stable_followers = 23; -
getUnstableFollowersCount
int getUnstableFollowersCount()a map of unstable followers, where the key is the peer ID and the value is the status of the follower
map<string, .dingodb.pb.common.RaftPeerStatus> unstable_followers = 24; -
containsUnstableFollowers
a map of unstable followers, where the key is the peer ID and the value is the status of the follower
map<string, .dingodb.pb.common.RaftPeerStatus> unstable_followers = 24; -
getUnstableFollowers
Deprecated.UsegetUnstableFollowersMap()instead. -
getUnstableFollowersMap
Map<String,Common.RaftPeerStatus> getUnstableFollowersMap()a map of unstable followers, where the key is the peer ID and the value is the status of the follower
map<string, .dingodb.pb.common.RaftPeerStatus> unstable_followers = 24; -
getUnstableFollowersOrDefault
a map of unstable followers, where the key is the peer ID and the value is the status of the follower
map<string, .dingodb.pb.common.RaftPeerStatus> unstable_followers = 24; -
getUnstableFollowersOrThrow
a map of unstable followers, where the key is the peer ID and the value is the status of the follower
map<string, .dingodb.pb.common.RaftPeerStatus> unstable_followers = 24;
-