Class 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 a Job instance. Such executor implements the Job 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 Detail

      • JobExecutor

        public JobExecutor()
    • 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 interface org.quartz.Job
        Throws:
        org.quartz.JobExecutionException