com.hazelcast.instance
Class AbstractMember

java.lang.Object
  extended by com.hazelcast.instance.AbstractMember
All Implemented Interfaces:
Endpoint, Member, DataSerializable
Direct Known Subclasses:
MemberImpl, MemberImpl

public abstract class AbstractMember
extends Object
implements Member


Field Summary
protected  Address address
           
protected  Map<String,Object> attributes
           
protected  String uuid
           
 
Constructor Summary
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)
           
 
Method Summary
 boolean equals(Object obj)
           
 Address getAddress()
           
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()
           
 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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.hazelcast.core.Member
getBooleanAttribute, getByteAttribute, getDoubleAttribute, getFloatAttribute, getIntAttribute, getLongAttribute, getShortAttribute, getStringAttribute, localMember, removeAttribute, setBooleanAttribute, setByteAttribute, setDoubleAttribute, setFloatAttribute, setIntAttribute, setLongAttribute, setShortAttribute, setStringAttribute
 

Field Detail

attributes

protected final Map<String,Object> attributes

address

protected Address address

uuid

protected String uuid
Constructor Detail

AbstractMember

protected AbstractMember()

AbstractMember

protected AbstractMember(Address address)

AbstractMember

protected AbstractMember(Address address,
                         String uuid)

AbstractMember

protected AbstractMember(Address address,
                         String uuid,
                         Map<String,Object> attributes)

AbstractMember

protected AbstractMember(AbstractMember member)
Method Detail

getAddress

public Address getAddress()

getPort

public int getPort()

getInetAddress

public InetAddress getInetAddress()

getLogger

protected abstract ILogger getLogger()

getInetSocketAddress

public InetSocketAddress getInetSocketAddress()
Description copied from interface: Member
Returns the InetSocketAddress of this member.

Specified by:
getInetSocketAddress in interface Member
Returns:
InetSocketAddress of this member

getSocketAddress

public InetSocketAddress getSocketAddress()
Description copied from interface: Member
Returns the socket address of this member.

Specified by:
getSocketAddress in interface Endpoint
Specified by:
getSocketAddress in interface Member
Returns:
the socket address of this member

getUuid

public String getUuid()
Description copied from interface: Member
Returns the UUID of this member.

Specified by:
getUuid in interface Endpoint
Specified by:
getUuid in interface Member
Returns:
the UUID of this member.

getAttributes

public Map<String,Object> getAttributes()
Description copied from interface: Member
Returns configured attributes for this member.
This method might not be available on all native clients.

Specified by:
getAttributes in interface Member
Returns:
configured attributes for this member.

updateAttribute

public void updateAttribute(MemberAttributeOperationType operationType,
                            String key,
                            Object value)

getAttribute

protected Object getAttribute(String key)

readData

public void readData(ObjectDataInput in)
              throws IOException
Description copied from interface: DataSerializable
Reads fields from the input stream

Specified by:
readData in interface DataSerializable
Parameters:
in - input
Throws:
IOException

writeData

public void writeData(ObjectDataOutput out)
               throws IOException
Description copied from interface: DataSerializable
Writes object fields to output stream

Specified by:
writeData in interface DataSerializable
Parameters:
out - output
Throws:
IOException

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.