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 booleanstarted
-
Constructor Summary
Constructors Constructor Description DefaultJobClusterService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisStarted()Whether a node on the cluster has already been started as a leader.voidstart()Start the node as a leader in the cluster.voidstop()Stop the node as a leader in the cluster.
-
-
-
Method Detail
-
start
public void start()
Description copied from interface:JobClusterServiceStart the node as a leader in the cluster.- Specified by:
startin interfaceJobClusterService
-
isStarted
public boolean isStarted()
Description copied from interface:JobClusterServiceWhether a node on the cluster has already been started as a leader.- Specified by:
isStartedin interfaceJobClusterService- Returns:
- Whether a node on the cluster has already been started as a leader.
-
stop
public void stop()
Description copied from interface:JobClusterServiceStop the node as a leader in the cluster.- Specified by:
stopin interfaceJobClusterService
-
-