Class DefaultJobClusterService

java.lang.Object
com.broadleafcommerce.scheduledjob.service.DefaultJobClusterService
All Implemented Interfaces:
JobClusterService

public class DefaultJobClusterService extends Object implements JobClusterService
Author:
Chad Harchar (charchar)
  • Field Details

    • started

      protected boolean started
  • Constructor Details

    • DefaultJobClusterService

      public DefaultJobClusterService()
  • Method Details

    • start

      public void start()
      Description copied from interface: JobClusterService
      Start the node as a leader in the cluster.
      Specified by:
      start in interface JobClusterService
    • isStarted

      public boolean isStarted()
      Description copied from interface: JobClusterService
      Whether a node on the cluster has already been started as a leader.
      Specified by:
      isStarted in interface JobClusterService
      Returns:
      Whether a node on the cluster has already been started as a leader.
    • stop

      public void stop()
      Description copied from interface: JobClusterService
      Stop the node as a leader in the cluster.
      Specified by:
      stop in interface JobClusterService