@PrivateApi public abstract class AbstractMember extends Object implements Member, Versioned
Modifier and Type | Field and Description |
---|---|
protected Address |
address |
protected Map<EndpointQualifier,Address> |
addressMap |
protected Map<String,Object> |
attributes |
protected boolean |
liteMember |
protected String |
uuid |
protected MemberVersion |
version |
Modifier | Constructor and Description |
---|---|
protected |
AbstractMember() |
protected |
AbstractMember(AbstractMember member) |
protected |
AbstractMember(Map<EndpointQualifier,Address> addresses,
MemberVersion version,
String uuid,
Map<String,Object> attributes,
boolean liteMember) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Address |
getAddress()
Returns the Address of this Member.
|
Map<EndpointQualifier,Address> |
getAddressMap() |
protected Object |
getAttribute(String key) |
Map<String,Object> |
getAttributes()
Returns configured attributes for this member.
This method might not be available on all native clients. |
InetAddress |
getInetAddress() |
InetSocketAddress |
getInetSocketAddress()
Returns the InetSocketAddress of this member.
|
protected abstract ILogger |
getLogger() |
int |
getPort() |
InetSocketAddress |
getSocketAddress()
Returns the socket address of this member for member to member communications or unified depending on config.
|
InetSocketAddress |
getSocketAddress(EndpointQualifier qualifier)
Returns the socket address of this member.
|
String |
getUuid()
Returns the UUID of this member.
|
MemberVersion |
getVersion()
Returns the Hazelcast codebase version of this member; this may or may not be different from the version reported by
Cluster.getClusterVersion() , for example when a node with a different codebase version is added to an
existing cluster. |
int |
hashCode() |
boolean |
isLiteMember()
Returns true if this member is a lite member.
|
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
String |
toString() |
void |
updateAttribute(MemberAttributeOperationType operationType,
String key,
Object value) |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getBooleanAttribute, getByteAttribute, getDoubleAttribute, getFloatAttribute, getIntAttribute, getLongAttribute, getShortAttribute, getStringAttribute, localMember, removeAttribute, setBooleanAttribute, setByteAttribute, setDoubleAttribute, setFloatAttribute, setIntAttribute, setLongAttribute, setShortAttribute, setStringAttribute
protected Address address
protected Map<EndpointQualifier,Address> addressMap
protected String uuid
protected boolean liteMember
protected MemberVersion version
protected AbstractMember()
protected AbstractMember(Map<EndpointQualifier,Address> addresses, MemberVersion version, String uuid, Map<String,Object> attributes, boolean liteMember)
protected AbstractMember(AbstractMember member)
public Address getAddress()
Member
getAddress
in interface Member
public Map<EndpointQualifier,Address> getAddressMap()
getAddressMap
in interface Member
Address
es per EndpointQualifier
of this memberpublic int getPort()
public InetAddress getInetAddress()
protected abstract ILogger getLogger()
public InetSocketAddress getInetSocketAddress()
Member
getInetSocketAddress
in interface Member
public InetSocketAddress getSocketAddress()
Member
getSocketAddress(ProtocolType.MEMBER)
.getSocketAddress
in interface Endpoint
getSocketAddress
in interface Member
public InetSocketAddress getSocketAddress(EndpointQualifier qualifier)
Member
getSocketAddress
in interface Member
public String getUuid()
Member
public boolean isLiteMember()
Member
isLiteMember
in interface Member
public Map<String,Object> getAttributes()
Member
getAttributes
in interface Member
public void updateAttribute(MemberAttributeOperationType operationType, String key, Object value)
public MemberVersion getVersion()
Member
Cluster.getClusterVersion()
, for example when a node with a different codebase version is added to an
existing cluster. See the documentation for Cluster.getClusterVersion()
for a more thorough discussion
of Cluster
and Member
/ Node
version.getVersion
in interface Member
MemberVersion
of this member.public void readData(ObjectDataInput in) throws IOException
DataSerializable
readData
in interface DataSerializable
in
- inputIOException
- if an I/O error occurs. In particular,
an IOException
may be thrown if the
input stream has been closed.public void writeData(ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
out
- outputIOException
- if an I/O error occurs. In particular,
an IOException
may be thrown if the
output stream has been closed.Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.