Package org.n52.io.task
Class JobScheduler
- java.lang.Object
-
- org.n52.io.task.JobScheduler
-
-
Field Summary
-
Fields inherited from interface org.n52.io.task.JobUtils
JOB_DETAIL
-
-
Constructor Summary
Constructors Constructor Description JobScheduler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.slf4j.LoggergetLogger()List<ScheduledJob>getScheduledJobs()org.quartz.SchedulergetScheduler()intgetStartupDelayInSeconds()voidinit()booleanisEnabled()voidsetEnabled(boolean enabled)voidsetScheduledJobs(List<ScheduledJob> scheduledJobs)voidsetScheduler(org.quartz.Scheduler scheduler)voidsetStartupDelayInSeconds(int startupDelayInSeconds)voidshutdown()Shuts down the task scheduler without waiting tasks to be finished.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.n52.io.task.JobUtils
createBeanCreationException, createCronTrigger, createJobDetail, scheduleJob, updateJob
-
-
-
-
Method Detail
-
init
public void init()
- Specified by:
initin interfaceorg.n52.janmayen.lifecycle.Constructable
-
shutdown
public void shutdown()
Shuts down the task scheduler without waiting tasks to be finished.
-
getScheduledJobs
public List<ScheduledJob> getScheduledJobs()
-
setScheduledJobs
@Autowired public void setScheduledJobs(List<ScheduledJob> scheduledJobs)
-
getScheduler
public org.quartz.Scheduler getScheduler()
-
setScheduler
public void setScheduler(org.quartz.Scheduler scheduler)
-
getStartupDelayInSeconds
public int getStartupDelayInSeconds()
-
setStartupDelayInSeconds
@Setting("helgoland.job.scheduler.startup.delay") public void setStartupDelayInSeconds(int startupDelayInSeconds)
-
isEnabled
public boolean isEnabled()
-
setEnabled
@Setting("helgoland.job.scheduler.enable") public void setEnabled(boolean enabled)
-
-