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
 BRaftStatus
 
Protobuf type dingodb.pb.common.BRaftStatus
See Also:
  • 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

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • getRaftStateValue

      public int getRaftStateValue()
       the current state of the raft node
       
      .dingodb.pb.common.RaftNodeState raft_state = 1;
      Specified by:
      getRaftStateValue in interface Common.BRaftStatusOrBuilder
      Returns:
      The enum numeric value on the wire for raftState.
    • getRaftState

      public Common.RaftNodeState getRaftState()
       the current state of the raft node
       
      .dingodb.pb.common.RaftNodeState raft_state = 1;
      Specified by:
      getRaftState in interface Common.BRaftStatusOrBuilder
      Returns:
      The raftState.
    • getPeerId

      public String getPeerId()
       the ID of the peer associated with this status
       
      string peer_id = 11;
      Specified by:
      getPeerId in interface Common.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:
      getPeerIdBytes in interface Common.BRaftStatusOrBuilder
      Returns:
      The bytes for peerId.
    • getLeaderPeerId

      public String getLeaderPeerId()
       the ID of the current leader peer
       
      string leader_peer_id = 12;
      Specified by:
      getLeaderPeerId in interface Common.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:
      getLeaderPeerIdBytes in interface Common.BRaftStatusOrBuilder
      Returns:
      The bytes for leaderPeerId.
    • getReadonly

      public boolean getReadonly()
       whether the node is in read-only mode
       
      bool readonly = 13;
      Specified by:
      getReadonly in interface Common.BRaftStatusOrBuilder
      Returns:
      The readonly.
    • getTerm

      public long getTerm()
       the current term of the raft node
       
      int64 term = 14;
      Specified by:
      getTerm in interface Common.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:
      getCommittedIndex in interface Common.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:
      getKnownAppliedIndex in interface Common.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:
      getPendingIndex in interface Common.BRaftStatusOrBuilder
      Returns:
      The pendingIndex.
    • getPendingQueueSize

      public long getPendingQueueSize()
       the size of the pending queue
       
      int64 pending_queue_size = 18;
      Specified by:
      getPendingQueueSize in interface Common.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:
      getApplyingIndex in interface Common.BRaftStatusOrBuilder
      Returns:
      The applyingIndex.
    • getFirstIndex

      public long getFirstIndex()
       the index of the first log entry
       
      int64 first_index = 20;
      Specified by:
      getFirstIndex in interface Common.BRaftStatusOrBuilder
      Returns:
      The firstIndex.
    • getLastIndex

      public long getLastIndex()
       the index of the last log entry
       
      int64 last_index = 21;
      Specified by:
      getLastIndex in interface Common.BRaftStatusOrBuilder
      Returns:
      The lastIndex.
    • getDiskIndex

      public long getDiskIndex()
       the index of the last log entry persisted to disk
       
      int64 disk_index = 22;
      Specified by:
      getDiskIndex in interface Common.BRaftStatusOrBuilder
      Returns:
      The diskIndex.
    • getStableFollowersCount

      public int getStableFollowersCount()
      Description copied from interface: Common.BRaftStatusOrBuilder
       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:
      getStableFollowersCount in interface Common.BRaftStatusOrBuilder
    • containsStableFollowers

      public boolean containsStableFollowers(String key)
       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:
      containsStableFollowers in interface Common.BRaftStatusOrBuilder
    • getStableFollowers

      @Deprecated public Map<String,Common.RaftPeerStatus> getStableFollowers()
      Deprecated.
      Specified by:
      getStableFollowers in interface Common.BRaftStatusOrBuilder
    • getStableFollowersMap

      public 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;
      Specified by:
      getStableFollowersMap in interface Common.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:
      getStableFollowersOrDefault in interface Common.BRaftStatusOrBuilder
    • getStableFollowersOrThrow

      public Common.RaftPeerStatus getStableFollowersOrThrow(String key)
       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:
      getStableFollowersOrThrow in interface Common.BRaftStatusOrBuilder
    • getUnstableFollowersCount

      public int getUnstableFollowersCount()
      Description copied from interface: Common.BRaftStatusOrBuilder
       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:
      getUnstableFollowersCount in interface Common.BRaftStatusOrBuilder
    • containsUnstableFollowers

      public boolean containsUnstableFollowers(String key)
       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:
      containsUnstableFollowers in interface Common.BRaftStatusOrBuilder
    • getUnstableFollowers

      @Deprecated public Map<String,Common.RaftPeerStatus> getUnstableFollowers()
      Deprecated.
      Specified by:
      getUnstableFollowers in interface Common.BRaftStatusOrBuilder
    • getUnstableFollowersMap

      public 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;
      Specified by:
      getUnstableFollowersMap in interface Common.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:
      getUnstableFollowersOrDefault in interface Common.BRaftStatusOrBuilder
    • getUnstableFollowersOrThrow

      public Common.RaftPeerStatus getUnstableFollowersOrThrow(String key)
       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:
      getUnstableFollowersOrThrow in interface Common.BRaftStatusOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.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

      public static Common.BRaftStatus parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Common.BRaftStatus parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Common.BRaftStatus parseDelimitedFrom(InputStream input) throws IOException
      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

      public Common.BRaftStatus.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Common.BRaftStatus.Builder newBuilder()
    • newBuilder

      public static Common.BRaftStatus.Builder newBuilder(Common.BRaftStatus prototype)
    • toBuilder

      public Common.BRaftStatus.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Common.BRaftStatus.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static Common.BRaftStatus getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Common.BRaftStatus> parser()
    • getParserForType

      public com.google.protobuf.Parser<Common.BRaftStatus> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public Common.BRaftStatus getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder