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 TypeMethodDescriptionvoid
addJobListener
(org.quartz.JobListener listener) getName()
boolean
void
jobExecutionVetoed
(org.quartz.JobExecutionContext context) void
jobToBeExecuted
(org.quartz.JobExecutionContext context) void
jobWasExecuted
(org.quartz.JobExecutionContext context, org.quartz.JobExecutionException jobException) void
removeJobListener
(org.quartz.JobListener listener) void
void
scheduleTask
(Task task) void
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext) void
void
startSystemJob
(SystemTask systemTask) void
void
unscheduleTask
(Task task)
-
Constructor Details
-
DefaultJobScheduler
public DefaultJobScheduler()
-
-
Method Details
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) - Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
-
getName
- Specified by:
getName
in interfaceorg.quartz.JobListener
-
addJobListener
public void addJobListener(org.quartz.JobListener listener) - Specified by:
addJobListener
in interfaceJobScheduler
-
isRunning
- Specified by:
isRunning
in interfaceJobScheduler
-
removeJobListener
public void removeJobListener(org.quartz.JobListener listener) - Specified by:
removeJobListener
in interfaceJobScheduler
-
startJob
- Specified by:
startJob
in interfaceJobScheduler
-
startSystemJob
- Specified by:
startSystemJob
in interfaceJobScheduler
-
scheduleTask
- Specified by:
scheduleTask
in interfaceJobScheduler
-
scheduleAllTasks
public void scheduleAllTasks()- Specified by:
scheduleAllTasks
in interfaceJobScheduler
-
unscheduleTask
- Specified by:
unscheduleTask
in interfaceJobScheduler
-
unscheduleAllTasks
public void unscheduleAllTasks()- Specified by:
unscheduleAllTasks
in interfaceJobScheduler
-
jobToBeExecuted
public void jobToBeExecuted(org.quartz.JobExecutionContext context) - Specified by:
jobToBeExecuted
in interfaceorg.quartz.JobListener
-
jobExecutionVetoed
public void jobExecutionVetoed(org.quartz.JobExecutionContext context) - Specified by:
jobExecutionVetoed
in interfaceorg.quartz.JobListener
-
jobWasExecuted
public void jobWasExecuted(org.quartz.JobExecutionContext context, org.quartz.JobExecutionException jobException) - Specified by:
jobWasExecuted
in interfaceorg.quartz.JobListener
-