Quartz.net Distributed task management Platform (second edition)

Source: Internet
Author: User

Preface: after the first edition of the Quartz.net project, there are many friends to download the use, we go through the QQ to explore, in which the project is still a certain imperfect. So with this version now. This version of the writing completed in fact there has been a period of time has not been put up. Now it's synced to GitHub. So let's talk about the improvements in this version. Some things are not mentioned before, you can go to the previous article to understand

Take a look at the changes in the project structure in VS:

It can be seen that we removed the original Quartz.net_jobbase class library, quartz.net_web updated to Jobmanagerbyquaertz, and added Quartz.net_core and Quartz.net_infrastructure class libraries.

This improvement is mainly on the quartz.net_core,quartz.net_infrastructure,quartz.net_remoteserver of the three class libraries, and now look at the corresponding functions and changes.

The 1.quartz.net_core class library contains the following:

Quartz.net core operations are provided: (1) Jobcommon provides Jobkey and Triggerkey constructs (2) Jobexcute for the original quartz.net_ Jobbase implements an interface for quartz.net performing tasks (3)Jobtriggerabstract provides a common method encapsulation for the abstract class for Quartz multitasking types (4) Jobtriggerimplements implements the class for the specific task type, in the first project we implemented the cron type and the most abundant task type, but some of the friends may need a simple task type, such as execute only once, How long the number of times to go to the end of the run setting or the time auto-completion is not in execution, this task type is simple, if the park friends want to implement other types to add their own integrated abstract class.

The 2.quartz.net_infrastructure class Kuto is as follows:

This people should be very familiar with some of the infrastructure. (1) Httpclientutil and rsacryptionutil together constitute the basis for HTTP request and request encryption (2) Iputil provides access to the quartz.net_ RemoteServer deployment after the operation to obtain the corresponding machine IP for easy Log analysis (3) to provide e-mail alert function will be in the task of abnormal, Email notifications when the service hangs (4) Queryableextensionutil provides a queryable extension method that is used in repository.

The 3.quartz.net_remoteserver class library is as follows:

This type of library is for the quartz server we have added (1) Observers to observe the task status changes by executing the listener of the job, such as sending change state, logging, sending mail, etc. (2) to monitor the post-execution operation. Scheduler monitoring to monitor the node status (3) quartzserver the main program portal node main configuration provides the node's pause, start, restore and other operations. In fact we want to distribute we need to change this property to reach otherwise the TCP connection after the node is installed on any server is 127.0.0.1+ the port number you set

(because there is no specific document found in the source to see the settings of this property)

The last web layer is also a global log record that provides operations, exceptions.

Quartz.net Distributed task management Platform (second edition)

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.