MotechSchedulerServiceImpl¶
-
public class
MotechSchedulerServiceImpl
implements MotechSchedulerService¶ Motech Scheduler Service implementation
See also:
MotechSchedulerService
Constructors¶
MotechSchedulerServiceImpl¶
-
public
MotechSchedulerServiceImpl
(MotechSchedulerFactoryBean motechSchedulerFactoryBean, SettingsFacade schedulerSettings)¶
Methods¶
assertArgumentNotNull¶
-
protected void
assertArgumentNotNull
(String objectName, Object object)¶ Asserts that given object is not null.
Parameters: - objectName – the objects name
- object – the object to be checked for being null
Throws: - IllegalArgumentException – if object is null
getScheduledJobTimings¶
getScheduledJobTimingsWithPrefix¶
logObjectIfNotNull¶
safeScheduleJob¶
-
public void
safeScheduleJob
(CronSchedulableJob cronSchedulableJob)¶
safeScheduleRepeatingJob¶
-
public void
safeScheduleRepeatingJob
(RepeatingSchedulableJob repeatingSchedulableJob)¶
safeScheduleRepeatingPeriodJob¶
-
public void
safeScheduleRepeatingPeriodJob
(RepeatingPeriodSchedulableJob repeatingPeriodSchedulableJob)¶
safeScheduleRunOnceJob¶
-
public void
safeScheduleRunOnceJob
(RunOnceSchedulableJob schedulableJob)¶
safeUnscheduleRepeatingJob¶
scheduleDayOfWeekJob¶
-
public void
scheduleDayOfWeekJob
(DayOfWeekSchedulableJob dayOfWeekSchedulableJob)¶
scheduleJob¶
-
public void
scheduleJob
(CronSchedulableJob cronSchedulableJob)¶
scheduleRepeatingJob¶
-
public void
scheduleRepeatingJob
(RepeatingSchedulableJob repeatingSchedulableJob)¶
scheduleRepeatingPeriodJob¶
-
public void
scheduleRepeatingPeriodJob
(RepeatingPeriodSchedulableJob repeatingPeriodSchedulableJob)¶
scheduleRunOnceJob¶
-
public void
scheduleRunOnceJob
(RunOnceSchedulableJob schedulableJob)¶
updateScheduledJob¶
-
public void
updateScheduledJob
(MotechEvent motechEvent)¶