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)
           
 java.lang.String getAnonymizedNodeIdentifier()
          Generates an identifier for the cluster node that is sufficiently anonymoised, i.e.
 java.lang.String getDescription()
          Deprecated. 
 int getId()
          Deprecated. 
 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

@Deprecated
public int getId()
Deprecated. 

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

getDescription

@Deprecated
public java.lang.String getDescription()
Deprecated. 

Specified by:
getDescription in interface ClusterNodeInformation

getLocalSocketAddress

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

getAnonymizedNodeIdentifier

public java.lang.String getAnonymizedNodeIdentifier()
Description copied from interface: ClusterNodeInformation
Generates an identifier for the cluster node that is sufficiently anonymoised, i.e. doesn't give away any information about the internals of the node. This information is intended to be displayed safely to the end user, as a diagnostic aid to determine which node they're in communication with. Ideally, this information will persist across restarts, i.e. the same node will generate the same identifier. There is no requirement for process to be bidirectional.

Specified by:
getAnonymizedNodeIdentifier 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


Copyright © 2003-2014 Atlassian. All Rights Reserved.