com.atlassian.confluence.cluster.hazelcast
Class HazelcastClusterNodeInformation

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

public class HazelcastClusterNodeInformation
extends Object
implements ClusterNodeInformation

See Also:
Serialized Form

Method Summary
 boolean equals(Object obj)
           
 String getAnonymizedNodeIdentifier()
          Generates an identifier for this cluster node that is sufficiently anonymoised, i.e.
 String getDescription()
          Deprecated. 
 com.atlassian.fugue.Maybe<String> getHumanReadableNodeName()
          Returns the optionally-defined, human-readable name of this cluster node.
 int getId()
          Deprecated. 
 InetSocketAddress getLocalSocketAddress()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, 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 String getDescription()
Deprecated. 

Specified by:
getDescription in interface ClusterNodeInformation

getLocalSocketAddress

public InetSocketAddress getLocalSocketAddress()
Specified by:
getLocalSocketAddress in interface ClusterNodeInformation

getAnonymizedNodeIdentifier

public String getAnonymizedNodeIdentifier()
Description copied from interface: ClusterNodeInformation
Generates an identifier for this 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

getHumanReadableNodeName

@Nonnull
public com.atlassian.fugue.Maybe<String> getHumanReadableNodeName()
Description copied from interface: ClusterNodeInformation
Returns the optionally-defined, human-readable name of this cluster node. Will only be defined if so configured by the server administrator. There is no guarantee that this name will be unique between all nodes of the cluster. The vaue should never be used to programmatically or uniquely identify a cluster node - use ClusterNodeInformation.getAnonymizedNodeIdentifier() for that.

Specified by:
getHumanReadableNodeName in interface ClusterNodeInformation

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2003–2015 Atlassian. All rights reserved.