|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JobScheduler
This component schedules jobs.
Field Summary | |
---|---|
static String |
ROLE
The role of a JobScheduler |
Method Summary | |
---|---|
void |
addJob(String name,
Object job,
String schedulingExpression,
boolean canRunConcurrently)
Schedule a time based job. |
void |
addJob(String name,
Object job,
String schedulingExpression,
boolean canRunConcurrently,
Parameters params,
Map objects)
Schedule a job. |
void |
addJob(String name,
String jobrole,
String schedulingExpression,
boolean canRunConcurrently)
Schedule a time based job. |
void |
addJob(String name,
String jobrole,
String schedulingExpression,
boolean canRunConcurrently,
Parameters params,
Map objects)
Schedule a time based job. |
void |
addPeriodicJob(String name,
Object job,
long period,
boolean canRunConcurrently,
Parameters params,
Map objects)
Schedule a periodic job. |
void |
addPeriodicJob(String name,
String jobrole,
long period,
boolean canRunConcurrently,
Parameters params,
Map objects)
Schedule a periodic job. |
boolean |
fireJob(Object job)
Fire a CronJob once immediately |
boolean |
fireJob(Object job,
Parameters params,
Map objects)
Fire a job once immediately |
boolean |
fireJob(String jobrole)
Fire a job once immediately |
boolean |
fireJob(String jobrole,
Parameters params,
Map objects)
Fire a job once immediately |
void |
fireJobAt(Date date,
String name,
Object job)
Fire a job once at a specific date Note that if a job with the same name has already beed added it is overwritten. |
void |
fireJobAt(Date date,
String name,
Object job,
Parameters params,
Map objects)
Fire a job once at a specific date Note that if a job with the same name has already beed added it is overwritten. |
void |
fireJobAt(Date date,
String name,
String jobrole)
Fire a job once at a specific date Note that if a job with the same name has already beed added it is overwritten. |
void |
fireJobAt(Date date,
String name,
String jobrole,
Parameters params,
Map objects)
Fire a job once at a specific date Note that if a job with the same name has already beed added it is overwritten. |
String[] |
getJobNames()
Get the names of all scheduled jobs. |
JobSchedulerEntry |
getJobSchedulerEntry(String jobname)
Get the JobSchedulerEntry for a scheduled job |
void |
removeJob(String name)
Remove a scheduled job by name. |
Field Detail |
---|
static final String ROLE
Method Detail |
---|
String[] getJobNames()
JobSchedulerEntry getJobSchedulerEntry(String jobname)
void addJob(String name, String jobrole, String schedulingExpression, boolean canRunConcurrently) throws CascadingException
name
- the name of the jobjobrole
- The Avalon components role name of the job itselfschedulingExpression
- the time specification using a scheduling expressioncanRunConcurrently
- whether this job can run even previous scheduled runs are still running
CascadingException
void addJob(String name, String jobrole, String schedulingExpression, boolean canRunConcurrently, Parameters params, Map objects) throws CascadingException
name
- the name of the jobjobrole
- The Avalon components role name of the job itselfschedulingExpression
- the time specification using a scheduling expressioncanRunConcurrently
- whether this job can run even previous scheduled runs are still runningparams
- Additional Parameters to setup CronJobobjects
- A Map with additional object to setup CronJob
CascadingException
void addJob(String name, Object job, String schedulingExpression, boolean canRunConcurrently) throws CascadingException
name
- the name of the jobjob
- The job object itself. It must implement either CronJob, Runnable or might also be an implementation
specific class (i.e. org.quartz.Job)schedulingExpression
- the time specification using a scheduling expressioncanRunConcurrently
- whether this job can run even previous scheduled runs are still running
CascadingException
void addJob(String name, Object job, String schedulingExpression, boolean canRunConcurrently, Parameters params, Map objects) throws CascadingException
name
- the name of the jobjob
- The job object itself. It must implement either CronJob, Runnable or might also be an implementation
specific class (i.e. org.quartz.Job)schedulingExpression
- the time specification using a scheduling expressioncanRunConcurrently
- whether this job can run even previous scheduled runs are still runningparams
- Additional Parameters to setup CronJobobjects
- A Map with additional object to setup CronJob
CascadingException
void addPeriodicJob(String name, String jobrole, long period, boolean canRunConcurrently, Parameters params, Map objects) throws CascadingException
name
- the name of the jobjobrole
- The Avalon components role name of the job itselfperiod
- Every period seconds this job is startedcanRunConcurrently
- whether this job can run even previous scheduled runs are still runningparams
- Additional Parameters to setup CronJobobjects
- A Map with additional object to setup CronJob
CascadingException
void addPeriodicJob(String name, Object job, long period, boolean canRunConcurrently, Parameters params, Map objects) throws CascadingException
name
- the name of the jobjob
- The job object itself. It must implement either CronJob, Runnable or might also be an implementation
specific class (i.e. org.quartz.Job)period
- Every period seconds this job is startedcanRunConcurrently
- whether this job can run even previous scheduled runs are still runningparams
- Additional Parameters to setup CronJobobjects
- A Map with additional object to setup CronJob
CascadingException
boolean fireJob(String jobrole)
jobrole
- The Avalon components role name of the job itself
boolean fireJob(Object job)
job
- The job object itself. It must implement either CronJob, Runnable or might also be an implementation
specific class (i.e. org.quartz.Job)
boolean fireJob(String jobrole, Parameters params, Map objects) throws CascadingException
jobrole
- The Avalon components role name of the job itselfparams
- Additional Parameters to setup CronJobobjects
- A Map with additional object to setup CronJob
CascadingException
boolean fireJob(Object job, Parameters params, Map objects) throws CascadingException
job
- The job object itself. It must implement either CronJob, Runnable or might also be an implementation
specific class (i.e. org.quartz.Job)params
- Additional Parameters to setup CronJobobjects
- A Map with additional object to setup CronJob
CascadingException
void fireJobAt(Date date, String name, String jobrole) throws CascadingException
date
- The date this job should be scheduledname
- the name of the jobjobrole
- The Avalon components role name of the job itself
CascadingException
void fireJobAt(Date date, String name, String jobrole, Parameters params, Map objects) throws CascadingException
date
- The date this job should be scheduledname
- the name of the jobjobrole
- The Avalon components role name of the job itselfparams
- Additional Parameters to setup CronJobobjects
- A Map with additional object to setup CronJob
CascadingException
void fireJobAt(Date date, String name, Object job) throws CascadingException
date
- The date this job should be scheduledname
- the name of the jobjob
- The job object itself. It must implement either CronJob, Runnable or might also be an implementation
specific class (i.e. org.quartz.Job)
CascadingException
void fireJobAt(Date date, String name, Object job, Parameters params, Map objects) throws CascadingException
date
- The date this job should be scheduledname
- the name of the jobjob
- The job object itself. It must implement either CronJob, Runnable or might also be an implementation
specific class (i.e. org.quartz.Job)params
- Additional Parameters to setup CronJobobjects
- A Map with additional object to setup CronJob
CascadingException
void removeJob(String name) throws NoSuchElementException
name
- the name of the job
NoSuchElementException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |