Package com.atlassian.jira.cluster
Interface NodeStateManager
- All Known Implementing Classes:
DefaultNodeStateManager
public interface NodeStateManager
Manage the state of nodes in the HA Cluster.
- Since:
- v6.1
-
Method Details
-
activate
Activate the node. This method will block until the node becomes active.- Throws:
ClusterStateException- when we can't become active as requested
-
deactivate
Deactivate the node. This method will block until the node becomes inactive (passive).- Throws:
NotClusteredException- if the instance is not clustered
-
quiesce
- Throws:
NotClusteredException
-
restart
void restart() -
shutdownNode
void shutdownNode()Shutdowns 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
-