Class Member

java.lang.Object
io.etcd.jetcd.cluster.Member

public class Member extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    Member(io.etcd.jetcd.api.Member member)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns list of URLs the member exposes to clients for communication, if the member is not started, clientURLs will be empty.
    long
    Returns the member ID for this member.
    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.
    boolean
    Returns if the member is raft learner

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public 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 List<URI> getPeerURIs()
      Returns the list of URLs the member exposes to the cluster for communication.
      Returns:
      the peer url
    • getClientURIs

      public List<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