IT:AD:Quartz.NET
Summary
- Quartz.NET is a C# port of the Java library of the same name.
- Key components are:
Scheduler
sJob
s (really just an ICommand)JobDetail
s (the state for the Job Command)Trigger
sJobListener
s
- The loose coupling between
Job
s andTrigger
s allows a powerful many-to-many configuration(many triggers to one job, or one trigger setting off many jobs). - Pros:
- Works in a .NET app.
- Free standing: no coupling to the windows scheduling mechanism.
- Cons:
- Not available for .NET20.
- Has a dependency on the open source
CommonLogger
library. Shame!
Key Points
- In a
Scheduler
, you register a newJobDetail
, that wrap aJob
.- The
JobDetail
contains variables needed by theJob
at execution time.
- If you want the Job to be able to update tracking variables, the Job has to inherit from
IStatefulJob
rather than justIJob
. - Only allowed to throw
JobExecutionException
* Examples on the site are out of date.- See this page for later API examples.