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
StatusResponse returned by
Maintenance.statusMember(String) 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 -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the size of the backend database, in bytes, of the responding member.longReturns the member ID which the responding member believes is the current leader.longReturns the current raft index of the responding member.longReturns the current raft term of the responding member.Returns the cluster protocol version used by the responding member.Methods inherited from class io.etcd.jetcd.impl.AbstractResponse
getHeader, getResponse, getResponseHeader, toString
-
Constructor Details
-
StatusResponse
public StatusResponse(io.etcd.jetcd.api.StatusResponse response)
-
-
Method Details
-
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.
-