Class StatusResponse

    • Constructor Summary

      Constructors 
      Constructor Description
      StatusResponse​(io.etcd.jetcd.api.StatusResponse response)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getDbSize()
      Returns the size of the backend database, in bytes, of the responding member.
      long getLeader()
      Returns the member ID which the responding member believes is the current leader.
      long getRaftIndex()
      Returns the current raft index of the responding member.
      long getRaftTerm()
      Returns the current raft term of the responding member.
      java.lang.String getVersion()
      Returns the cluster protocol version used by the responding member.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • StatusResponse

        public StatusResponse​(io.etcd.jetcd.api.StatusResponse response)
    • Method Detail

      • getVersion

        public java.lang.String getVersion()
        Returns the cluster protocol version used by the responding member.
        Returns:
        the version.
      • getDbSize

        public long getDbSize()
        Returns the size of the backend database, in bytes, of the responding member.
        Returns:
        the db sie.
      • getLeader

        public long getLeader()
        Returns the member ID which the responding member believes is the current leader.
        Returns:
        the leader.
      • getRaftIndex

        public long getRaftIndex()
        Returns the current raft index of the responding member.
        Returns:
        the raft index.
      • getRaftTerm

        public long getRaftTerm()
        Returns the current raft term of the responding member.
        Returns:
        the raft term.