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

  • 相关阅读:
    CDH 下线节点
    Linux下如何查看哪些进程占用的CPU内存资源最多
    CentOS7安装iptables防火墙
    Mysql 编译报错 g++: internal compiler error: Killed (program cc1plus) 解决办法
    Jenkins配置gitlab
    mysql连接卡死,很多线程sleep状态,导致CPU中mysqld占用率极高
    c++0.1-----基于对象知识大综合(非指针篇)
    c++0.0-----挖坑
    python0.16------构造函数/析构函数/self详解/重写/访问限制/对象属性和类属性/@property/运算符重载
    python0.15-----继承和多态
  • 原文地址:https://www.cnblogs.com/hzz521/p/5160033.html
Copyright © 2011-2022 走看看