Quartz (1) and Quartz (
- What is Quartz?
- What can Quartz do/application scenarios?
- Comparison of similar frameworks
- Resources
- Source svn: http://svn.terracotta.org/svn/quartz
- This article uses Version 2.21:Download CSDN: Http://download.csdn.net/detail/chenweitang123/7636703
- Demo:Download CSDN: Upload after sorting.
Framework Analysis
Design Mode in Quartz
Factory Mode
The Quartz 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.
Chain writing: Quartz uses a lot of chain writing, which is somewhat similar to jQuery writing, and the implementation is relatively simple, such:
Core Framework Analysis
JobExecutionContext -- JOB context, stores information such as Trigger and JobDeaitl. The parameters passed by the JOB execute method are the instance of the object.
Sched -- Scheduler
JOB -- task object
Trigger
ThreadPool -- provides some threads for Quartz to run tasks.
----- The above are some of the key objects involved in Quartz. The detailed content will be available in subsequent articles!
Quartz class diagram
Thoughts
Read Quartz in one sentence
Create a sentence to clarify a problem in a simple way
Life imprisonment in Canada means that an offender will be under state supervision, whether in prison or in the community, for the rest of their life. the longest sentence that may be awarded in Canada is life imprisonment without parole eligibility for 25 years. for example, first degree murder carries a mandatory sentence of life imprisonment without eligibility for parole for 25 years. second degree murder carries a mandatory sentence of life imprisonment without eligibility for parole for between 10 and 25 years.
There is no guarantee that parole will be granted to an offender. if the National Parole Board determines that an offender still poses a risk to society that person may be detained in prison past the parole eligibility period.
How can I guess a Chinese Zodiac?
The mouse and mouse holes cannot be found at the entrance, and the exit can be found.