Quartz. Net Study Notes (2)-introduction, quartz.net Study Notes
1. What is Quartz. Net? 1. Source
Quartz. Net is an open-source job scheduling framework;
2.
Address: http://www.quartz-scheduler.net/documentation/index.html
Source Code address: https://sourceforge.net/projects/quartznet/
Ii. What can Quartz. Net do?
Timed round robin Database Synchronization and timed email notification
Iii. Design Pattern in Quartz. Net 1. Builder Pattern
All key components are built in the Builder mode <Builder>. For example, JobBuilder and TriggerBuilder
2. Factory Mode
Finally, Scheduler combines various components <Factory>. For example, SchedulerFactory
3. Component Mode
The Quartz. Net project uses a large number of Component Modes, plug-in design, pluggable, low coupling, and easy scalability. developers can customize their own jobs, triggers, and other components.
4. chained Programming
Similar to jQuery
Iv. Several important types 1. SchedulerFactory (Scheduler factory)
(1) StdSchedulerFactory
Quartz. Net default SchedulerFactory
(2) DirectSchedulerFactory
Is a direct implementation of SchedulerFactory, through which you can directly build Scheduler, ThreadPool
2. IJobExecutionContext (Job context)
Job context, stores information such as Trigger and JobDetail
3. sched)
(1) StdScheduler
Quartz. Net default Scheduler
(2) RemoteScheduler
Scheduler with RMI
4. Job (task object)
(1) JobDetail
It is a callback class that implements polling. It can encapsulate parameters into JobDataMap objects, and Quartz. Net saves the job status of the task in JobDeta.
(2) JobDataMap
JobDataMap is used to report the task instance object passed by JobDetail.
5. Trigger
(1) SimpleTrigger
Common Trigger, corresponding to the scheduler SimpleScheduleBuilder
(2) CronTrigger
Trigger with Cron Like expression, corresponding to the scheduler CronScheduleBuilder
(3) CalendarIntervalTrigger
Trigger with date Trigger, corresponding to the scheduler CalendarIntervalScheduleBuilder
(4) DailyTimeIntervalTrigger
Trigger triggered by day, corresponding to the scheduler DailyTimeIntervalScheduleBuilder
6. ThreadPool
It provides some threads for Quartz to run the task.
(1) SimpleThreadPool
A simple thread pool implemented by Quartz by default, which can respond to most common scenarios
V. References
Http://blog.csdn.net/chenweitang123/article/details/37777399