Class DefaultJobClusterService
java.lang.Object
com.broadleafcommerce.scheduledjob.service.DefaultJobClusterService
- All Implemented Interfaces:
JobClusterService
- Author:
- Chad Harchar (charchar)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
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 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
-