public class JobManager extends Object implements io.dropwizard.lifecycle.Managed
| Modifier and Type | Field and Description |
|---|---|
protected org.reflections.Reflections |
reflections |
protected org.quartz.Scheduler |
scheduler |
| Constructor and Description |
|---|
JobManager() |
JobManager(String scanUrl) |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(io.dropwizard.Configuration config) |
protected org.quartz.Trigger |
executeNowTrigger() |
protected List<Class<? extends Job>> |
getJobClasses(Class<? extends Annotation> annotation) |
protected void |
scheduleAllJobs() |
protected void |
scheduleAllJobsOnApplicationStart() |
protected void |
scheduleAllJobsOnApplicationStop() |
protected void |
scheduleAllJobsWithEveryAnnotation() |
protected void |
scheduleAllJobsWithOnAnnotation() |
void |
start() |
void |
stop() |
protected org.reflections.Reflections reflections
protected org.quartz.Scheduler scheduler
public JobManager()
public JobManager(String scanUrl)
public void configure(io.dropwizard.Configuration config)
public void start()
throws Exception
start in interface io.dropwizard.lifecycle.ManagedExceptionpublic void stop()
throws Exception
stop in interface io.dropwizard.lifecycle.ManagedExceptionprotected void scheduleAllJobs()
throws org.quartz.SchedulerException
org.quartz.SchedulerExceptionprotected void scheduleAllJobsOnApplicationStop()
throws org.quartz.SchedulerException
org.quartz.SchedulerExceptionprotected List<Class<? extends Job>> getJobClasses(Class<? extends Annotation> annotation)
protected void scheduleAllJobsWithOnAnnotation()
throws org.quartz.SchedulerException
org.quartz.SchedulerExceptionprotected void scheduleAllJobsWithEveryAnnotation()
throws org.quartz.SchedulerException
org.quartz.SchedulerExceptionprotected void scheduleAllJobsOnApplicationStart()
throws org.quartz.SchedulerException
org.quartz.SchedulerExceptionprotected org.quartz.Trigger executeNowTrigger()
Copyright © 2016. All rights reserved.