| java.lang.Object | |
| ↳ | com.atlassian.jira.cluster.DefaultNodeStateManager |
Manage the state of the current node.
The activate() and deactivate() methods are synchronised
as we should only ever be running one of those methods at a time to avoid
weird race conditions that would be possible if we tried to go from active
to passive and vice-versa at the same time.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Activate the node.
| |||||||||||
Deactivate the node.
| |||||||||||
Returns all the known nodes JIRA node.
| |||||||||||
Returns the current JIRA node.
| |||||||||||
Returns the current JIRA node, first refreshing its state from the database.
| |||||||||||
There are times when you want the server to go into a deep sleep mode, such as when an
import is taking place on the cluster.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||||||||||||||||
From interface
com.atlassian.jira.cluster.NodeStateManager
| |||||||||||||||||||||||||
Activate the node. This method will block until the node becomes active.
| ClusterStateException |
|---|
Deactivate the node. This method will block until the node becomes inactive (passive).
| NotClusteredException |
|---|
Returns all the known nodes JIRA node. If not clustered this will return an empty set.
Nodes in a cluster
Returns the current JIRA node.
isClustered()
to see if it's part of a cluster
Returns the current JIRA node, first refreshing its state from the database.
isClustered()
to see if it's part of a cluster
There are times when you want the server to go into a deep sleep mode, such as when an import is taking place on the cluster.
| NotClusteredException |
|---|

