Package org.n52.bjornoya.schedule
Class Scheduler
- java.lang.Object
-
- org.n52.bjornoya.schedule.Scheduler
-
- All Implemented Interfaces:
Destroyable
public class Scheduler extends Object implements Destroyable
-
-
Constructor Summary
Constructors Constructor Description Scheduler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()org.quartz.SchedulergetScheduler()intgetStartupDelayInSeconds()voidinit()booleanisEnabled()voidscheduleJob(ScheduledJob taskToSchedule)voidsetEnabled(boolean enabled)voidsetScheduler(org.quartz.Scheduler scheduler)voidsetStartupDelayInSeconds(int startupDelayInSeconds)voidshutdown()Shuts down the task scheduler without waiting tasks to be finished.voidupdateJob(ScheduledJob taskToSchedule)
-
-
-
Method Detail
-
init
public void init()
-
updateJob
public void updateJob(ScheduledJob taskToSchedule) throws org.quartz.SchedulerException
- Throws:
org.quartz.SchedulerException
-
scheduleJob
public void scheduleJob(ScheduledJob taskToSchedule)
-
shutdown
public void shutdown()
Shuts down the task scheduler without waiting tasks to be finished.
-
destroy
public void destroy()
- Specified by:
destroyin interfaceDestroyable
-
getStartupDelayInSeconds
public int getStartupDelayInSeconds()
-
setStartupDelayInSeconds
public void setStartupDelayInSeconds(int startupDelayInSeconds)
-
getScheduler
public org.quartz.Scheduler getScheduler()
-
setScheduler
public void setScheduler(org.quartz.Scheduler scheduler)
-
isEnabled
public boolean isEnabled()
-
setEnabled
public void setEnabled(boolean enabled)
-
-