如何在不重启服务器的情况下添加带有运行Quartz Scheduler实例的触发器的作业 [英] How to add job with trigger for running Quartz scheduler instance without restarting server

查看:181
本文介绍了如何在不重启服务器的情况下添加带有运行Quartz Scheduler实例的触发器的作业的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个调度程序实例,然后将作业和触发器添加到由Web UI运行的此调度程序中以供将来使用,而无需重新启动服务器 (我使用Quartz 2.x版本) 有人可以帮我吗?

I want to create one scheduler instance then adding Jobs and triggers for future use to this scheduler running by web UI without restarting server (I use Quartz 2.x version) Can anybody help me please?

谢谢

推荐答案

您可以将作业动态添加到Quartz调度程序实例中,但是这些作业(即作业类)通常必须存在于Quartz调度程序的类路径中.另外,您可以使用Quartz调度程序的JobFactory API通过自定义的类加载器加载作业类,这将使您真正地动态添加作业.

You can dynamically add jobs to a Quartz scheduler instance but the jobs (i.e. the job classes) must be typically present on the Quartz scheduler's classpath. Alternatively you could use the Quartz scheduler's JobFactory API to load job classes through a custom class-loader and that would allow you to add jobs truly dynamically.

使用触发器,根本没有问题-可以使用标准Quartz API动态添加/更新/删除这些触发器.

With triggers, there is no problem at all - these can be added/updated/deleted dynamically using the standard Quartz API.

至于允许您添加作业/触发器的GUI,有几个,您可以通过在Google上搜索"Quartz Scheduler gui"轻松找到它们.

As for a GUI that allows you to add jobs/triggers, there are couple of them and you can easily find them by searching for "quartz scheduler gui" on Google.

我恰好是其中之一的 QuartzDesk 的主要开发人员.如果您对此产品有任何疑问,请使用我们的联系人.

I happen to be a principal developer of QuartzDesk, which is one of those products. If you have any questions regarding this product, then please use our contacts.

这篇关于如何在不重启服务器的情况下添加带有运行Quartz Scheduler实例的触发器的作业的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆