Package com.hazelcast.cluster
Interface Member
- All Superinterfaces:
DataSerializable
,Endpoint
Cluster member interface.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the Address of this Member.getAttribute
(String key) 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.getUuid()
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
- Returns:
- a map of server socket
Address
es perEndpointQualifier
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 togetSocketAddress(ProtocolType.MEMBER)
.- Specified by:
getSocketAddress
in interfaceEndpoint
- Returns:
- the socket address of this member for member to member communications or unified depending on config.
-
getSocketAddress
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. -
getAttributes
Returns configured attributes for this member.
This method might not be available on all native clients.- Returns:
- configured attributes for this member.
-
getAttribute
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 ofCluster
andMember
/Node
version.- Returns:
- the
MemberVersion
of this member. - Since:
- 3.8
-