Package io.etcd.jetcd.cluster
Class Member
java.lang.Object
io.etcd.jetcd.cluster.Member
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns list of URLs the member exposes to clients for communication, if the member is not started, clientURLs will be empty.longgetId()Returns the member ID for this member.getName()Returns the human-readable name of the member, ff the member is not started, the name will be an empty string.Returns the list of URLs the member exposes to the cluster for communication.booleanReturns if the member is raft learner
-
Constructor Details
-
Member
public Member(io.etcd.jetcd.api.Member member)
-
-
Method Details
-
getId
public long getId()Returns the member ID for this member.- Returns:
- the id.
-
getName
Returns the human-readable name of the member, ff the member is not started, the name will be an empty string.- Returns:
- the name.
-
getPeerURIs
Returns the list of URLs the member exposes to the cluster for communication.- Returns:
- the peer url
-
getClientURIs
Returns list of URLs the member exposes to clients for communication, if the member is not started, clientURLs will be empty.- Returns:
- the client URIs.
-
isLearner
public boolean isLearner()Returns if the member is raft learner- Returns:
- if the member is raft learner
-