Class StatusResponse

java.lang.Object
io.etcd.jetcd.impl.AbstractResponse<io.etcd.jetcd.api.StatusResponse>
io.etcd.jetcd.maintenance.StatusResponse
All Implemented Interfaces:
Response

public class StatusResponse extends AbstractResponse<io.etcd.jetcd.api.StatusResponse>
StatusResponse returned by Maintenance.statusMember(String) contains a header, version, dbSize, current leader, raftIndex, and raftTerm.
  • Constructor Details

    • StatusResponse

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

    • getVersion

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