public abstract class AbstractMember extends Object implements Member
| Modifier and Type | Field and Description |
|---|---|
protected Address |
address |
protected Map<String,Object> |
attributes |
protected boolean |
liteMember |
protected String |
uuid |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractMember() |
protected |
AbstractMember(AbstractMember member) |
protected |
AbstractMember(Address address) |
protected |
AbstractMember(Address address,
String uuid) |
protected |
AbstractMember(Address address,
String uuid,
Map<String,Object> attributes) |
protected |
AbstractMember(Address address,
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.
|
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.
|
String |
getUuid()
Returns the UUID of this member.
|
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, waitgetBooleanAttribute, getByteAttribute, getDoubleAttribute, getFloatAttribute, getIntAttribute, getLongAttribute, getShortAttribute, getStringAttribute, localMember, removeAttribute, setBooleanAttribute, setByteAttribute, setDoubleAttribute, setFloatAttribute, setIntAttribute, setLongAttribute, setShortAttribute, setStringAttributeprotected Address address
protected String uuid
protected boolean liteMember
protected AbstractMember()
protected AbstractMember(Address address)
protected AbstractMember(Address address, String uuid, Map<String,Object> attributes)
protected AbstractMember(Address address, String uuid, Map<String,Object> attributes, boolean liteMember)
protected AbstractMember(AbstractMember member)
public Address getAddress()
MembergetAddress in interface Memberpublic int getPort()
public InetAddress getInetAddress()
protected abstract ILogger getLogger()
public InetSocketAddress getInetSocketAddress()
MembergetInetSocketAddress in interface Memberpublic InetSocketAddress getSocketAddress()
MembergetSocketAddress in interface EndpointgetSocketAddress in interface Memberpublic String getUuid()
Memberpublic boolean isLiteMember()
MemberisLiteMember in interface Memberpublic Map<String,Object> getAttributes()
MembergetAttributes in interface Memberpublic void updateAttribute(MemberAttributeOperationType operationType, String key, Object value)
public void readData(ObjectDataInput in) throws IOException
DataSerializablereadData in interface DataSerializablein - inputIOExceptionpublic void writeData(ObjectDataOutput out) throws IOException
DataSerializablewriteData in interface DataSerializableout - outputIOExceptionCopyright © 2016 Hazelcast, Inc.. All Rights Reserved.