CronSchedulableJob¶
-
public class
CronSchedulableJob
extends EndingSchedulableJob¶ Schedulable Job - a data carrier class for a scheduled job that can be fired unlimited number of times as specified with the cron expression
Author: Igor (iopushnyev@2paths.com) Date: 16/02/11 Time: 1:43 PM
Constructors¶
CronSchedulableJob¶
-
public
CronSchedulableJob
(MotechEvent motechEvent, String cronExpression, DateTime startTime, DateTime endTime)¶ Constructor.
Parameters: - motechEvent – the
MotechEvent
fired, when job triggers, not null - cronExpression – the cron expression, which defines when job should be fired, not null
- startTime – the
DateTime
at which job should become ACTIVE, not null - endTime – the
DateTime
at which job should be stopped, null treated as never end
- motechEvent – the
CronSchedulableJob¶
-
public
CronSchedulableJob
(MotechEvent motechEvent, String cronExpression)¶ Constructor.
Parameters: - motechEvent – the
MotechEvent
fired, when job triggers, not null - cronExpression – the cron expression, which defines when job should be fired, not null
- motechEvent – the
CronSchedulableJob¶
-
public
CronSchedulableJob
(MotechEvent motechEvent, String cronExpression, DateTime startTime, DateTime endTime, boolean ignorePastFiresAtStart)¶ Constructor.
Parameters: - motechEvent – the
MotechEvent
fired, when job triggers, not null - cronExpression – the cron expression, which defines when job should be fired, not null
- startTime – the
DateTime
at which job should become ACTIVE, not null - endTime – the
DateTime
at which job should be stopped, null treated as never end - ignorePastFiresAtStart – the flag defining, whether job should ignore past fires at start or not
- motechEvent – the
CronSchedulableJob¶
-
public
CronSchedulableJob
(MotechEvent motechEvent, String cronExpression, DateTime startTime, DateTime endTime, boolean ignorePastFiresAtStart, boolean uiDefined)¶ Constructor.
Parameters: - motechEvent – the
MotechEvent
fired, when job triggers, not null - cronExpression – the cron expression, which defines when job should be fired, not null
- startTime – the
Date
at which job should become ACTIVE, not null - endTime – the
Date
at which job should be stopped, null treated as never end - ignorePastFiresAtStart – the flag defining, whether job should ignore past fires at start or not
- uiDefined – the flag defining, whether job has been created through the UI
- motechEvent – the