public final class MemberImpl extends AbstractMember implements Member
Caution: This class is required by protocol encoder/decoder which are on the Hazelcast module. So this implementation also stays in the same module, although it is totally client side specific.
This class is marked as serializable by convention as it implements interfaceMember which
is DataSerializable and not IdentifiedDataSerializable. Actual serialization
in client protocol communication is performed by a dedicated MemberCodec.address, addressMap, attributes, liteMember, uuid, version| Constructor and Description |
|---|
MemberImpl() |
MemberImpl(AbstractMember member) |
MemberImpl(Address address,
MemberVersion version) |
MemberImpl(Address address,
MemberVersion version,
String uuid) |
MemberImpl(Address address,
MemberVersion version,
String uuid,
Map<String,Object> attributes,
boolean liteMember) |
MemberImpl(Address address,
String uuid,
Map<String,Object> attributes,
boolean liteMember) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
equals, getAddress, getAddressMap, getAttribute, getAttributes, getInetAddress, getInetSocketAddress, getPort, getSocketAddress, getSocketAddress, getUuid, getVersion, hashCode, isLiteMember, readData, toString, updateAttribute, writeDataclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAddress, getAddressMap, getAttributes, getInetSocketAddress, getSocketAddress, getSocketAddress, getUuid, getVersion, isLiteMemberreadData, writeDatapublic MemberImpl()
public MemberImpl(Address address, MemberVersion version)
public MemberImpl(Address address, MemberVersion version, String uuid)
public MemberImpl(Address address, String uuid, Map<String,Object> attributes, boolean liteMember)
public MemberImpl(Address address, MemberVersion version, String uuid, Map<String,Object> attributes, boolean liteMember)
public MemberImpl(AbstractMember member)
protected ILogger getLogger()
getLogger in class AbstractMemberpublic boolean localMember()
MemberlocalMember in interface Memberpublic String getStringAttribute(String key)
MembergetStringAttribute in interface Memberkey - The key to lookup.public void setStringAttribute(String key, String value)
MembersetStringAttribute in interface Memberkey - The key for this property.value - The value that corresponds to this attribute and this member.public Boolean getBooleanAttribute(String key)
MembergetBooleanAttribute in interface Memberkey - The key to look uppublic void setBooleanAttribute(String key, boolean value)
MembersetBooleanAttribute in interface Memberkey - The key for this property.value - The value that corresponds to this attribute and this member.public Byte getByteAttribute(String key)
MembergetByteAttribute in interface Memberkey - The key to look up.public void setByteAttribute(String key, byte value)
MembersetByteAttribute in interface Memberkey - The key for this property.value - The value that corresponds to this attribute and this member.public Short getShortAttribute(String key)
MembergetShortAttribute in interface Memberkey - The key to look up.public void setShortAttribute(String key, short value)
MembersetShortAttribute in interface Memberkey - The key for this property.value - The value that corresponds to this attribute and this member.public Integer getIntAttribute(String key)
MembergetIntAttribute in interface Memberkey - The key to look up.public void setIntAttribute(String key, int value)
MembersetIntAttribute in interface Memberkey - The key for this property.value - The value that corresponds to this attribute and this member.public Long getLongAttribute(String key)
MembergetLongAttribute in interface Memberkey - The key to look up.public void setLongAttribute(String key, long value)
MembersetLongAttribute in interface Memberkey - The key for this property.value - The value that corresponds to this attribute and this member.public Float getFloatAttribute(String key)
MembergetFloatAttribute in interface Memberkey - The key to look up.public void setFloatAttribute(String key, float value)
MembersetFloatAttribute in interface Memberkey - The key for this property.value - The value that corresponds to this attribute and this member.public Double getDoubleAttribute(String key)
MembergetDoubleAttribute in interface Memberkey - The key to look up.public void setDoubleAttribute(String key, double value)
MembersetDoubleAttribute in interface Memberkey - The key for this property.value - The value that corresponds to this attribute and this member.public void removeAttribute(String key)
MemberremoveAttribute in interface Memberkey - The key to be deleted from the member attributesCopyright © 2020 Hazelcast, Inc.. All Rights Reserved.