com.atlassian.jira.cluster
Interface ClusterManager

All Known Implementing Classes:
DefaultClusterManager

public interface ClusterManager

Manages the cluster - addition of nodes, removal, etc

Since:
v6.1

Field Summary
static String ALL_NODES
           
static String ANY_NODE
           
 
Method Summary
 void checkIndex()
           
 Collection<Node> findLiveNodes()
          Returns a snapshot of the live nodes.
 Set<Node> getAllNodes()
          Returns all the nodes in the cluster.
 String getNodeId()
           
 boolean isActive()
           
 boolean isClustered()
           
 boolean isClusterLicensed()
          Returns whether or not JIRA is licensed for clustered configurations.
 void refreshLiveNodes()
          Merges the information from the heartbeat table and the clusternode table to give accurate information of which nodes are alive.
 void requestCurrentIndexFromNode(String node)
          We send a message to the node we wish a copy from.
 

Field Detail

ALL_NODES

static final String ALL_NODES
See Also:
Constant Field Values

ANY_NODE

static final String ANY_NODE
See Also:
Constant Field Values
Method Detail

checkIndex

void checkIndex()

getNodeId

String getNodeId()

isActive

boolean isActive()

isClustered

boolean isClustered()

getAllNodes

Set<Node> getAllNodes()
Returns all the nodes in the cluster. If not clustered this will return an empty set.

Returns:
a collection of Nodes in a cluster

isClusterLicensed

boolean isClusterLicensed()
Returns whether or not JIRA is licensed for clustered configurations.

Returns:
whether or not JIRA is licensed for clustered configurations.
Since:
6.3

requestCurrentIndexFromNode

void requestCurrentIndexFromNode(String node)
We send a message to the node we wish a copy from.

Parameters:
node - Node to send the message to get an Index Copy from.

findLiveNodes

Collection<Node> findLiveNodes()
Returns a snapshot of the live nodes. This collection is refreshed in every heartbeat of the server. Or you can force it calling refreshLiveNodes()

Returns:
the list of nodes that are alive.

refreshLiveNodes

void refreshLiveNodes()
Merges the information from the heartbeat table and the clusternode table to give accurate information of which nodes are alive.

Since:
6.3.4


Copyright © 2002-2014 Atlassian. All Rights Reserved.