java.lang.Object | ||
↳ | com.google.inject.AbstractModule | |
↳ | org.apache.onami.scheduler.QuartzModule |
Quartz (http://www.quartz-scheduler.org/) Module as Google-Guice extension.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Add the
JobListener binding. | |||||||||||
Add the
SchedulerListener binding. | |||||||||||
Add the
TriggerListener binding. | |||||||||||
Allows to configure the scheduler.
| |||||||||||
Utility method to respect the DRY principle.
| |||||||||||
Part of the EDSL builder language for configuring
Job s. | |||||||||||
Allows
Job scheduling, delegating Guice create the Job instance
and inject members. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.inject.AbstractModule
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
com.google.inject.Module
|
Add the JobListener
binding.
jobListenerType | The JobListener class has to be bound
|
---|
Add the SchedulerListener
binding.
schedulerListenerType | The SchedulerListener class has to be bound
|
---|
Add the TriggerListener
binding.
triggerListenerType | The TriggerListener class has to be bound
|
---|
Allows to configure the scheduler.
Guice.createInjector(..., new QuartzModule() { @Override protected void schedule() { configureScheduler().withManualStart().withProperties(...); } });
Utility method to respect the DRY principle.
Part of the EDSL builder language for configuring Job
s.
Here is a typical example of scheduling Job
s when creating your Guice injector:
Guice.createInjector(..., new QuartzModule() { @Override protected void schedule() { scheduleJob(MyJobImpl.class).withCronExpression("0/2 * * * * ?"); } });
Allows Job
scheduling, delegating Guice create the Job
instance
and inject members.
If given Job
class is annotated with Scheduled
, then Job
and related Trigger
values will be extracted from it.
jobClass | The Job has to be scheduled |
---|
Job
builder