Quartz_2.2.X学习系列十二:Tutorials - Lesson 12: Miscellaneous Features of Quartz

Lesson 12: Miscellaneous Features of Quartz

Plug-Ins

Quartz provides an interface (org.quartz.spi.SchedulerPlugin) for plugging-in additional functionality.

Plugins that ship with Quartz to provide various utility capabilities can be found documented in the org.quartz.plugins package. 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 JVM exits.

 

Quartz提供了一个接口(org.quartz.spi.SchedulerPlugin),用于插入附加功能。

用Quartz来提供各种实用功能的插件可以在org.quartz.plugins包中找到。它们提供了一些功能,比如在调度器启动时自动调度作业,记录作业的历史和触发事件,并确保当JVM退出时调度程序会清理后才关闭。

 

JobFactory

When a trigger fires, the Job it is associated to is instantiated via the JobFactory configured on the Scheduler. The default JobFactory simply calls newInstance() on 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.

 

当触发器触发时,它所关联的作业将通过在调度程序上配置的JobFactory实例化。默认的JobFactory简单地在作业类上调用newInstance()。您可能想要创建自己的JobFactory实现来完成一些事情,比如让应用程序的IoC或DI容器生产/初始化作业实例。

 

See the org.quartz.spi.JobFactory 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 EJBs. These out-of-the-box Jobs can be found documented in the org.quartz.jobs package.

 

Quartz还提供了许多实用的Job,您可以在应用程序中使用这些作业,比如发送电子邮件和调用EJBs。这些开箱即用的工作可以在org.quartz.jobs 包中找到。

 

Pasted from <http://www.quartz-scheduler.org/documentation/quartz-2.2.x/tutorials/tutorial-lesson-12.html>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值