public final class MemberImpl extends AbstractMember implements Member, HazelcastInstanceAware, IdentifiedDataSerializable
| Modifier and Type | Class and Description |
|---|---|
static class |
MemberImpl.Builder |
| Modifier and Type | Field and Description |
|---|---|
static int |
NA_MEMBER_LIST_JOIN_VERSION
Denotes that member list join version of a member is not known yet.
|
address, addressMap, attributes, liteMember, uuid, version| Constructor and Description |
|---|
MemberImpl() |
MemberImpl(Address address,
MemberVersion version,
boolean localMember) |
MemberImpl(Address address,
MemberVersion version,
boolean localMember,
UUID uuid) |
MemberImpl(MemberImpl member) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttribute(String key)
Returns the value of the specified key for this member or
null if value is undefined.
|
int |
getClassId()
Returns type identifier for this class.
|
int |
getFactoryId()
Returns DataSerializableFactory factory ID for this class.
|
protected ILogger |
getLogger() |
int |
getMemberListJoinVersion() |
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 |
setAttribute(String key,
String value)
Defines a key-value pair string attribute for this member available
to other cluster members.
|
void |
setHazelcastInstance(HazelcastInstance hazelcastInstance)
Gets the HazelcastInstance reference when submitting a Runnable/Callable using Hazelcast ExecutorService.
|
void |
setMemberListJoinVersion(int memberListJoinVersion) |
equals, getAddress, getAddressMap, getAttributes, getInetAddress, getPort, getSocketAddress, getSocketAddress, getUuid, getVersion, hashCode, isLiteMember, readData, toString, updateAttribute, writeDataclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAddress, getAddressMap, getAttributes, getSocketAddress, getSocketAddress, getUuid, getVersion, isLiteMemberreadData, writeDatapublic static final int NA_MEMBER_LIST_JOIN_VERSION
public MemberImpl()
public MemberImpl(Address address, MemberVersion version, boolean localMember)
public MemberImpl(Address address, MemberVersion version, boolean localMember, UUID uuid)
public MemberImpl(MemberImpl member)
protected ILogger getLogger()
getLogger in class AbstractMemberpublic void setHazelcastInstance(HazelcastInstance hazelcastInstance)
HazelcastInstanceAwaresetHazelcastInstance in interface HazelcastInstanceAwarehazelcastInstance - the HazelcastInstance referencepublic boolean localMember()
MemberlocalMember in interface Membertrue if this member is the local member, false otherwise.public String getAttribute(String key)
MembergetAttribute in interface MembergetAttribute in class AbstractMemberkey - The key to lookup.public void removeAttribute(String key)
MemberremoveAttribute in interface Memberkey - The key to be deleted from the member attributespublic void setMemberListJoinVersion(int memberListJoinVersion)
public int getMemberListJoinVersion()
public void setAttribute(String key, String value)
MembersetAttribute in interface Memberkey - The key for this property.value - The value that corresponds to this attribute and this member.public int getFactoryId()
IdentifiedDataSerializablegetFactoryId in interface IdentifiedDataSerializablepublic int getClassId()
IdentifiedDataSerializablegetClassId in interface IdentifiedDataSerializableCopyright © 2019 Hazelcast, Inc.. All rights reserved.