Quartz. Net Study Notes (2)-introduction, quartz.net Study Notes

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.