• 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命名空间里中找到。

  • 相关阅读:
    Annotation Type ManyToMany->>>>>Oracle
    windows 控制台默认为UTF-8显示的方法
    springboot读取配置文件
    Spring Boot配置文件放在jar外部
    Vue自定义过滤器
    vue中limitBy,filterBy,orderBy的用法
    track-by的使用
    Vue的computed属性
    vue实现百度下拉框
    Cas服务器以及客户端搭建
  • 原文地址:https://www.cnblogs.com/hzz521/p/5160033.html
Copyright © 2020-2023  润新知