@Immutable public class Node extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Node.NodeState |
Modifier and Type | Field and Description |
---|---|
static Node |
NOT_CLUSTERED
Special node that is used when JIRA is not configured for clustering.
|
Constructor and Description |
---|
Node(String nodeId,
Node.NodeState state)
This constructor is used wherever the timestamp is not needed at all.
|
Node(String nodeId,
Node.NodeState state,
Long timestamp,
String ip,
Long cacheListenerPort)
Deprecated.
Please use
Node(String, NodeState, Long, String, Long, Long, String) instead. |
Node(String nodeId,
Node.NodeState state,
Long timestamp,
String ip,
Long cacheListenerPort,
Long nodeBuildNumber,
String nodeVersion)
Creates a representation of a node.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Long |
getCacheListenerPort() |
String |
getIp() |
Long |
getNodeBuildNumber() |
String |
getNodeId() |
String |
getNodeVersion() |
Node.NodeState |
getState() |
Long |
getTimestamp() |
int |
hashCode() |
boolean |
isClustered() |
String |
toString() |
public static Node NOT_CLUSTERED
@Deprecated public Node(String nodeId, Node.NodeState state, Long timestamp, String ip, Long cacheListenerPort)
Node(String, NodeState, Long, String, Long, Long, String)
instead.nodeId
- the node's ID, which must be neither null
nor blankstate
- the node's initial state, which must not be null
cacheListenerPort
- the port the node will listen for new changesIllegalArgumentException
- if the nodeId
or state
is not allowedpublic Node(String nodeId, Node.NodeState state, Long timestamp, String ip, Long cacheListenerPort, Long nodeBuildNumber, String nodeVersion)
nodeId
- the node's ID, which must be neither null
nor blankstate
- the node's initial state, which must not be null
cacheListenerPort
- the port the node will listen for new changesnodeBuildNumber
- build number of the code the node is runningIllegalArgumentException
- if the nodeId
or state
is not allowedpublic Node(String nodeId, Node.NodeState state)
nodeId
- the node's ID, which must be neither null
nor blankstate
- the node's initial state, which must not be null
IllegalArgumentException
- if the nodeId
or state
is not allowed@Nonnull public Node.NodeState getState()
public Long getTimestamp()
public boolean isClustered()
public String getIp()
public Long getCacheListenerPort()
public Long getNodeBuildNumber()
public String getNodeVersion()
Copyright © 2002-2019 Atlassian. All Rights Reserved.