@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)
Creates a representation of a node.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Long |
getCacheListenerPort() |
String |
getIp() |
String |
getNodeId() |
Node.NodeState |
getState() |
Long |
getTimestamp() |
int |
hashCode() |
boolean |
isClustered() |
public static Node NOT_CLUSTERED
public Node(String nodeId, Node.NodeState state, Long timestamp, String ip, Long cacheListenerPort)
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)
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()
Copyright © 2002-2015 Atlassian. All Rights Reserved.