public interface

ClusterManager

implements ClusterInfo
com.atlassian.jira.cluster.ClusterManager
Known Indirect Subclasses

Class Overview

Manages the cluster - addition of nodes, removal, etc

Summary

Constants
String ALL_NODES
String ANY_NODE
Public Methods
void checkIndex()
Collection<Node> findLiveNodes()
Returns a snapshot of the live nodes.
Set<Node> getAllNodes()
Returns all the nodes in the cluster.
boolean isActive()
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.
[Expand]
Inherited Methods
From interface com.atlassian.jira.cluster.ClusterInfo

Constants

public static final String ALL_NODES

Constant Value: "ALL"

public static final String ANY_NODE

Constant Value: "ANY"

Public Methods

public void checkIndex ()

public 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.

public 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

public boolean isActive ()

public boolean isClusterLicensed ()

Returns whether or not JIRA is licensed for clustered configurations.

Returns
  • whether or not JIRA is licensed for clustered configurations.

public void refreshLiveNodes ()

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

public 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.