public interface SchedulerUtil
Modifier and Type | Method and Description |
---|---|
void |
create()
Starts the scheduler
|
void |
deleteJob(String jobId)
Delete the identified Job from the Scheduler
|
org.quartz.Scheduler |
getRawScheduler() |
void |
pauseJob(String jobId)
pauses the job with the given jobId
|
void |
rescheduleAJob(String oldTriggerName,
String oldTriggerGroup,
org.quartz.Trigger newTrigger)
reschedule the job associated with the given old trigger with the new
trigger.
|
void |
resumeJob(String jobId)
resumes the job with the given jobId
|
String |
scheduleACronJob(Object instance,
String methodName,
Class[] inputTypes,
Object[] inputParams,
String cronExpression)
schedules a cron job.
|
String |
scheduleAFixedDelayJob(Object instance,
String methodName,
Class[] inputTypes,
Object[] inputParams,
long initialDelay,
long taskDelay,
TimeUnit timeUnit)
schedules a fixed-delay job to run the method with the given name on the
given instance.
|
String |
scheduleAOneTimeJob(Object instance,
String methodName,
Class[] inputTypes,
Object[] inputParams,
long initialDelay,
TimeUnit timeUnit)
schedules a one time job.
|
void |
shutDown()
Halts the Scheduler, and cleans up all resources associated with the
Scheduler.
|
String scheduleAFixedDelayJob(Object instance, String methodName, Class[] inputTypes, Object[] inputParams, long initialDelay, long taskDelay, TimeUnit timeUnit)
instance
- - the instance to activate a method on upon timeoutmethodName
- - the name of the method to activate on the instanceinputTypes
- - the method input typesinputParams
- - the method input parametersinitialDelay
- - the initial delay before the first activationtaskDelay
- - the delay between jobstimeUnit
- - the unit of time used for initialDelay and taskDelay.String scheduleAOneTimeJob(Object instance, String methodName, Class[] inputTypes, Object[] inputParams, long initialDelay, TimeUnit timeUnit)
instance
- - the instance to activate the method on timeoutmethodName
- - the name of the method to activate on the instanceinputTypes
- - the method input typesinputParams
- - the method input parametersinitialDelay
- - the initial delay before the job activationtimeUnit
- - the unit of time used for initialDelay and taskDelay.void rescheduleAJob(String oldTriggerName, String oldTriggerGroup, org.quartz.Trigger newTrigger)
oldTriggerName
- - the name of the trigger to remove.oldTriggerGroup
- - the group of the trigger to remove.newTrigger
- - the new Trigger to associate the job withvoid pauseJob(String jobId)
jobId
- - the id of the job to be pausedvoid deleteJob(String jobId)
jobId
- - the id of the job to deletevoid resumeJob(String jobId)
jobId
- - the id of the job to be resumedvoid shutDown()
void create()
org.quartz.Scheduler getRawScheduler()
String scheduleACronJob(Object instance, String methodName, Class[] inputTypes, Object[] inputParams, String cronExpression)
instance
- - the instance to activate the method on timeoutmethodName
- - the name of the method to activate on the instanceinputTypes
- - the method input typesinputParams
- - the method input parameterscronExpression
- - cron expression to run this jobCopyright © 2012. All Rights Reserved.