public class ClusterNodeImpl extends Object implements ClusterNode
Modifier and Type | Class and Description |
---|---|
static class |
ClusterNodeImpl.Builder |
Modifier | Constructor and Description |
---|---|
protected |
ClusterNodeImpl(String nodeId,
Instant lastHeartbeat,
boolean local,
String nodeName,
ClusterNodeDetails details) |
Modifier and Type | Method and Description |
---|---|
static ClusterNodeImpl.Builder |
builder() |
static ClusterNodeImpl.Builder |
builder(ClusterNode data) |
boolean |
equals(Object o) |
Optional<ClusterNodeDetails> |
getDetails() |
Instant |
getLastHeartbeat() |
String |
getNodeId()
Retrieves a cluster-wide unique identifier for this node.
|
String |
getNodeName()
A long living cluster name that is defined by setting the system property
cluster.node.name |
int |
hashCode() |
boolean |
isLocal() |
String |
toString() |
protected ClusterNodeImpl(String nodeId, Instant lastHeartbeat, boolean local, String nodeName, ClusterNodeDetails details)
public String getNodeId()
ClusterNode
Warning: Plugins should make no assumptions about this ID. That includes:
getNodeId
in interface ClusterNode
public Instant getLastHeartbeat()
getLastHeartbeat
in interface ClusterNode
public boolean isLocal()
isLocal
in interface ClusterNode
public String getNodeName()
ClusterNode
cluster.node.name
getNodeName
in interface ClusterNode
public Optional<ClusterNodeDetails> getDetails()
getDetails
in interface ClusterNode
public static ClusterNodeImpl.Builder builder()
public static ClusterNodeImpl.Builder builder(ClusterNode data)
Copyright © 2020 Atlassian. All rights reserved.