public class Scheduler extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
changeState(String jobName)
Changes the state of a normally running job from pause to resume or resume to pause
|
void |
executeJob(String jobName)
Executes a single Quartz Scheduler job right away only once
|
List<org.quartz.JobKey> |
getAllJobKeys()
Retrieves a list of all JobKeys from the Quartz Scheduler
|
List<Job> |
getAllJobs()
Retrieves a list of all jobs and their current status
|
org.quartz.Scheduler |
getQuartzScheduler()
Returns the current quartz scheduler instance
|
org.quartz.Scheduler |
getScheduler()
Deprecated.
As of release 3.1.0, replaced by
getQuartzScheduler() |
void |
initialize()
Initializes the scheduler by booting up Quartz
|
boolean |
isInitialize()
Checks if the scheduler has been initialized
|
void |
schedule(org.quartz.JobDetail jobDetail,
org.quartz.Trigger trigger)
Adds a new job with a given JobDetail and Trigger to the scheduler
|
void |
shutdown() |
void |
standby() |
void |
start() |
@Inject public Scheduler(Config config)
public void initialize()
@Deprecated public org.quartz.Scheduler getScheduler()
getQuartzScheduler()public boolean isInitialize()
public org.quartz.Scheduler getQuartzScheduler()
public void start()
throws MangooSchedulerException
MangooSchedulerExceptionpublic void shutdown()
throws MangooSchedulerException
MangooSchedulerExceptionpublic void standby()
throws MangooSchedulerException
MangooSchedulerExceptionpublic void schedule(org.quartz.JobDetail jobDetail,
org.quartz.Trigger trigger)
throws MangooSchedulerException
jobDetail - The JobDetail for the Jobtrigger - The Trigger for the jobMangooSchedulerException - when accessing the scheduler results in an errorpublic List<Job> getAllJobs() throws MangooSchedulerException
MangooSchedulerException - if an error occurs during access to the Quartz Schedulerpublic void executeJob(String jobName) throws MangooSchedulerException
jobName - The name of the job to executeMangooSchedulerException - if an error occurs during execution of the jobpublic List<org.quartz.JobKey> getAllJobKeys() throws MangooSchedulerException
MangooSchedulerException - if an errors occurs during access to the schedulerpublic void changeState(String jobName) throws MangooSchedulerException
jobName - The name of the jobMangooSchedulerException - if an error occurs during access to the quartz schedulerCopyright © 2016. All rights reserved.