Class HazelcastClusterNodeInformation
- java.lang.Object
-
- com.atlassian.confluence.cluster.hazelcast.HazelcastClusterNodeInformation
-
- All Implemented Interfaces:
ClusterNodeInformation,Serializable
public class HazelcastClusterNodeInformation extends Object implements ClusterNodeInformation
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(Object obj)StringgetAnonymizedNodeIdentifier()Generates an identifier for this cluster node that is sufficiently anonymoised, i.e.intgetId()Deprecated.InetSocketAddressgetLocalSocketAddress()inthashCode()@NonNull Optional<String>humanReadableNodeName()Returns the optionally-defined, human-readable name of this cluster node.booleanisLocal()Returns true if this node is the local node.StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.atlassian.confluence.cluster.ClusterNodeInformation
getHumanReadableNodeName
-
-
-
-
Method Detail
-
getId
@Deprecated public int getId()
Deprecated.- Specified by:
getIdin interfaceClusterNodeInformation- Returns:
- the id of this node within the cluster.
-
getLocalSocketAddress
public InetSocketAddress getLocalSocketAddress()
- Specified by:
getLocalSocketAddressin interfaceClusterNodeInformation
-
getAnonymizedNodeIdentifier
public String getAnonymizedNodeIdentifier()
Description copied from interface:ClusterNodeInformationGenerates 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:
getAnonymizedNodeIdentifierin interfaceClusterNodeInformation
-
humanReadableNodeName
public @NonNull Optional<String> humanReadableNodeName()
Description copied from interface:ClusterNodeInformationReturns 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:
humanReadableNodeNamein interfaceClusterNodeInformation
-
isLocal
public boolean isLocal()
Description copied from interface:ClusterNodeInformationReturns true if this node is the local node.- Specified by:
isLocalin interfaceClusterNodeInformation- Returns:
- true if this node is the local node, false otherwise
-
-