Package com.atlassian.jira.cluster
Class ClusterWatchdogService
java.lang.Object
com.atlassian.jira.cluster.ClusterWatchdogService
- All Implemented Interfaces:
Startable
,InitializingComponent
A service that watches the clusternode table for node state changes and emits appropriate events.
Note that it only sends a NodeRemovedFromClusterEvent if the node has shutdown cleanly and entered the OFFLINE
state. It does not send events about nodes leaving the cluster without notification, e.g. due to network
partitions or shutting down abruptly.
Note that it also notifies of changes to the current node, and it is up to the events' consumers to decide
how to treat those.
- Since:
- 7.6
-
Constructor Summary
ConstructorsConstructorDescriptionClusterWatchdogService
(ClusterManager clusterManager, com.atlassian.event.api.EventPublisher eventPublisher) -
Method Summary
-
Constructor Details
-
ClusterWatchdogService
public ClusterWatchdogService(ClusterManager clusterManager, com.atlassian.event.api.EventPublisher eventPublisher)
-
-
Method Details
-
afterInstantiation
Description copied from interface:InitializingComponent
Called after all the beans are constructed and the ApplicationContext is fully populated. Order of execution is order of bean creation, driven by InitializingComponentProcessor.- Specified by:
afterInstantiation
in interfaceInitializingComponent
- Throws:
Exception
-
start
public void start()Description copied from interface:Startable
This method will be called after the plugin system is fully initialised and all components added to the dependency injection framework. -
stop
public void stop() -
refreshNodes
public void refreshNodes()
-