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 Summary
 void activate()
          Activate the node.
 void deactivate()
          Deactivate the node.
 Node getNode()
          Returns the current JIRA node.
 void quiesce()
           
 void refreshState()
          This will force the node to refresh its state from the persistent store.
 void restart()
           
 

Method Detail

getNode

Node getNode()
Returns the current JIRA node.

Returns:
a non-null instance; call Node.isClustered() to see if it's part of a cluster

activate

void activate()
              throws ClusterStateException
Activate the node. This method will block until the node becomes active.

Throws:
ClusterStateException - when we can't become active as requested

deactivate

void deactivate()
                throws NotClusteredException
Deactivate the node. This method will block until the node becomes inactive (passive).

Throws:
NotClusteredException - if the instance is not clustered

refreshState

void refreshState()
This will force the node to refresh its state from the persistent store.


quiesce

void quiesce()
             throws NotClusteredException
Throws:
NotClusteredException

restart

void restart()


Copyright © 2002-2014 Atlassian. All Rights Reserved.