public interface EnhancedScheduler
extends org.quartz.Scheduler
| Modifier and Type | Method and Description |
|---|---|
void |
scheduleCronJob(String name,
String groupName,
org.quartz.JobDataMap jobData,
Class<? extends org.quartz.Job> jobClass,
boolean rescheduleIfExists,
boolean isVolatile,
String cronString)
Schedules the job such that it triggers according to the given cron schedule.
|
void |
scheduleRepeatingJob(String name,
String groupName,
org.quartz.JobDataMap jobData,
Class<? extends org.quartz.Job> jobClass,
boolean rescheduleIfExists,
boolean isVolatile,
long initialDelay,
long interval)
Schedules the job such that it triggers immediately (following the initial delay time) and then repeats every
interval seconds. |
void |
scheduleSimpleCronJob(Class<? extends org.quartz.Job> jobClass,
boolean rescheduleIfExists,
boolean isVolatile,
String cronString)
Schedules the job such that it triggers according to the given cron schedule.
|
void |
scheduleSimpleRepeatingJob(Class<? extends org.quartz.Job> jobClass,
boolean rescheduleIfExists,
boolean isVolatile,
long initialDelay,
long interval)
Schedules the job such that it triggers immediately (following the initial delay time) and then repeats every
interval seconds. |
void |
scheduleTriggeredJob(Class<? extends org.quartz.Job> jobClass,
boolean isVolatile,
org.quartz.Trigger trigger)
Schedules the job with the given triggger.
|
addCalendar, addGlobalJobListener, addGlobalTriggerListener, addJob, addJobListener, addSchedulerListener, addTriggerListener, deleteCalendar, deleteJob, getCalendar, getCalendarNames, getContext, getCurrentlyExecutingJobs, getGlobalJobListener, getGlobalJobListeners, getGlobalTriggerListener, getGlobalTriggerListeners, getJobDetail, getJobGroupNames, getJobListener, getJobListenerNames, getJobNames, getMetaData, getPausedTriggerGroups, getSchedulerInstanceId, getSchedulerListeners, getSchedulerName, getTrigger, getTriggerGroupNames, getTriggerListener, getTriggerListenerNames, getTriggerNames, getTriggersOfJob, getTriggerState, interrupt, isInStandbyMode, isPaused, isShutdown, isStarted, pause, pauseAll, pauseJob, pauseJobGroup, pauseTrigger, pauseTriggerGroup, removeGlobalJobListener, removeGlobalJobListener, removeGlobalTriggerListener, removeGlobalTriggerListener, removeJobListener, removeSchedulerListener, removeTriggerListener, rescheduleJob, resumeAll, resumeJob, resumeJobGroup, resumeTrigger, resumeTriggerGroup, scheduleJob, scheduleJob, setJobFactory, shutdown, shutdown, standby, start, startDelayed, triggerJob, triggerJob, triggerJobWithVolatileTrigger, triggerJobWithVolatileTrigger, unscheduleJobvoid scheduleRepeatingJob(String name, String groupName, org.quartz.JobDataMap jobData, Class<? extends org.quartz.Job> jobClass, boolean rescheduleIfExists, boolean isVolatile, long initialDelay, long interval) throws org.quartz.SchedulerException
interval seconds.
This is a convienence method to schedule jobs that need to run periodically. It schedules jobs with the given
groupName and name and a given set of job data to be passed to the job when it is
executed. The schedule repeats without end.
The schedule will may or may not be isVolatile - that is, if it is not volatile, it will be
persisted and rescheduled when the JON Server starts back up again.
If this method is called again with the same groupName and name and
rescheduleIfExists is false, this method will not schedule it again - it will leave the old
schedule. If you want to remove the old schedule, pass in true for rescheduleIfExists
or use SchedulerServiceMBean.deleteJob(String, String).
name - the name of the job to be scheduled. This is also the group name.groupName - if you want to group jobs together, give them the same group name; otherwise, can be
the same as namerescheduleIfExists - if true, and the job is already scheduled, this new schedule will replace
it. if false, any existing job will remain and this method simply does
nothing and returns immediatelyjobData - a map of serializable data to be passed to the job each time the job is executedjobClass - the class of the job that will be executed when the trigger firesisVolatile - if false, the job will be persisted to the database; if
true, when the scheduler is shutdown, the job's schedule is lostinitialDelay - number of milliseconds to wait before triggering the job for the first timeinterval - number of milliseconds between each triggering of the joborg.quartz.SchedulerExceptionSchedulerServiceMBean.scheduleJob(org.quartz.JobDetail, org.quartz.Trigger)void scheduleCronJob(String name, String groupName, org.quartz.JobDataMap jobData, Class<? extends org.quartz.Job> jobClass, boolean rescheduleIfExists, boolean isVolatile, String cronString) throws org.quartz.SchedulerException
This is a convienence method to schedule jobs that need to run periodically. It schedules jobs with the given
groupName and name and a given set of job data to be passed to the job when it is
executed. The schedule repeats without end.
The schedule will may or may not be isVolatile - that is, if it is not volatile, it will be
persisted and rescheduled when the JON Server starts back up again.
If this method is called again with the same groupName and name and
rescheduleIfExists is false, this method will not schedule it again - it will leave the old
schedule. If you want to remove the old schedule, pass in true for rescheduleIfExists
or use SchedulerServiceMBean.deleteJob(String, String).
name - the name of the job to be scheduled. This is also the group name.groupName - if you want to group jobs together, give them the same group name; otherwise, can be
the same as namerescheduleIfExists - if true, and the job is already scheduled, this new schedule will replace
it. if false, any existing job will remain and this method simply does
nothing and returns immediatelyjobData - a map of serializable data to be passed to the job each time the job is executedjobClass - the class of the job that will be executed when the trigger firesisVolatile - if false, the job will be persisted to the database; if
true, when the scheduler is shutdown, the job's schedule is lostcronString - the actual schedule for when the job is triggered. See the Quartz documentation on
valid cron syntax.org.quartz.SchedulerExceptionSchedulerServiceMBean.scheduleJob(org.quartz.JobDetail, org.quartz.Trigger)void scheduleSimpleRepeatingJob(Class<? extends org.quartz.Job> jobClass, boolean rescheduleIfExists, boolean isVolatile, long initialDelay, long interval) throws org.quartz.SchedulerException
interval seconds.
This is a convienence method to schedule simple jobs that need to run periodically. It schedules simple jobs -
there is no JobDataMap associated with the job and the schedule repeats without end.
This method delegates to
scheduleRepeatingJob(String, String, JobDataMap, Class, boolean, boolean, long, long) where the
name is the name of the given class (jobClass.getName()) and null is passed in
as the job data map.
jobClass - the class of the job that will be executed when the trigger firesrescheduleIfExists - if true, and the job is already scheduled, this new schedule will replace
it. if false, any existing job will remain and this method simply does
nothing and returns immediatelyisVolatile - if false, the job will be persisted to the database; if
true, when the scheduler is shutdown, the job's schedule is lostinitialDelay - number of milliseconds to wait before triggering the job for the first timeinterval - number of milliseconds between each triggering of the joborg.quartz.SchedulerExceptionSchedulerServiceMBean.scheduleJob(org.quartz.JobDetail, org.quartz.Trigger)void scheduleSimpleCronJob(Class<? extends org.quartz.Job> jobClass, boolean rescheduleIfExists, boolean isVolatile, String cronString) throws org.quartz.SchedulerException
This is a convienence method to schedule simple cron jobs that need to run periodically. It schedules simple
jobs - there is no JobDataMap associated with the job and the schedule repeats without end.
This method delegates to scheduleCronJob(String, String, JobDataMap, Class, boolean, boolean, String)
where the name is the name of the given class (jobClass.getName()) and
null is passed in as the job data map.
jobClass - the class of the job that will be executed when the trigger firesrescheduleIfExists - if true, and the job is already scheduled, this new schedule will replace
it. if false, any existing job will remain and this method simply does
nothing and returns immediatelyisVolatile - if false, the job will be persisted to the database; if
true, when the scheduler is shutdown, the job's schedule is lostcronString - the actual schedule for when the job is triggered. See the Quartz documentation on
valid cron syntax.org.quartz.SchedulerExceptionSchedulerServiceMBean.scheduleJob(org.quartz.JobDetail, org.quartz.Trigger)void scheduleTriggeredJob(Class<? extends org.quartz.Job> jobClass, boolean isVolatile, org.quartz.Trigger trigger) throws org.quartz.SchedulerException
This is a convienence method for adding a trigger to a job. There is no job-level JobDataMap but
each trigger may contain a trigger-specific JobDataMap.
This method delegates to Scheduler.addJob(org.quartz.JobDetail, boolean) where the
name is the name of the given class (jobClass.getName()) and replace is
false. If trigger is not null, then
Scheduler.scheduleJob(org.quartz.JobDetail, org.quartz.Trigger) will be called to schedule the job.
jobClass - the class of the job that will be executed when the trigger firestrigger - an optional trigger for firing the jobisVolatile - if false, the job will be persisted to the database; if
true, when the scheduler is shutdown, the job's schedule is lostorg.quartz.SchedulerExceptionSchedulerServiceMBean.addJob(org.quartz.JobDetail, boolean),
SchedulerServiceMBean.scheduleJob(org.quartz.JobDetail, org.quartz.Trigger)Copyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.