public class StatusResponse extends AbstractResponse<io.etcd.jetcd.api.StatusResponse>
Maintenance.statusMember(URI) contains
a header, version, dbSize, current leader, raftIndex, and raftTerm.Response.Header| Constructor and Description |
|---|
StatusResponse(io.etcd.jetcd.api.StatusResponse response) |
| Modifier and Type | Method and Description |
|---|---|
long |
getDbSize()
return the size of the backend database, in bytes, of the responding member.
|
long |
getLeader()
return the the member ID which the responding member believes is the current leader.
|
long |
getRaftIndex()
the current raft index of the responding member.
|
long |
getRaftTerm()
the current raft term of the responding member.
|
String |
getVersion()
returns the cluster protocol version used by the responding member.
|
getHeader, getResponse, getResponseHeader, toStringpublic String getVersion()
public long getDbSize()
public long getLeader()
public long getRaftIndex()
public long getRaftTerm()
Copyright © 2019. All rights reserved.