Interface JobClusterService

All Known Implementing Classes:
DefaultJobClusterService

public interface JobClusterService
Used to keep track of start/stop behavior that determines node leadership in a cluster.
Author:
Chad Harchar (charchar)
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Whether a node on the cluster has already been started as a leader.
    void
    Start the node as a leader in the cluster.
    void
    Stop the node as a leader in the cluster.
  • Method Details

    • start

      void start()
      Start the node as a leader in the cluster.
    • isStarted

      boolean isStarted()
      Whether a node on the cluster has already been started as a leader.
      Returns:
      Whether a node on the cluster has already been started as a leader.
    • stop

      void stop()
      Stop the node as a leader in the cluster.