|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.silverpeas.scheduler.trigger.JobTriggerFactory
public class JobTriggerFactory
A factory of job triggers. This factory creates the specific job triggers depending upons the scheduling parameters.
Method Summary | |
---|---|
static JobTriggerFactory |
getFactory()
Gets a factory of a job trigger. |
CronJobTrigger |
getJobTriggerWithCronExpression(String cron)
Creates a new job trigger that will fire a job exectution at given moments in the time, as defined by the specified cron expression. |
FixedPeriodJobTrigger |
getJobTriggerWithPeriodicity(int time,
TimeUnit unit)
Creates a new job trigger that will fire a job execution at the specified regular time. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static JobTriggerFactory getFactory()
public FixedPeriodJobTrigger getJobTriggerWithPeriodicity(int time, TimeUnit unit)
time
- the time between each job triggering.unit
- the unit in which the time is expressed.
public CronJobTrigger getJobTriggerWithCronExpression(String cron) throws ParseException
cron
- the Unix cron-like expression.
ParseException
- if the specified cron expression is not valid.SimpleCronJobTrigger
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |