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 Summary
Fields Modifier and Type Field Description protected boolean
started
-
Constructor Summary
Constructors Constructor Description DefaultJobClusterService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isStarted()
Whether a node on the cluster has already been started as a leader.void
start()
Start the node as a leader in the cluster.void
stop()
Stop the node as a leader in the cluster.
-
-
-
Method Detail
-
start
public void start()
Description copied from interface:JobClusterService
Start the node as a leader in the cluster.- Specified by:
start
in interfaceJobClusterService
-
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 interfaceJobClusterService
- 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 interfaceJobClusterService
-
-