Package com.atlassian.jira.cluster
Class Node
java.lang.Object
com.atlassian.jira.cluster.Node
Represents a node in the cluster
- Since:
- v6.1
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Node
Special node that is used when JIRA is not configured for clustering. -
Constructor Summary
ConstructorsConstructorDescriptionNode
(String nodeId, Node.NodeState state) This constructor is used wherever the timestamp is not needed at all.Deprecated.Node
(String nodeId, Node.NodeState state, Long timestamp, String ip, Long cacheListenerPort, Long nodeBuildNumber, String nodeVersion) Creates a representation of a node. -
Method Summary
-
Field Details
-
NOT_CLUSTERED
Special node that is used when JIRA is not configured for clustering.
-
-
Constructor Details
-
Node
@Deprecated public Node(String nodeId, Node.NodeState state, Long timestamp, String ip, Long cacheListenerPort) Deprecated.Please useNode(String, NodeState, Long, String, Long, Long, String)
instead.Creates a representation of a node.- Parameters:
nodeId
- the node's ID, which must be neithernull
nor blankstate
- the node's initial state, which must not benull
cacheListenerPort
- the port the node will listen for new changes- Throws:
IllegalArgumentException
- if thenodeId
orstate
is not allowed
-
Node
public Node(String nodeId, Node.NodeState state, Long timestamp, String ip, Long cacheListenerPort, Long nodeBuildNumber, String nodeVersion) Creates a representation of a node.- Parameters:
nodeId
- the node's ID, which must be neithernull
nor blankstate
- the node's initial state, which must not benull
cacheListenerPort
- the port the node will listen for new changesnodeBuildNumber
- build number of the code the node is running- Throws:
IllegalArgumentException
- if thenodeId
orstate
is not allowed
-
Node
This constructor is used wherever the timestamp is not needed at all.- Parameters:
nodeId
- the node's ID, which must be neithernull
nor blankstate
- the node's initial state, which must not benull
- Throws:
IllegalArgumentException
- if thenodeId
orstate
is not allowed
-
-
Method Details
Node(String, NodeState, Long, String, Long, Long, String)
instead.