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 | 
|---|---|
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 value is undefined. 
 | 
Byte | 
getByteAttribute(String key)
Returns the value of the specified key for this member or
 null if 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()
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 UUID of this member. 
 | 
boolean | 
localMember()
Returns 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 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, writeDataboolean localMember()
@Deprecated InetSocketAddress getInetSocketAddress()
getSocketAddress() insteadInetSocketAddress getSocketAddress()
getSocketAddress in interface EndpointString 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 corresponds to this attribute and this member.Boolean getBooleanAttribute(String key)
key - The key to lookup.void setBooleanAttribute(String key, boolean value)
key - The key for this property.value - The value corresponds to this attribute and this member.Byte getByteAttribute(String key)
key - The key to lookup.void setByteAttribute(String key, byte value)
key - The key for this property.value - The value corresponds to this attribute and this member.Short getShortAttribute(String key)
key - The key to lookup.void setShortAttribute(String key, short value)
key - The key for this property.value - The value corresponds to this attribute and this member.Integer getIntAttribute(String key)
key - The key to lookup.void setIntAttribute(String key, int value)
key - The key for this property.value - The value corresponds to this attribute and this member.Long getLongAttribute(String key)
key - The key to lookup.void setLongAttribute(String key, long value)
key - The key for this property.value - The value corresponds to this attribute and this member.Float getFloatAttribute(String key)
key - The key to lookup.void setFloatAttribute(String key, float value)
key - The key for this property.value - The value corresponds to this attribute and this member.Double getDoubleAttribute(String key)
key - The key to lookup.void setDoubleAttribute(String key, double value)
key - The key for this property.value - The value corresponds to this attribute and this member.void removeAttribute(String key)
key - The key to be deleted from the member attributesCopyright © 2014 Hazelcast, Inc.. All Rights Reserved.