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 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

      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;
    • getStableFollowers

      Deprecated.
    • 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

      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;
    • getStableFollowersOrThrow

      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;
    • 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

      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;
    • getUnstableFollowers

      @Deprecated Map<String,Common.RaftPeerStatus> getUnstableFollowers()
      Deprecated.
    • 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

      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;
    • getUnstableFollowersOrThrow

      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;