zoukankan      html  css  js  c++  java
  • Quartz.NET笔记(十二) Miscellaneous Features of Quartz

    Plug-Ins

    Quartz provides an interface (ISchedulerPlugin) for plugging-in additional functionality.

    Plugins that ship with Quartz to provide various utililty capabilities can be found documented in the Quartz.Plugins namespace. They provide functionality such as auto-scheduling of jobs upon scheduler startup, logging a history of job and trigger events, and ensuring that the scheduler shuts down cleanly when the virtual machine exits.

    JobFactory

    When a trigger fires, the Job it is associated to is instantiated via the JobFactory configured on the Scheduler. The default JobFactory simply activates a new instance of the job class. You may want to create your own implementation of JobFactory to accomplish things such as having your application's IoC or DI container produce/initialize the job instance.

    See the IJobFactory interface, and the associated Scheduler.SetJobFactory(fact) method.

    'Factory-Shipped' Jobs

    Quartz also provides a number of utility Jobs that you can use in your application for doing things like sending e-mails and invoking remote objects. These out-of-the-box Jobs can be found documented in the Quartz.Jobs namespace.

    Plug-Ins 插件

    Quartz提供了一个接口(ISchedulerPlugin)来插入附加的功能。

    Quartz打包来的插件有很多有用的功能,它们在Quartz.Plugins命名空间中找到。他们提供了诸如自动安排任务的日程,将任务和触发器事件的历史记入日志以及虚拟机退出时确保干净地关闭scheduler等的功能。

    JobFactory

    当触发器触发时,与之相关联的任务被Scheduler中配置的JobFactory所实例化。缺省的JobFactory只是简单地创建一个Job实例。你也许想创建自己的JobFactory实现,以完成诸如让应用的IoC 或者 DI容器产生/初始化job实例的功能。

    查看IJobFactory 接口及与之相关的Scheduler.SetJobFactory(fact)方法。

    'Factory-Shipped' Jobs

    Quartz也提供了一些可以在你的应用中使用的实用的Jobs,比如,发邮件、调用远程对象。这些外来的Job可以在Quartz.Jobs命名空间里中找到。

  • 相关阅读:
    建表
    第5讲:控制语句
    第4讲:函数
    第1讲:面向对象
    野路子小白安装黑苹果 OpenCore引导 @a.宏万
    野路子学习esp32(十九)ESP32-Arduino 第二篇 智能孵化器 @a.宏万
    野路子学习esp32(十八)ESP32-Arduino 第一篇 @a.宏万
    野路子学习esp32(十七)ESP32-MicroPython OLED AND DHT11 @a.宏万
    野路子学习esp32(十六) MQTT与ESP32-MicroPython @a.宏万
    野路子学习esp32(十五) 1z实验室 EMP项目@a.宏万
  • 原文地址:https://www.cnblogs.com/hzz521/p/5160033.html
Copyright © 2011-2022 走看看