com.hazelcast.core
Interface Member

All Superinterfaces:
DataSerializable, Serializable

public interface Member
extends DataSerializable

Cluster member interface. The default implementation com.hazelcast.impl.MemberImpl violates the Java Serialization contract. It should be serialized/deserialized by Hazelcast.

See Also:
Cluster, MembershipListener

Method Summary
 InetAddress getInetAddress()
          Deprecated. use @link{#getInetSocketAddress()}
 InetSocketAddress getInetSocketAddress()
          Returns the InetSocketAddress of this member.
 int getPort()
          Deprecated. use @link{#getInetSocketAddress()}
 String getUuid()
          Returns UUID of this member.
 boolean isLiteMember()
          Returns if this member is a LiteMember.
 boolean isSuperClient()
          Deprecated. as of version 2.0
 boolean localMember()
          Returns if this member is the local member.
 
Methods inherited from interface com.hazelcast.nio.DataSerializable
readData, writeData
 

Method Detail

localMember

boolean localMember()
Returns if this member is the local member.

Returns:
true if this member is the local member, false otherwise.

getPort

@Deprecated
int getPort()
Deprecated. use @link{#getInetSocketAddress()}

Returns the port number of this member.

Each member in the cluster has a server socket.

Returns:
port number of this member.

getInetAddress

@Deprecated
InetAddress getInetAddress()
Deprecated. use @link{#getInetSocketAddress()}

Returns the InetAddress of this member.

Returns:
InetAddress of this member

getInetSocketAddress

InetSocketAddress getInetSocketAddress()
Returns the InetSocketAddress of this member.

Returns:
InetSocketAddress of this member

isSuperClient

@Deprecated
boolean isSuperClient()
Deprecated. as of version 2.0

Returns if this member is a LiteMember. LiteMember is a cluster member which doesn't hold any data on it. We never use the term 'Super Client' as of version 2.0 as it is misleading.

Returns:
true if this member is a super client, false otherwise
See Also:
isLiteMember()

isLiteMember

boolean isLiteMember()
Returns if this member is a LiteMember. LiteMember is a cluster member which doesn't hold any data on it.

Returns:
true if this member is a LiteMember, tt>false otherwise

getUuid

String getUuid()
Returns UUID of this member.

Returns:
UUID of this member.


Copyright © 2008-2012 Hazel Ltd. All Rights Reserved.