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.
| |||||||||||
We are going to change the state when the component manager stops so the other nodes do not get alerts about this
node
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
We validate if the state of the node has changed.
|
[Expand]
Inherited Methods | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||||||||||||||||||
![]()
|
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.
Node
s in a clusterReturns the current JIRA node.
isClustered()
to see if it's part of a
clusterReturns the current JIRA node, first refreshing its state from the database.
isClustered()
to see if it's part of a
clusterThere 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 |
---|
We are going to change the state when the component manager stops so the other nodes do not get alerts about this node
We validate if the state of the node has changed.
1) if the node is in offline state in the db, and we are initializing it. 2) if the node has a different IP address. 3) if the port of multicasting has changed
node | the node |
---|