|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.figure8.join.services.scheduling.DefaultQuartzCronManager
public class DefaultQuartzCronManager
Default QuartzCronInfo instance manager.
| Field Summary |
|---|
| Fields inherited from interface org.figure8.join.services.scheduling.QuartzCronManager |
|---|
JOB_ENTITY |
| Constructor Summary | |
|---|---|
DefaultQuartzCronManager()
Create a new instance of DefaultQuartzCronManager. |
|
| Method Summary | |
|---|---|
protected org.quartz.Trigger |
createTriggerFrom(QuartzCronInfo info)
Build an activation trigger from the Quartc Cron information bean |
QuartzCronInfo |
getQuartzCron(java.lang.String name)
Retrieve a QuartzCronInfo instance using its name. |
java.util.List |
getQuartzCronInfos()
Retrieve all QuartzCronInfo instances. |
protected void |
initializeScheduler()
Initialize the Quartz scheduler. |
void |
removeQuartzCronInfo(QuartzCronInfo info)
Remove a Quartz Cron infos from datastore. |
void |
saveQuartzCronInfo(QuartzCronInfo info)
Save a QuartzCronInfo within datastore. |
protected void |
scheduleJob(QuartzCronInfo info)
|
void |
scheduleJobs()
Start scheduling of all the already saved Quartz jobs. |
void |
setCronInfoDao(QuartzCronInfoDao quartzCronInfoDao)
|
protected void |
unscheduleJob(QuartzCronInfo info)
|
void |
unscheduleJobs()
Stop the scheduling of all the registered Quartz jobs. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultQuartzCronManager()
| Method Detail |
|---|
public void setCronInfoDao(QuartzCronInfoDao quartzCronInfoDao)
quartzCronInfoDao - The quartzCronInfoDaooDao to use.
public void saveQuartzCronInfo(QuartzCronInfo info)
throws DuplicateEntityException,
InfrastructureException
saveQuartzCronInfo in interface QuartzCronManagerinfo - The QuartzCronInfo instance to save.
DuplicateEntityException - if another consumer with same name already exists.
InfrastructureException - if wrapped Quartz scheduler cannot schedule the jobpublic void removeQuartzCronInfo(QuartzCronInfo info)
removeQuartzCronInfo in interface QuartzCronManagerinfo - The info on a Quartz cron to removepublic QuartzCronInfo getQuartzCron(java.lang.String name)
getQuartzCron in interface QuartzCronManagername - The QuartzCronInfo name to retrieve.
public java.util.List getQuartzCronInfos()
getQuartzCronInfos in interface QuartzCronManager
public void scheduleJobs()
throws InfrastructureException
scheduleJobs in interface QuartzCronManagerInfrastructureException - Throwed if exception occures on scheduling or starting Jobs.public void unscheduleJobs()
unscheduleJobs in interface QuartzCronManager
protected void initializeScheduler()
throws InfrastructureException
InfrastructureException
protected void scheduleJob(QuartzCronInfo info)
throws InfrastructureException
info - The bean wrapping information on Quartz job to schedule
InfrastructureException - if the wrapped Quartz Scheduler cannot schedule job
protected void unscheduleJob(QuartzCronInfo info)
throws InfrastructureException
info - The bean wrapping information on Quartz job to unschedule
InfrastructureException - if the wrapped Quartz Scheduler cannot unschedule job
protected org.quartz.Trigger createTriggerFrom(QuartzCronInfo info)
throws InfrastructureException
info - The info on Quartz cron to build trigger for.
InfrastructureException - if the cron expression within info is not valid
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||