|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.cluster.DefaultClusterManager
public class DefaultClusterManager
Manages the cluster - addition of nodes, removal, etc
Field Summary |
---|
Fields inherited from interface com.atlassian.jira.cluster.ClusterManager |
---|
ALL_NODES, ANY_NODE |
Constructor Summary | |
---|---|
DefaultClusterManager(ClusterServicesRegistry clusterServicesRegistry,
NodeStateManager nodeStateManager,
com.atlassian.event.api.EventPublisher eventPublisher)
|
Method Summary | |
---|---|
void |
checkIndex()
Forces an index check to see if it is current (or can be rebuilt from current) - if the index is too out of date request an index replica, only do this on passive nodes for now |
Collection<Node> |
findLiveNodes()
Returns a snapshot of the live nodes. |
Set<Node> |
getAllNodes()
Returns all the nodes in the cluster. |
String |
getNodeId()
|
boolean |
isActive()
Returns true if this node is active. |
boolean |
isClustered()
If there is a cluster.properties that appears to be valid |
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 |
releaseNodeReindexService(IndexesRestoredEvent ev)
|
void |
requestCurrentIndexFromNode(String node)
|
void |
start()
This method wil be called after the plugin system is fully initialised and all components added to the dependency injection framework. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultClusterManager(ClusterServicesRegistry clusterServicesRegistry, NodeStateManager nodeStateManager, com.atlassian.event.api.EventPublisher eventPublisher)
Method Detail |
---|
public void start()
Startable
start
in interface Startable
@Nullable public String getNodeId()
getNodeId
in interface ClusterManager
public boolean isClustered()
isClustered
in interface ClusterManager
public Set<Node> getAllNodes()
ClusterManager
getAllNodes
in interface ClusterManager
Node
s in a clusterpublic boolean isActive()
true
if this node is active.
isActive
in interface ClusterManager
true
if this node is active.public void checkIndex()
checkIndex
in interface ClusterManager
public void requestCurrentIndexFromNode(String node)
requestCurrentIndexFromNode
in interface ClusterManager
public Collection<Node> findLiveNodes()
ClusterManager
findLiveNodes
in interface ClusterManager
public void refreshLiveNodes()
ClusterManager
refreshLiveNodes
in interface ClusterManager
@EventListener public void releaseNodeReindexService(IndexesRestoredEvent ev)
public boolean isClusterLicensed()
ClusterManager
isClusterLicensed
in interface ClusterManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |