com.atlassian.confluence.cluster.hazelcast
Class HazelcastClusterNodeInformation

java.lang.Object
  extended by com.atlassian.confluence.cluster.hazelcast.HazelcastClusterNodeInformation
All Implemented Interfaces:
ClusterNodeInformation, java.io.Serializable

public class HazelcastClusterNodeInformation
extends java.lang.Object
implements ClusterNodeInformation

See Also:
Serialized Form

Method Summary
 boolean equals(java.lang.Object obj)
           
static int generateId(com.hazelcast.core.Member mem)
          Generates a unique integer identifier for a cluster member.
 java.lang.String getDescription()
           
 int getId()
           
 java.net.InetSocketAddress getLocalSocketAddress()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getId

public int getId()
Specified by:
getId in interface ClusterNodeInformation
Returns:
the id of this node within the cluster.

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface ClusterNodeInformation

getLocalSocketAddress

public java.net.InetSocketAddress getLocalSocketAddress()
Specified by:
getLocalSocketAddress in interface ClusterNodeInformation

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

generateId

public static int generateId(com.hazelcast.core.Member mem)
Generates a unique integer identifier for a cluster member.

Parameters:
mem - the member to generate a unique identifier for.
Returns:
the unique identifier for the member


Copyright © 2003-2014 Atlassian. All Rights Reserved.