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 size of the backend database logically in use, in bytes, of the responding member.Return the information corresponding to the alarms, health and status.longReturns the member ID which the responding member believes is the current leader.longReturns the current raft applied index of the responding member.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.booleanReturns if the member is a raft learner.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.
-
getRaftAppliedIndex
public long getRaftAppliedIndex()Returns the current raft applied index of the responding member.- Returns:
- the raft applied index.
-
getErrorList
Return the information corresponding to the alarms, health and status.- Returns:
- the list of errors
-
getDbSizeInUse
public long getDbSizeInUse()Returns the size of the backend database logically in use, in bytes, of the responding member.- Returns:
- dbSizeInUse
-
isLearner
public boolean isLearner()Returns if the member is a raft learner.- Returns:
- if the member is a raft learner
-