Interface Member

All Superinterfaces:
DataSerializable, Endpoint

public interface Member extends DataSerializable, Endpoint
Cluster member interface.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the Address of this Member.
    Map<com.hazelcast.instance.EndpointQualifier,Address>
     
    Returns the value of the specified key for this member or null if value is undefined.
    Returns configured attributes for this member.
    This method might not be available on all native clients.
    Returns the socket address of this member for member to member communications or unified depending on config.
    getSocketAddress(com.hazelcast.instance.EndpointQualifier qualifier)
    Returns the socket address of this member.
    Returns the UUID of this member.
    Returns the Hazelcast codebase version of this member; this may or may not be different from cluster version, for example when a node with a different codebase version is added to an existing cluster.
    boolean
    Returns true if this member is a lite member.
    boolean
    Returns true if this member is the local member.

    Methods inherited from interface com.hazelcast.nio.serialization.DataSerializable

    readData, writeData
  • Method Details

    • localMember

      boolean localMember()
      Returns true if this member is the local member.
      Returns:
      true if this member is the local member, false otherwise.
    • isLiteMember

      boolean isLiteMember()
      Returns true if this member is a lite member.
      Returns:
      true if this member is a lite member, false otherwise. Lite members do not own any partition.
    • getAddress

      Address getAddress()
      Returns the Address of this Member.
      Returns:
      the address.
      Since:
      3.6
    • getAddressMap

      Map<com.hazelcast.instance.EndpointQualifier,Address> getAddressMap()
      Returns:
      a map of server socket Addresses per EndpointQualifier of this member
      Since:
      3.12
    • getSocketAddress

      InetSocketAddress getSocketAddress()
      Returns the socket address of this member for member to member communications or unified depending on config. Equivalent to getSocketAddress(ProtocolType.MEMBER).
      Specified by:
      getSocketAddress in interface Endpoint
      Returns:
      the socket address of this member for member to member communications or unified depending on config.
    • getSocketAddress

      InetSocketAddress getSocketAddress(com.hazelcast.instance.EndpointQualifier qualifier)
      Returns the socket address of this member.
      Returns:
      the socket address of this member
      Since:
      3.12
    • getUuid

      UUID getUuid()
      Returns the UUID of this member.
      Specified by:
      getUuid in interface Endpoint
      Returns:
      the UUID of this member.
    • getAttributes

      Map<String,String> getAttributes()
      Returns configured attributes for this member.
      This method might not be available on all native clients.
      Returns:
      configured attributes for this member.
    • getAttribute

      String getAttribute(String key)
      Returns the value of the specified key for this member or null if value is undefined.
      Parameters:
      key - The key to lookup.
      Returns:
      The value for this member key.
    • getVersion

      MemberVersion getVersion()
      Returns the Hazelcast codebase version of this member; this may or may not be different from cluster version, for example when a node with a different codebase version is added to an existing cluster. See the documentation for a more thorough discussion of Cluster and Member / Node version.
      Returns:
      the MemberVersion of this member.
      Since:
      3.8