Class ClusterWatchdogService

java.lang.Object
com.atlassian.jira.cluster.ClusterWatchdogService
All Implemented Interfaces:
Startable

public class ClusterWatchdogService extends Object implements Startable
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 Details

    • ClusterWatchdogService

      public ClusterWatchdogService(ClusterManager clusterManager, com.atlassian.event.api.EventPublisher eventPublisher)
  • Method Details

    • 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.
      Specified by:
      start in interface Startable
    • stop

      public void stop()
    • refreshNodes

      public void refreshNodes()