This is a 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 {@link SchedulerServiceMBean#deleteJob(String,String)}.
@param name the name of the job to be scheduled. This is also the group name.
@param groupName if you want to group jobs together, give them the same group name; otherwise, can bethe same as name
@param rescheduleIfExists if true
, and the job is already scheduled, this new schedule will replaceit. if false
, any existing job will remain and this method simply does nothing and returns immediately
@param jobData a map of serializable data to be passed to the job each time the job is executed
@param jobClass the class of the job that will be executed when the trigger fires
@param isVolatile if false
, the job will be persisted to the database; if true
, when the scheduler is shutdown, the job's schedule is lost
@param cronString the actual schedule for when the job is triggered. See the Quartz documentation onvalid cron syntax. *
@throws SchedulerException
@see SchedulerServiceMBean#scheduleJob(org.quartz.JobDetail,org.quartz.Trigger)
|
|
|
|
|
|