Package io.dingodb.common
Class Common.BRaftStatus
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.dingodb.common.Common.BRaftStatus
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Common.BRaftStatusOrBuilder,Serializable
- Enclosing class:
- Common
public static final class Common.BRaftStatus
extends com.google.protobuf.GeneratedMessageV3
implements Common.BRaftStatusOrBuilder
BRaftStatusProtobuf type
dingodb.pb.common.BRaftStatus- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
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 followerbooleanlongthe index of the highest log entry currently being applied to the state machinelongthe index of the highest log entry known to be committedstatic Common.BRaftStatusstatic final com.google.protobuf.Descriptors.Descriptorlongthe 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 peercom.google.protobuf.Parser<Common.BRaftStatus>the 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 modeintDeprecated.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 followerinthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) final booleanstatic Common.BRaftStatus.Builderstatic Common.BRaftStatus.BuildernewBuilder(Common.BRaftStatus prototype) protected Common.BRaftStatus.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static Common.BRaftStatusparseDelimitedFrom(InputStream input) static Common.BRaftStatusparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Common.BRaftStatusparseFrom(byte[] data) static Common.BRaftStatusparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Common.BRaftStatusparseFrom(com.google.protobuf.ByteString data) static Common.BRaftStatusparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Common.BRaftStatusparseFrom(com.google.protobuf.CodedInputStream input) static Common.BRaftStatusparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Common.BRaftStatusparseFrom(InputStream input) static Common.BRaftStatusparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Common.BRaftStatusparseFrom(ByteBuffer data) static Common.BRaftStatusparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Common.BRaftStatus>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
RAFT_STATE_FIELD_NUMBER
public static final int RAFT_STATE_FIELD_NUMBER- See Also:
-
PEER_ID_FIELD_NUMBER
public static final int PEER_ID_FIELD_NUMBER- See Also:
-
LEADER_PEER_ID_FIELD_NUMBER
public static final int LEADER_PEER_ID_FIELD_NUMBER- See Also:
-
READONLY_FIELD_NUMBER
public static final int READONLY_FIELD_NUMBER- See Also:
-
TERM_FIELD_NUMBER
public static final int TERM_FIELD_NUMBER- See Also:
-
COMMITTED_INDEX_FIELD_NUMBER
public static final int COMMITTED_INDEX_FIELD_NUMBER- See Also:
-
KNOWN_APPLIED_INDEX_FIELD_NUMBER
public static final int KNOWN_APPLIED_INDEX_FIELD_NUMBER- See Also:
-
PENDING_INDEX_FIELD_NUMBER
public static final int PENDING_INDEX_FIELD_NUMBER- See Also:
-
PENDING_QUEUE_SIZE_FIELD_NUMBER
public static final int PENDING_QUEUE_SIZE_FIELD_NUMBER- See Also:
-
APPLYING_INDEX_FIELD_NUMBER
public static final int APPLYING_INDEX_FIELD_NUMBER- See Also:
-
FIRST_INDEX_FIELD_NUMBER
public static final int FIRST_INDEX_FIELD_NUMBER- See Also:
-
LAST_INDEX_FIELD_NUMBER
public static final int LAST_INDEX_FIELD_NUMBER- See Also:
-
DISK_INDEX_FIELD_NUMBER
public static final int DISK_INDEX_FIELD_NUMBER- See Also:
-
STABLE_FOLLOWERS_FIELD_NUMBER
public static final int STABLE_FOLLOWERS_FIELD_NUMBER- See Also:
-
UNSTABLE_FOLLOWERS_FIELD_NUMBER
public static final int UNSTABLE_FOLLOWERS_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getRaftStateValue
public int getRaftStateValue()the current state of the raft node
.dingodb.pb.common.RaftNodeState raft_state = 1;- Specified by:
getRaftStateValuein interfaceCommon.BRaftStatusOrBuilder- Returns:
- The enum numeric value on the wire for raftState.
-
getRaftState
the current state of the raft node
.dingodb.pb.common.RaftNodeState raft_state = 1;- Specified by:
getRaftStatein interfaceCommon.BRaftStatusOrBuilder- Returns:
- The raftState.
-
getPeerId
the ID of the peer associated with this status
string peer_id = 11;- Specified by:
getPeerIdin interfaceCommon.BRaftStatusOrBuilder- Returns:
- The peerId.
-
getPeerIdBytes
public com.google.protobuf.ByteString getPeerIdBytes()the ID of the peer associated with this status
string peer_id = 11;- Specified by:
getPeerIdBytesin interfaceCommon.BRaftStatusOrBuilder- Returns:
- The bytes for peerId.
-
getLeaderPeerId
the ID of the current leader peer
string leader_peer_id = 12;- Specified by:
getLeaderPeerIdin interfaceCommon.BRaftStatusOrBuilder- Returns:
- The leaderPeerId.
-
getLeaderPeerIdBytes
public com.google.protobuf.ByteString getLeaderPeerIdBytes()the ID of the current leader peer
string leader_peer_id = 12;- Specified by:
getLeaderPeerIdBytesin interfaceCommon.BRaftStatusOrBuilder- Returns:
- The bytes for leaderPeerId.
-
getReadonly
public boolean getReadonly()whether the node is in read-only mode
bool readonly = 13;- Specified by:
getReadonlyin interfaceCommon.BRaftStatusOrBuilder- Returns:
- The readonly.
-
getTerm
public long getTerm()the current term of the raft node
int64 term = 14;- Specified by:
getTermin interfaceCommon.BRaftStatusOrBuilder- Returns:
- The term.
-
getCommittedIndex
public long getCommittedIndex()the index of the highest log entry known to be committed
int64 committed_index = 15;- Specified by:
getCommittedIndexin interfaceCommon.BRaftStatusOrBuilder- Returns:
- The committedIndex.
-
getKnownAppliedIndex
public long getKnownAppliedIndex()the index of the highest log entry applied to the state machine
int64 known_applied_index = 16;- Specified by:
getKnownAppliedIndexin interfaceCommon.BRaftStatusOrBuilder- Returns:
- The knownAppliedIndex.
-
getPendingIndex
public long getPendingIndex()the index of the highest log entry not yet known to be committed
int64 pending_index = 17;- Specified by:
getPendingIndexin interfaceCommon.BRaftStatusOrBuilder- Returns:
- The pendingIndex.
-
getPendingQueueSize
public long getPendingQueueSize()the size of the pending queue
int64 pending_queue_size = 18;- Specified by:
getPendingQueueSizein interfaceCommon.BRaftStatusOrBuilder- Returns:
- The pendingQueueSize.
-
getApplyingIndex
public long getApplyingIndex()the index of the highest log entry currently being applied to the state machine
int64 applying_index = 19;- Specified by:
getApplyingIndexin interfaceCommon.BRaftStatusOrBuilder- Returns:
- The applyingIndex.
-
getFirstIndex
public long getFirstIndex()the index of the first log entry
int64 first_index = 20;- Specified by:
getFirstIndexin interfaceCommon.BRaftStatusOrBuilder- Returns:
- The firstIndex.
-
getLastIndex
public long getLastIndex()the index of the last log entry
int64 last_index = 21;- Specified by:
getLastIndexin interfaceCommon.BRaftStatusOrBuilder- Returns:
- The lastIndex.
-
getDiskIndex
public long getDiskIndex()the index of the last log entry persisted to disk
int64 disk_index = 22;- Specified by:
getDiskIndexin interfaceCommon.BRaftStatusOrBuilder- Returns:
- The diskIndex.
-
getStableFollowersCount
public int getStableFollowersCount()Description copied from interface:Common.BRaftStatusOrBuildera 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;- Specified by:
getStableFollowersCountin interfaceCommon.BRaftStatusOrBuilder
-
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;- Specified by:
containsStableFollowersin interfaceCommon.BRaftStatusOrBuilder
-
getStableFollowers
Deprecated.UsegetStableFollowersMap()instead.- Specified by:
getStableFollowersin interfaceCommon.BRaftStatusOrBuilder
-
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;- Specified by:
getStableFollowersMapin interfaceCommon.BRaftStatusOrBuilder
-
getStableFollowersOrDefault
public Common.RaftPeerStatus getStableFollowersOrDefault(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 follower
map<string, .dingodb.pb.common.RaftPeerStatus> stable_followers = 23;- Specified by:
getStableFollowersOrDefaultin interfaceCommon.BRaftStatusOrBuilder
-
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;- Specified by:
getStableFollowersOrThrowin interfaceCommon.BRaftStatusOrBuilder
-
getUnstableFollowersCount
public int getUnstableFollowersCount()Description copied from interface:Common.BRaftStatusOrBuildera 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;- Specified by:
getUnstableFollowersCountin interfaceCommon.BRaftStatusOrBuilder
-
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;- Specified by:
containsUnstableFollowersin interfaceCommon.BRaftStatusOrBuilder
-
getUnstableFollowers
Deprecated.UsegetUnstableFollowersMap()instead.- Specified by:
getUnstableFollowersin interfaceCommon.BRaftStatusOrBuilder
-
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;- Specified by:
getUnstableFollowersMapin interfaceCommon.BRaftStatusOrBuilder
-
getUnstableFollowersOrDefault
public Common.RaftPeerStatus getUnstableFollowersOrDefault(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 follower
map<string, .dingodb.pb.common.RaftPeerStatus> unstable_followers = 24;- Specified by:
getUnstableFollowersOrDefaultin interfaceCommon.BRaftStatusOrBuilder
-
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;- Specified by:
getUnstableFollowersOrThrowin interfaceCommon.BRaftStatusOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Common.BRaftStatus parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Common.BRaftStatus parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Common.BRaftStatus parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Common.BRaftStatus parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Common.BRaftStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Common.BRaftStatus parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Common.BRaftStatus parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Common.BRaftStatus parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Common.BRaftStatus parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Common.BRaftStatus parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Common.BRaftStatus.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-