public interface Member extends DataSerializable, Endpoint
Cluster,
MembershipListener| Modifier and Type | Method and Description |
|---|---|
Address |
getAddress()
Returns the Address of this Member.
|
Map<EndpointQualifier,Address> |
getAddressMap() |
String |
getAttribute(String key)
Returns the value of the specified key for this member or
null if value is undefined.
|
Map<String,String> |
getAttributes()
Returns configured attributes for this member.
This method might not be available on all native clients. |
InetSocketAddress |
getSocketAddress()
Returns the socket address of this member for member to member communications or unified depending on config.
|
InetSocketAddress |
getSocketAddress(EndpointQualifier qualifier)
Returns the socket address of this member.
|
UUID |
getUuid()
Returns the UUID of this member.
|
MemberVersion |
getVersion()
Returns the Hazelcast codebase version of this member; this may or may not be different from the version reported by
Cluster.getClusterVersion(), for example when a node with a different codebase version is added to an
existing cluster. |
boolean |
isLiteMember()
Returns true if this member is a lite member.
|
boolean |
localMember()
Returns true if this member is the local member.
|
void |
removeAttribute(String key)
Removes a key-value pair attribute for this member if given key was
previously assigned as an attribute.
If key wasn't assigned to a value this method does nothing. |
void |
setAttribute(String key,
String value)
Defines a key-value pair string attribute for this member available
to other cluster members.
|
readData, writeDataboolean localMember()
true if this member is the local member, false otherwise.boolean isLiteMember()
true if this member is a lite member, false otherwise.
Lite members do not own any partition.Address getAddress()
Map<EndpointQualifier,Address> getAddressMap()
Addresses per EndpointQualifier of this memberInetSocketAddress getSocketAddress()
getSocketAddress(ProtocolType.MEMBER).getSocketAddress in interface EndpointInetSocketAddress getSocketAddress(EndpointQualifier qualifier)
UUID getUuid()
Map<String,String> getAttributes()
String getAttribute(String key)
key - The key to lookup.void setAttribute(String key, String value)
key - The key for this property.value - The value that corresponds to this attribute and this member.void removeAttribute(String key)
key - The key to be deleted from the member attributesMemberVersion getVersion()
Cluster.getClusterVersion(), for example when a node with a different codebase version is added to an
existing cluster. See the documentation for Cluster.getClusterVersion() for a more thorough discussion
of Cluster and Member / Node version.MemberVersion of this member.Copyright © 2019 Hazelcast, Inc.. All rights reserved.