|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Member
Cluster member interface. The default implementation
MemberImpl
violates the Java Serialization contract.
It should be serialized/deserialized by Hazelcast.
Cluster
,
MembershipListener
Method Summary | |
---|---|
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()
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. |
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. |
Methods inherited from interface com.hazelcast.nio.serialization.DataSerializable |
---|
readData, writeData |
Method Detail |
---|
boolean localMember()
@Deprecated InetSocketAddress getInetSocketAddress()
getSocketAddress()
instead
InetSocketAddress getSocketAddress()
getSocketAddress
in interface Endpoint
String getUuid()
getUuid
in interface Endpoint
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 up
void 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 attributes
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |