com.atlassian.jira.cluster.NodeStateManager |
Known Indirect Subclasses
|
Manage the state of nodes in the HA Cluster.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Activate the node.
| |||||||||||
Deactivate the node.
| |||||||||||
This method is deprecated.
since 7.0.6 Use
all() instead.
| |||||||||||
This method is deprecated.
since 7.0.6 Use
current() instead.
| |||||||||||
Shutdowns the node in the db.
|
Activate the node. This method will block until the node becomes active.
ClusterStateException | when we can't become active as requested |
---|
Deactivate the node. This method will block until the node becomes inactive (passive).
NotClusteredException | if the instance is not clustered |
---|
This method is deprecated.
since 7.0.6 Use current()
instead.
Returns the current JIRA node.
isClustered()
to see if it's part of a
cluster
This method is deprecated.
since 7.0.6 Use reset()
followed by current()
instead.
Returns the current JIRA node, first refreshing its state from the database.
isClustered()
to see if it's part of a
clusterShutdowns the node in the db. The state of the node should be OFFLINE This will prevent the health checks to show abnormal behaviour in the cluster