Class DefaultJobScheduler

java.lang.Object
org.seed.core.task.job.DefaultJobScheduler
All Implemented Interfaces:
org.quartz.JobListener, JobScheduler, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

@Component public class DefaultJobScheduler extends Object implements JobScheduler, org.quartz.JobListener, org.springframework.context.ApplicationContextAware
  • Constructor Details

    • DefaultJobScheduler

      public DefaultJobScheduler()
  • Method Details

    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
    • getName

      public String getName()
      Specified by:
      getName in interface org.quartz.JobListener
    • addJobListener

      public void addJobListener(org.quartz.JobListener listener)
      Specified by:
      addJobListener in interface JobScheduler
    • isRunning

      public boolean isRunning(Task task)
      Specified by:
      isRunning in interface JobScheduler
    • removeJobListener

      public void removeJobListener(org.quartz.JobListener listener)
      Specified by:
      removeJobListener in interface JobScheduler
    • startJob

      public void startJob(Task task)
      Specified by:
      startJob in interface JobScheduler
    • startSystemJob

      public void startSystemJob(SystemTask systemTask)
      Specified by:
      startSystemJob in interface JobScheduler
    • scheduleTask

      public void scheduleTask(Task task)
      Specified by:
      scheduleTask in interface JobScheduler
    • scheduleAllTasks

      public void scheduleAllTasks()
      Specified by:
      scheduleAllTasks in interface JobScheduler
    • unscheduleTask

      public void unscheduleTask(Task task)
      Specified by:
      unscheduleTask in interface JobScheduler
    • unscheduleAllTasks

      public void unscheduleAllTasks()
      Specified by:
      unscheduleAllTasks in interface JobScheduler
    • jobToBeExecuted

      public void jobToBeExecuted(org.quartz.JobExecutionContext context)
      Specified by:
      jobToBeExecuted in interface org.quartz.JobListener
    • jobExecutionVetoed

      public void jobExecutionVetoed(org.quartz.JobExecutionContext context)
      Specified by:
      jobExecutionVetoed in interface org.quartz.JobListener
    • jobWasExecuted

      public void jobWasExecuted(org.quartz.JobExecutionContext context, org.quartz.JobExecutionException jobException)
      Specified by:
      jobWasExecuted in interface org.quartz.JobListener