Class ClusterNodeImpl
java.lang.Object
com.atlassian.crowd.manager.cluster.ClusterNodeImpl
- All Implemented Interfaces:
ClusterNode
-
Nested Class Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
ClusterNodeImpl
(String nodeId, Instant lastHeartbeat, boolean local, String nodeName, ClusterNodeDetails details) -
Method Summary
Modifier and TypeMethodDescriptionstatic ClusterNodeImpl.Builder
builder()
static ClusterNodeImpl.Builder
builder
(ClusterNode data) boolean
Retrieves a cluster-wide unique identifier for this node.A long living cluster name that is defined by setting the system propertycluster.node.name
int
hashCode()
boolean
isLocal()
toString()
-
Constructor Details
-
ClusterNodeImpl
protected ClusterNodeImpl(String nodeId, Instant lastHeartbeat, boolean local, String nodeName, ClusterNodeDetails details)
-
-
Method Details
-
getNodeId
Description copied from interface:ClusterNode
Retrieves a cluster-wide unique identifier for this node.Warning: Plugins should make no assumptions about this ID. That includes:
- How long it is
- What characters it contains
- Whether it will be consistent across restarts. Don't persist long-term data against these IDs
- Specified by:
getNodeId
in interfaceClusterNode
- Returns:
- a cluster-wide unique identifier for this node
-
getLastHeartbeat
- Specified by:
getLastHeartbeat
in interfaceClusterNode
- Returns:
- the time when the node has last checked-in as available
-
isLocal
public boolean isLocal()- Specified by:
isLocal
in interfaceClusterNode
- Returns:
- true if this represents the node the method is executed on, false otherwise
-
getNodeName
Description copied from interface:ClusterNode
A long living cluster name that is defined by setting the system propertycluster.node.name
- Specified by:
getNodeName
in interfaceClusterNode
- Returns:
- The value from the system property named above otherwise an empty string if the property is not set.
-
getDetails
- Specified by:
getDetails
in interfaceClusterNode
- Returns:
- extra details about the cluster node, the presence and completeness of this data is implementation specific, and not guaranteed
-
builder
-
builder
-
equals
-
hashCode
public int hashCode() -
toString
-