|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hazelcast.instance.AbstractMember
com.hazelcast.client.impl.MemberImpl
public final class MemberImpl
Client side specific Member implementation.
Caution: This class is required by protocol encoder/decoder which are on hazelcast module so this impl also stays in the same module, although it is totally client side specific
Field Summary |
---|
Fields inherited from class com.hazelcast.instance.AbstractMember |
---|
address, attributes, uuid |
Constructor Summary | |
---|---|
MemberImpl()
|
|
MemberImpl(AbstractMember member)
|
|
MemberImpl(Address address)
|
|
MemberImpl(Address address,
String uuid)
|
|
MemberImpl(Address address,
String uuid,
Map<String,Object> attributes)
|
Method Summary | |
---|---|
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. |
Integer |
getIntAttribute(String key)
Returns the value of the specified key for this member or null if value is undefined. |
protected ILogger |
getLogger()
|
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. |
String |
getStringAttribute(String key)
Returns the value of the specified key for this member or null if value is undefined. |
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 class com.hazelcast.instance.AbstractMember |
---|
equals, getAddress, getAttribute, getAttributes, getInetAddress, getInetSocketAddress, getPort, getSocketAddress, getUuid, hashCode, readData, toString, updateAttribute, writeData |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.hazelcast.core.Member |
---|
getAttributes, getInetSocketAddress, getSocketAddress, getUuid |
Methods inherited from interface com.hazelcast.nio.serialization.DataSerializable |
---|
readData, writeData |
Constructor Detail |
---|
public MemberImpl()
public MemberImpl(Address address)
public MemberImpl(Address address, String uuid)
public MemberImpl(Address address, String uuid, Map<String,Object> attributes)
public MemberImpl(AbstractMember member)
Method Detail |
---|
protected ILogger getLogger()
getLogger
in class AbstractMember
public boolean localMember()
Member
localMember
in interface Member
public String getStringAttribute(String key)
Member
getStringAttribute
in interface Member
key
- The key to lookup.
public void setStringAttribute(String key, String value)
Member
setStringAttribute
in interface Member
key
- The key for this property.value
- The value that corresponds to this attribute and this member.public Boolean getBooleanAttribute(String key)
Member
getBooleanAttribute
in interface Member
key
- The key to look up
public void setBooleanAttribute(String key, boolean value)
Member
setBooleanAttribute
in interface Member
key
- The key for this property.value
- The value that corresponds to this attribute and this member.public Byte getByteAttribute(String key)
Member
getByteAttribute
in interface Member
key
- The key to look up.
public void setByteAttribute(String key, byte value)
Member
setByteAttribute
in interface Member
key
- The key for this property.value
- The value that corresponds to this attribute and this member.public Short getShortAttribute(String key)
Member
getShortAttribute
in interface Member
key
- The key to look up.
public void setShortAttribute(String key, short value)
Member
setShortAttribute
in interface Member
key
- The key for this property.value
- The value that corresponds to this attribute and this member.public Integer getIntAttribute(String key)
Member
getIntAttribute
in interface Member
key
- The key to look up.
public void setIntAttribute(String key, int value)
Member
setIntAttribute
in interface Member
key
- The key for this property.value
- The value that corresponds to this attribute and this member.public Long getLongAttribute(String key)
Member
getLongAttribute
in interface Member
key
- The key to look up.
public void setLongAttribute(String key, long value)
Member
setLongAttribute
in interface Member
key
- The key for this property.value
- The value that corresponds to this attribute and this member.public Float getFloatAttribute(String key)
Member
getFloatAttribute
in interface Member
key
- The key to look up.
public void setFloatAttribute(String key, float value)
Member
setFloatAttribute
in interface Member
key
- The key for this property.value
- The value that corresponds to this attribute and this member.public Double getDoubleAttribute(String key)
Member
getDoubleAttribute
in interface Member
key
- The key to look up.
public void setDoubleAttribute(String key, double value)
Member
setDoubleAttribute
in interface Member
key
- The key for this property.value
- The value that corresponds to this attribute and this member.public void removeAttribute(String key)
Member
removeAttribute
in interface Member
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 |