Package io.etcd.jetcd.maintenance
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 byMaintenance.statusMember(URI)contains a header, version, dbSize, current leader, raftIndex, and raftTerm.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.etcd.jetcd.Response
Response.Header
-
-
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 longgetDbSize()Returns the size of the backend database, in bytes, of the responding member.longgetLeader()Returns the the member ID which the responding member believes is the current leader.longgetRaftIndex()Returns the current raft index of the responding member.longgetRaftTerm()Returns the current raft term of the responding member.java.lang.StringgetVersion()Returns the cluster protocol version used by the responding member.-
Methods inherited from class io.etcd.jetcd.impl.AbstractResponse
getHeader, getResponse, getResponseHeader, toString
-
-
-
-
Method Detail
-
getVersion
public java.lang.String getVersion()
Returns the cluster protocol version used by the responding member.
-
getDbSize
public long getDbSize()
Returns the size of the backend database, in bytes, of the responding member.
-
getLeader
public long getLeader()
Returns the the member ID which the responding member believes is the current leader.
-
getRaftIndex
public long getRaftIndex()
Returns the current raft index of the responding member.
-
getRaftTerm
public long getRaftTerm()
Returns the current raft term of the responding member.
-
-