public interface Member extends DataSerializable, Endpoint
MemberImpl
violates the Java Serialization contract.
It should be serialized/deserialized by Hazelcast.Cluster
,
MembershipListener
Modifier and Type | Method and Description |
---|---|
Address |
getAddress()
Returns the Address of this Member.
|
Map<EndpointQualifier,Address> |
getAddressMap() |
Map<String,Object> |
getAttributes()
Returns configured attributes for this member.
This method might not be available on all native clients. |
Boolean |
getBooleanAttribute(String key)
Returns the value of the specified key for this member, or
null if the value is undefined.
|
Byte |
getByteAttribute(String key)
Returns the value of the specified key for this member or
null if the value is undefined.
|
Double |
getDoubleAttribute(String key)
Returns the value of the specified key for this member or
null if value is undefined.
|
Float |
getFloatAttribute(String key)
Returns the value of the specified key for this member or
null if value is undefined.
|
InetSocketAddress |
getInetSocketAddress()
Deprecated.
use
getSocketAddress() instead |
Integer |
getIntAttribute(String key)
Returns the value of the specified key for this member or
null if value is undefined.
|
Long |
getLongAttribute(String key)
Returns the value of the specified key for this member or
null if value is undefined.
|
Short |
getShortAttribute(String key)
Returns the value of the specified key for this member or
null if value is undefined.
|
InetSocketAddress |
getSocketAddress()
Deprecated.
as of Hazelcast 3.12, use
getSocketAddress(EndpointQualifier) |
InetSocketAddress |
getSocketAddress(EndpointQualifier qualifier)
Returns the socket address of this member.
|
String |
getStringAttribute(String key)
Returns the value of the specified key for this member or
null if value is undefined.
|
String |
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 |
setBooleanAttribute(String key,
boolean value)
Defines a key-value pair boolean attribute for this member that is available
to other cluster members.
|
void |
setByteAttribute(String key,
byte value)
Defines a key-value pair byte attribute for this member available
to other cluster members.
|
void |
setDoubleAttribute(String key,
double value)
Defines a key-value pair double attribute for this member available
to other cluster members.
|
void |
setFloatAttribute(String key,
float value)
Defines a key-value pair float attribute for this member available
to other cluster members.
|
void |
setIntAttribute(String key,
int value)
Defines a key-value pair int attribute for this member available
to other cluster members.
|
void |
setLongAttribute(String key,
long value)
Defines a key-value pair long attribute for this member available
to other cluster members.
|
void |
setShortAttribute(String key,
short value)
Defines a key-value pair short attribute for this member available
to other cluster members.
|
void |
setStringAttribute(String key,
String value)
Defines a key-value pair string attribute for this member available
to other cluster members.
|
readData, writeData
boolean localMember()
boolean isLiteMember()
Address getAddress()
Map<EndpointQualifier,Address> getAddressMap()
Address
es per EndpointQualifier
of this member@Deprecated InetSocketAddress getInetSocketAddress()
getSocketAddress()
instead@Deprecated InetSocketAddress getSocketAddress()
getSocketAddress(EndpointQualifier)
getSocketAddress(ProtocolType.MEMBER)
.getSocketAddress
in interface Endpoint
InetSocketAddress getSocketAddress(EndpointQualifier qualifier)
String getUuid()
Map<String,Object> getAttributes()
String getStringAttribute(String key)
key
- The key to lookup.void setStringAttribute(String key, String value)
key
- The key for this property.value
- The value that corresponds to this attribute and this member.Boolean getBooleanAttribute(String key)
key
- The key to look upvoid setBooleanAttribute(String key, boolean value)
key
- The key for this property.value
- The value that corresponds to this attribute and this member.Byte getByteAttribute(String key)
key
- The key to look up.void setByteAttribute(String key, byte value)
key
- The key for this property.value
- The value that corresponds to this attribute and this member.Short getShortAttribute(String key)
key
- The key to look up.void setShortAttribute(String key, short value)
key
- The key for this property.value
- The value that corresponds to this attribute and this member.Integer getIntAttribute(String key)
key
- The key to look up.void setIntAttribute(String key, int value)
key
- The key for this property.value
- The value that corresponds to this attribute and this member.Long getLongAttribute(String key)
key
- The key to look up.void setLongAttribute(String key, long value)
key
- The key for this property.value
- The value that corresponds to this attribute and this member.Float getFloatAttribute(String key)
key
- The key to look up.void setFloatAttribute(String key, float value)
key
- The key for this property.value
- The value that corresponds to this attribute and this member.Double getDoubleAttribute(String key)
key
- The key to look up.void setDoubleAttribute(String key, double 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 © 2020 Hazelcast, Inc.. All Rights Reserved.