Class HazelcastClusterNodeInformation
java.lang.Object
com.atlassian.confluence.cluster.hazelcast.HazelcastClusterNodeInformation
- All Implemented Interfaces:
ClusterNodeInformation
-
Method Summary
Modifier and TypeMethodDescriptionboolean
@NonNull String
Generates an identifier for this cluster node that is sufficiently anonymoised, i.e.Returns the network address (IP address + port number) of this cluster node.int
hashCode()
Returns the optionally-defined, human-readable name of this cluster node.boolean
isLocal()
Returns true if this node is the local node.toString()
-
Method Details
-
getLocalSocketAddress
Description copied from interface:ClusterNodeInformation
Returns the network address (IP address + port number) of this cluster node.- Specified by:
getLocalSocketAddress
in interfaceClusterNodeInformation
- Returns:
- the local address of this cluster node
-
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 interfaceClusterNodeInformation
-
humanReadableNodeName
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 value should never be used to programmatically or uniquely identify a cluster node - useClusterNodeInformation.getAnonymizedNodeIdentifier()
for that.- Specified by:
humanReadableNodeName
in interfaceClusterNodeInformation
-
hashCode
public int hashCode() -
equals
-
toString
-
isLocal
public boolean isLocal()Description copied from interface:ClusterNodeInformation
Returns true if this node is the local node.- Specified by:
isLocal
in interfaceClusterNodeInformation
- Returns:
- true if this node is the local node, false otherwise
-