public interface Member extends DataSerializable, Endpoint
Cluster
,
MembershipListener
Modifier and Type | Method and Description |
---|---|
Address |
getAddress()
Returns the Address of this Member.
|
Map<com.hazelcast.instance.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(com.hazelcast.instance.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.
|
readData, writeData
boolean 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<com.hazelcast.instance.EndpointQualifier,Address> getAddressMap()
Address
es per EndpointQualifier
of this memberInetSocketAddress getSocketAddress()
getSocketAddress(ProtocolType.MEMBER)
.getSocketAddress
in interface Endpoint
InetSocketAddress getSocketAddress(com.hazelcast.instance.EndpointQualifier qualifier)
UUID getUuid()
Map<String,String> getAttributes()
String getAttribute(String key)
key
- The key to lookup.MemberVersion 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 © 2024 Hazelcast, Inc.. All rights reserved.