Package org.seed.core.task.job
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 Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidaddJobListener(org.quartz.JobListener listener) getName()booleanvoidjobExecutionVetoed(org.quartz.JobExecutionContext context) voidjobToBeExecuted(org.quartz.JobExecutionContext context) voidjobWasExecuted(org.quartz.JobExecutionContext context, org.quartz.JobExecutionException jobException) voidremoveJobListener(org.quartz.JobListener listener) voidvoidscheduleTask(Task task) voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidvoidstartSystemJob(SystemTask systemTask) voidvoidunscheduleTask(Task task)  
- 
Constructor Details
- 
DefaultJobScheduler
public DefaultJobScheduler() 
 - 
 - 
Method Details
- 
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) - Specified by:
 setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware
 - 
getName
- Specified by:
 getNamein interfaceorg.quartz.JobListener
 - 
addJobListener
public void addJobListener(org.quartz.JobListener listener) - Specified by:
 addJobListenerin interfaceJobScheduler
 - 
isRunning
- Specified by:
 isRunningin interfaceJobScheduler
 - 
removeJobListener
public void removeJobListener(org.quartz.JobListener listener) - Specified by:
 removeJobListenerin interfaceJobScheduler
 - 
startJob
- Specified by:
 startJobin interfaceJobScheduler
 - 
startSystemJob
- Specified by:
 startSystemJobin interfaceJobScheduler
 - 
scheduleTask
- Specified by:
 scheduleTaskin interfaceJobScheduler
 - 
scheduleAllTasks
public void scheduleAllTasks()- Specified by:
 scheduleAllTasksin interfaceJobScheduler
 - 
unscheduleTask
- Specified by:
 unscheduleTaskin interfaceJobScheduler
 - 
unscheduleAllTasks
public void unscheduleAllTasks()- Specified by:
 unscheduleAllTasksin interfaceJobScheduler
 - 
jobToBeExecuted
public void jobToBeExecuted(org.quartz.JobExecutionContext context) - Specified by:
 jobToBeExecutedin interfaceorg.quartz.JobListener
 - 
jobExecutionVetoed
public void jobExecutionVetoed(org.quartz.JobExecutionContext context) - Specified by:
 jobExecutionVetoedin interfaceorg.quartz.JobListener
 - 
jobWasExecuted
public void jobWasExecuted(org.quartz.JobExecutionContext context, org.quartz.JobExecutionException jobException) - Specified by:
 jobWasExecutedin interfaceorg.quartz.JobListener
 
 -