Package io.etcd.jetcd
Interface Cluster
- All Superinterfaces:
AutoCloseable,CloseableClient
Interface of cluster client talking to etcd.
-
Method Summary
Modifier and TypeMethodDescriptionadd a non-learner new member into the cluster.add a new member into the cluster.lists the current cluster membership.removeMember(long memberID) removes an existing member from the cluster.updateMember(long memberID, List<URI> peerAddrs) update peer addresses of the member.Methods inherited from interface io.etcd.jetcd.support.CloseableClient
close
-
Method Details
-
listMember
CompletableFuture<MemberListResponse> listMember()lists the current cluster membership.- Returns:
- the response
-
addMember
add a non-learner new member into the cluster.- Parameters:
peerAddrs- the peer addresses of the new member- Returns:
- the response
-
addMember
add a new member into the cluster.- Parameters:
peerAddrs- the peer addresses of the new memberisLearner- whether the member is raft learner- Returns:
- the response
-
removeMember
removes an existing member from the cluster.- Parameters:
memberID- the member to remove.- Returns:
- the response
-
updateMember
update peer addresses of the member.- Parameters:
memberID- the member id.peerAddrs- the addresses.- Returns:
- the response
-