简体   繁体   English

使用石英作业调度程序更改时间触发器

[英]Using quartz job scheduler for changing time trigger

I need a solution for this problem. 我需要解决此问题的方法。 Please help me if anybody knows how I can use Quartz scheduler for this purpose, or if any other JobScheduler exists let me know. 如果有人知道如何为此目的使用Quartz Scheduler,或者有其他JobScheduler告诉我,请帮助我。

I have a list of Date like this 我有这样的日期列表

2015-11-18 01:14:03 2015-11-18 01:14:03

2015-11-18 01:50:03 2015-11-18 01:50:03

2015-11-18 02:24:03 2015-11-18 02:24:03

2015-11-18 03:04:03 2015-11-18 03:04:03

2015-11-18 04:16:03 2015-11-18 04:16:03

2015-11-18 05:54:03 2015-11-18 05:54:03

2015-11-18 06:24:03 2015-11-18 06:24:03

2015-11-18 07:17:03 2015-11-18 07:17:03

2015-11-18 08:34:03 2015-11-18 08:34:03

I need the Scheduler to trigger the function as per the list time (assume that the times are in sorted order). 我需要调度程序根据列表时间触发功能(假设时间按排序顺序)。 How can I do this on quartz jobs? 我该如何在石英作业上做到这一点?

You will need to format the time as a CRON expression. 您将需要将时间格式化为CRON表达式。

More details are at: http://www.quartz-scheduler.org/documentation/quartz-1.x/tutorials/crontrigger 有关更多详细信息,请访问: http : //www.quartz-scheduler.org/documentation/quartz-1.x/tutorials/crontrigger

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM