Class JobExecutor
- java.lang.Object
-
- org.silverpeas.core.scheduler.quartz.JobExecutor
-
- All Implemented Interfaces:
org.quartz.Job
- Direct Known Subclasses:
PersistentQuartzScheduler.PersistentJobExecutor
,VolatileQuartScheduler.VolatileJobExecutor
public abstract class JobExecutor extends Object implements org.quartz.Job
Executor of aJob
instance. Such executor implements theJob
interface in order to be scheduled in a Quartz scheduler instead of the actual job to execute which is a job specific to the Silverpeas Scheduler Engine; it is the link between the Scheduler API with the Scheduler implementation built atop of the Quartz API. The executor fetches the details about the actual job to execute and about the Scheduler event listener to invoke directly from the Quartz job execution. Those information needs then to be passed a long with the scheduling of this executor. context- Author:
- mmoquillon
-
-
Constructor Summary
Constructors Constructor Description JobExecutor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
execute(org.quartz.JobExecutionContext jec)
protected void
execute(JobExecutionContext context, Job job, SchedulerEventListener eventListener)
protected abstract Job
getJob(org.quartz.JobDetail jobDetail)
protected abstract SchedulerEventListener
getSchedulerEventListener(org.quartz.JobDetail jobDetail)
-
-
-
Method Detail
-
getJob
protected abstract Job getJob(org.quartz.JobDetail jobDetail) throws org.quartz.JobExecutionException
- Throws:
org.quartz.JobExecutionException
-
getSchedulerEventListener
protected abstract SchedulerEventListener getSchedulerEventListener(org.quartz.JobDetail jobDetail) throws org.quartz.JobExecutionException
- Throws:
org.quartz.JobExecutionException
-
execute
public final void execute(org.quartz.JobExecutionContext jec) throws org.quartz.JobExecutionException
- Specified by:
execute
in interfaceorg.quartz.Job
- Throws:
org.quartz.JobExecutionException
-
execute
protected final void execute(JobExecutionContext context, Job job, SchedulerEventListener eventListener)
-
-