Package io.etcd.jetcd.cluster
Class Member
- java.lang.Object
-
- io.etcd.jetcd.cluster.Member
-
public class Member extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Member(io.etcd.jetcd.api.Member member)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.net.URI>getClientURIs()Returns 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.java.lang.StringgetName()Returns the human-readable name of the member, ff the member is not started, the name will be an empty string.java.util.List<java.net.URI>getPeerURIs()Returns the list of URLs the member exposes to the cluster for communication.booleanisLearner()Returns if the member is raft learner
-
-
-
Method Detail
-
getId
public long getId()
Returns the member ID for this member.- Returns:
- the id.
-
getName
public java.lang.String 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
public java.util.List<java.net.URI> getPeerURIs()
Returns the list of URLs the member exposes to the cluster for communication.- Returns:
- the peer url
-
getClientURIs
public java.util.List<java.net.URI> 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
-
-