Package io.meeds.spring.kernel
Class ClusterTaskJob
java.lang.Object
io.meeds.spring.kernel.ClusterTaskJob
- All Implemented Interfaces:
org.quartz.Job
The job of a scheduled method that
ClusterTaskScheduler runs once
per cluster: it runs the method on the node its trigger fires on, one run at
a time across the cluster.
A node can fire it before its own Spring contexts registered the method, as
it starts, or after they closed, as it stops: the run is then fired again
once, RETRY_DELAY seconds later, on whichever node takes it. A
method no node declares any more is reported at each of its runs, until its
job is removed.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ClusterTaskJob
public ClusterTaskJob()
-
-
Method Details
-
execute
public void execute(org.quartz.JobExecutionContext context) throws org.quartz.JobExecutionException - Specified by:
executein interfaceorg.quartz.Job- Throws:
org.quartz.JobExecutionException
-