以编程方式更新基于表的 Quartz Scheduler
在我的一个使用基于 jdbc 的 Quartz 调度程序的 Java 项目中,我需要经常更新预配置作业的调度。即使用 JobID 作为句柄我想更新表中的计划。这可能吗?
In one of my Java projects with jdbc-based Quartz scheduler I am in need to update the schedule of a preconfigured job frequently. i.e. using the JobID as the handle I would like to update the schedule in the tables. Is this possible?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不推荐这种方法,我认为最好使用 QuartzScheduler 对象中专用于此的方法重新安排作业。
查看 rescheduleJob :
http:// www.quartz-scheduler.org/docs/api/1.8.1/org/quartz/core/QuartzScheduler.html
I don't recommend this approach, I think it's better to reSchedule job using the method dedicated to this in QuartzScheduler object.
Look at rescheduleJob in:
http://www.quartz-scheduler.org/docs/api/1.8.1/org/quartz/core/QuartzScheduler.html