|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.soa.esb.schedule.SchedulerJob
public class SchedulerJob
Scheduler job tied to the lifecycle.
Nested Class Summary | |
---|---|
static class |
SchedulerJob.ESBScheduledJob
The scheduled job for executing the listener. |
Method Summary | |
---|---|
static SchedulerJob |
createCronSchedulerJob(java.lang.String name,
SchedulerJobListener listener,
java.lang.String cronExpression,
java.util.Date startDate,
java.util.Date endDate,
java.util.Properties properties)
Create a job based on cron. |
static SchedulerJob |
createIntervalSchedulerJob(java.lang.String name,
SchedulerJobListener listener,
long interval,
java.util.Date startDate,
java.util.Date endDate,
java.util.Properties properties)
Create a job based on an interval. |
static SchedulerJob |
createIntervalSchedulerJob(java.lang.String name,
SchedulerJobListener listener,
long interval,
int execCount,
java.util.Date startDate,
java.util.Date endDate,
java.util.Properties properties)
Create a job based on an interval. |
static SchedulerJob |
createIntervalSchedulerJob(java.lang.String name,
SchedulerJobListener listener,
long interval,
java.util.Properties properties)
Create a job based on an interval. |
void |
destroy()
Destroy the trigger. |
void |
pause()
Pause the operation of the trigger. |
void |
start()
Start or resume the operation of the trigger. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void start() throws SchedulingException
SchedulingException
- for errors during the operation.public void pause() throws SchedulingException
SchedulingException
- for errors during the operation.public void destroy() throws SchedulingException
SchedulingException
- for errors during the operation.public static SchedulerJob createIntervalSchedulerJob(java.lang.String name, SchedulerJobListener listener, long interval, java.util.Properties properties)
name
- The name for the job.listener
- The listener to fire on schedule.interval
- The specified interval.properties
- Any scheduler properties that may be required.
public static SchedulerJob createIntervalSchedulerJob(java.lang.String name, SchedulerJobListener listener, long interval, java.util.Date startDate, java.util.Date endDate, java.util.Properties properties)
name
- The name for the job.listener
- The listener to fire on schedule.interval
- The specified interval.startDate
- The start date of the trigger or null if not constrained.endDate
- The end date of the trigger or null if not constrained.properties
- Any scheduler properties that may be required.
public static SchedulerJob createIntervalSchedulerJob(java.lang.String name, SchedulerJobListener listener, long interval, int execCount, java.util.Date startDate, java.util.Date endDate, java.util.Properties properties)
name
- The name for the job.listener
- The listener to fire on schedule.interval
- The specified interval.
#param execCount The execution count.startDate
- The start date of the trigger or null if not constrained.endDate
- The end date of the trigger or null if not constrained.properties
- Any scheduler properties that may be required.
public static SchedulerJob createCronSchedulerJob(java.lang.String name, SchedulerJobListener listener, java.lang.String cronExpression, java.util.Date startDate, java.util.Date endDate, java.util.Properties properties) throws java.text.ParseException
name
- The name for the job.listener
- The listener to fire on schedule.cronExpression
- The cron expression.startDate
- The start date of the trigger or null if not constrained.endDate
- The end date of the trigger or null if not constrained.properties
- Any scheduler properties that may be required.
java.text.ParseException
- for errors in the cron expression.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |