非Spring下的Quartz
转自:Nick Huang。 http://www.cnblogs.com/nick-huang/
阅读目录
Quartz在Java构建的系统中,是十分常用的定时任务框架。
本文,记录、介绍Quartz的简单入门的单独搭建(此文入门学习Quartz为主,并非基于Spring托管形式)。
> 参考的优秀资料
Chapter 3: Logback configuration
> 版本说明
除了Quartz,还引入logback(为了看详细的日志嘛!)
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAqIAAACACAIAAABfmJywAAAgAElEQVR4nO2dy0/b2NvH/a+wYTPbEqH8JTPSlAIjZdkuq+5gyrQ07SKqVMGim2qmMzBFnRSkiF5HSLzVtOXHJZ0BSpSEJNDQJqZxLnYSaPMuEtvH52Y7cYxJno+8SM79nNj++jznxI/QAAAAAACgRxHOugEAAAAAAHQLkHkAAAAA6FlA5gEAAACgZwGZBwAAAICeRZf5n2+G4IADDjj64XDwHnrmfYEDDv5hkHkHT30AAABv4uy9Du6cgMdxWOYlSUqn03tAD5FOpyVJ6vzcAACPADIP9BVOyrwoiplMplKpnJycwtEzR6VSyWQyoih2eHoAgEcAmQf6CidlPhGP16q1Wq1eA3qKeq1aS8TjHZ4eAOARQOaBvsJJmd/b2zs5OanWatqxvnzl2cwgeawvX0GTweHx4+TkZG9vr8PTAwA8gpsyz7kHOtgGAODgvMwrSlU7ns0Mfvv65Vst/bW0cSo+Pc3+epIKncSvP5sZRJPB4dLx751hYfj2v1VFefKT8FPYckaQeaCXcFPmOfdAB9sAABwclvl6vS4rinasL195EhwIBweeBAfCtwean8O3B9aXr6DJvH78e3tYaDEethmrhMdbkcPBfymFh38SBEEQfgq71ZFmM8Ljwk9hRrJWk4Zvv1dD6vU6yDzQM7g8m2fdAx1sA2BOLOQX/KFYo9GIBIRA5Kyb4yYOy3ytVq9UZO1IHIjX7i0nsiWpUqvX61KlmsiWrt1bThyIaLIuH++Dw8L4X21nD48PB6PNz9HgsDD+l43Y98FhYTj4vlKRK3+NC3isXKnIf4130rYOOkVrjH78NS5o/arItRrIPNA7uCnzn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KeKMnJ0XGKQp2L1a/2rbv8jNYKY52a0TncHg8qsfUROpnU5k3TtrRKath+Pkyz2weu+9kmZb6qA8KT+bpK9yM6XVrTusPxSKBlrxzho7eGGa53F7jzWTG0ivi7Fhp/4QxvyjUaqlnDrUxXQNkHugrvCjzpk6aubmbooxv7kXlCycQ4S2J4nbshksyb6k06q3ROFvD79qGmSeRyI7Mm24nb0fmqZrB7bGlPjot89ruDk3gI2TbnZN5Yw5mj/FYs9l8m4PZscxTew8yDwDdwYsyb+qkmZ4tFgrhasS7oRkCWTdzzNaP2idR6XPEaG9MSZtWqTdctsmVyErYYCkC25bM4/Z53RZiGBi7RnuzRRRjFZFQKGatj9ZknlI4ZznH7/frxgfNdO+kzOs/OnJyaB/5sexRxIz29geTKfPciwI12pNnDsg8AHQLL8q8qZNmVkbdHKiLe2cyj8z+kf86xUJ+IRAg/sRsQ+Zxo4I670Fv0MZcaAhlYQHvF9IO1EiKrptblHm1ragxBLmxY+UitflDISs77anNM7VzkN3h99GizFMKN3SZaAZlRZw+dKYyb3ZKkGc3P7aBnwcNanA7g8mezfMuCqRa1pkDMg8AXcCLMm/qpNn5Ku3Z221b592GM10E+gXmScBQ/86r66xYkHkA6A5elHlTJ82O18izrDOSe1rmz0UTgW7CEc1IV96C19EZF4G34AFA1/CizDcaDY6TZodraueeBxoKABjn6aIAmQf6Co/KPAAAQJcAmQf6CpB5AAD6C5B5oK8AmQcAoL8AmQf6CpB5AAD6C5B5oK/4fwp+uZgJ8zOXAAAAAElFTkSuQmCC" alt="" />
> 简单的搭建
jar包的引入参考上述的pom文件。
quartz.properties,配置quartz的设置。
注,org.quartz.threadPool.threadCount,配置线程池的容量,即表示同时最多可运行的线程数量。在生产环境,此参数应根据实际情况配置。
org.quartz.scheduler.instanceName = MyScheduler
org.quartz.threadPool.threadCount = 3
org.quartz.jobStore.class = org.quartz.simpl.RAMJobStore
logback.xml,日志框架logback的配置。这里只简单地配置了控制台和日志文件的输出哦(>_<)
<configuration> <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<!-- encoders are assigned the type ch.qos.logback.classic.encoder.PatternLayoutEncoder
by default -->
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
</pattern>
</encoder>
</appender> <appender name="FILE" class="ch.qos.logback.core.FileAppender">
<file>D:/logs/quartz_task_application.log</file>
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
</pattern>
</encoder>
</appender> <root level="debug">
<appender-ref ref="STDOUT" />
<appender-ref ref="FILE" />
</root> </configuration>
HelloJob.java,具体执行的任务
package No01简单的定时任务; import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory; public class HelloJob implements Job { Logger logger = LoggerFactory.getLogger(this.getClass()); @Override
public void execute(JobExecutionContext arg0) throws JobExecutionException {
// 此任务仅打印日志便于调试、观察
this.logger.debug(this.getClass().getName() + " trigger...");
} }
那么,在哪里定义“在什么时候执行什么任务呢?”
package No01简单的定时任务; import java.util.concurrent.TimeUnit; import org.quartz.JobBuilder;
import org.quartz.JobDetail;
import org.quartz.Scheduler;
import org.quartz.SchedulerException;
import org.quartz.SimpleScheduleBuilder;
import org.quartz.Trigger;
import org.quartz.TriggerBuilder;
import org.quartz.impl.StdSchedulerFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory; public class Bootstrap {
private static Logger logger = LoggerFactory.getLogger(Bootstrap.class); public static void main(String[] args) { try {
// 获取Scheduler实例
Scheduler scheduler = StdSchedulerFactory.getDefaultScheduler();
scheduler.start(); // 具体任务
JobDetail job = JobBuilder.newJob(HelloJob.class).withIdentity("job1", "group1").build(); // 触发时间点
SimpleScheduleBuilder simpleScheduleBuilder = SimpleScheduleBuilder.simpleSchedule()
.withIntervalInSeconds(5).repeatForever();
Trigger trigger = TriggerBuilder.newTrigger().withIdentity("trigger1", "group1")
.startNow().withSchedule(simpleScheduleBuilder).build(); // 交由Scheduler安排触发
scheduler.scheduleJob(job, trigger); /* 为观察程序运行,此设置主程序睡眠3分钟才继续往下运行(因下一个步骤是“关闭Scheduler”) */
try {
TimeUnit.MINUTES.sleep(3);
} catch (InterruptedException e) {
e.printStackTrace();
} // 关闭Scheduler
scheduler.shutdown(); } catch (SchedulerException se) {
logger.error(se.getMessage(), se);
}
} }
> 在Web应用中使用Quartz
Quartz也常用在Web应用中,常见的是交由Spring托管的形式,但这里并非介绍这个。这里介绍Quartz在Web应用中单独使用。
一般来说,Web应用启动时,应注册已经确定的定时任务;一些动态的、未确定触发时间的定时任务,后续可通过静态的Scheduler注册。
这里使用监听器在应用启动时注册,记得在web.xml注册这个监听器哦(>_<);在关闭Web应用时,也要相应的注销定时任务。
其他配置文件、Java类与上例子相同,这里只是注册定时任务的地方换成此监听器了。
package No02Web应用使用Quartz; import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener; import org.quartz.JobBuilder;
import org.quartz.JobDetail;
import org.quartz.Scheduler;
import org.quartz.SchedulerException;
import org.quartz.SimpleScheduleBuilder;
import org.quartz.Trigger;
import org.quartz.TriggerBuilder;
import org.quartz.impl.StdSchedulerFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import No01简单的定时任务.HelloJob; /**
* Application Lifecycle Listener implementation class AListener
*
*/
public class ApplicationContextListener implements ServletContextListener { private Logger logger = LoggerFactory.getLogger(this.getClass()); public static Scheduler scheduler = null; @Override
public void contextInitialized(ServletContextEvent arg0) {
this.logger.info("The application start..."); /* 注册定时任务 */
try {
// 获取Scheduler实例
scheduler = StdSchedulerFactory.getDefaultScheduler();
scheduler.start(); // 具体任务
JobDetail job = JobBuilder.newJob(HelloJob.class).withIdentity("job1", "group1").build(); // 触发时间点
SimpleScheduleBuilder simpleScheduleBuilder = SimpleScheduleBuilder.simpleSchedule()
.withIntervalInSeconds(5).repeatForever();
Trigger trigger = TriggerBuilder.newTrigger().withIdentity("trigger1", "group1")
.startNow().withSchedule(simpleScheduleBuilder).build(); // 交由Scheduler安排触发
scheduler.scheduleJob(job, trigger); this.logger.info("The scheduler register...");
} catch (SchedulerException se) {
logger.error(se.getMessage(), se);
}
} @Override
public void contextDestroyed(ServletContextEvent arg0) {
this.logger.info("The application stop..."); /* 注销定时任务 */
try {
// 关闭Scheduler
scheduler.shutdown(); this.logger.info("The scheduler shutdown...");
} catch (SchedulerException se) {
logger.error(se.getMessage(), se);
}
} }
<listener>
<listener-class>No02Web应用使用Quartz.ApplicationContextListener</listener-class>
</listener>
注,如果你在Eclipse中调试,可能发现无法看到contextDestroyed方法的执行,请注意用Stop方式(图一)关闭应用,而不是Terminate(图二)。
图一
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAkgAAADWCAIAAAClj+riAAAgAElEQVR4nO2de3ATV77nz9a9t3a3du7eqdqt3b27W3dTtyY1ubNTOyGxSKKbTUgxN5fJzJ0ke0OYEB4dMiiTBzM8DCEQnjYy5mGLpw2YYBLAxnKCE4x4mAEDBowB2WCbGBTAvP2UJeP36+wfLXWffkktWZbk1vdTv3K1js45fbrV6o9/Ry018Xg8z26jsr80dHp6esJoFc84LMTiGKnOr1kmLrNUjERlCdJtcNnMZptLeIaYbYFbu2zmYewBhyVY/8pRhURWVlZnZ2dnZ6dXwb/7x9TqRw97KB2glPzs40FK+yn9vvnRj15JVVaWcffePUqpR4IzbSzh7OLy2DSn/yk7R3wIhc60sf4yzs5U8NWQPs30b+cIIWPHjiWKHuWjsHNkbFoap1rLX1UstnN8HXYt/JPM2PxjYYo4u2SN/sGqbTIA0YF/y2dlZWVkZNjt9pqaGq/XOzAwIDs5EKXVnt0WxknGgGIL5bT+4JR54jIiRPIpF6W8kIRC84FmX+UKO2Ers9LS7sdywP+Ur1APNrPEzQEU4rD4z1Vmm1DLZTNbbDaz7wmpIYlYn6qVWxw+sfFlfGN+LbIxqIxKo3++1Gxz8c8HENvVKy2dlLopfUwp+YePeyjtoHSI0n/zf2aHLTa1k7lfGf46nF0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YCLwix6IUl0Y12a7W89bztxW3VPl6qe527W3Ps5AkW10jve+hqYU3lWcbAMIm5Ksi73notUYxMrLmdA3QC1cbvzt203Gq/tj5hidffe5fVs4f/9HsX81e+OSrzz356nNsfSYcbxPLNnmJgPCU421i/qw84HK5bYykleuzJN/jMVMtY/xdHUkxE0JIku2IfCSuz5IImeoQS8ptY8QVKUrkq5OHb0WEEELezmN7kBW6PktiKmiOJGgraXO9G87uf9U9r3PHCv2wr47rsyT2lVLpfJv4XT/HtUDjlMS2qZL9ICJrpbXfplqUIxFeL3anMT2YP0uxiP2rlpfbxgTeCUFa6Th++D0mbmbQFQUYj/IQCvrW87f1j1l8+dgXUWW302t5wj6X7sk8C0myXWuk9yA2EGlC/h7bXTeteSRGRtacPkqrrj8+Ud506lJzWVU7pXTKxu2Puit3XSyatDydUkl9BGI4kTWFTNwb9fXutZAkm0N/uc7e9lrIFEdI2/70ClfMX4LI7tWaR/SuG2IDESbkXx6pd9OrD8XIyJ5b7mzd/mXJzr3Hd+8r3b3/zJOvPjf+o9m7LhY96q78KDvnyVefY+sjEMOJrVMIIYRMcYzwilwLkixbfcuOtwh5eoUrYHk4vRWvML+1R/eQztqeJkInoz58r2OS7epDWg+xgUgTsthuu+mVh2IcOXxhyeqpqeveT7PNTLPNtGbOpJQ++epzH2XnjP9o9viPZlMqqY9AjI44a3vaP4P29ApX8PLwetMXW6YQQshbe2K9T0YmbkNsINKEJraMg/V1DQPVD2nVA82gzGUj/EKAyggEIpGj+iGtaxjIOFgf6TMbSGhCE9thZ3PRxVZX06CO718jEAhEkHA1DRZdbD10uWmETnAgMQlNbL39gwcvNq0pupVaeBOBQCCGGWuKbh282NTbL/9JJACGQ2hiAwAAAOIciA0AAIChgNgAAAAYCogNAACAoYDYAAAAGAqIDQAAgKGA2AAAABiK/w9AWUASAImPpQAAAABJRU5ErkJggg==" alt="" />
图二
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHYAAAA+CAIAAABxznhHAAAIEUl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2/K56o1BbIIgenp6bt++/eDBg8ePH4+PjzdOQ6lZfJDO1PKSCZhh+RCezKfiJHKsHaTXHDgwQTRF73hdv/x6Ei/2ibauOfByOfOrQ1+ex7DYWjpF7TGIR04QhMlkkjmLFUL8PsXWcnAEmBfLh9AMsMn/imPiTzEwAtEU/dPV+uXVSazYJ9oaf4qVWwH2NP4+hUYip6g9BrHViHhvn6nl4AgwL1QcgpGF4uHCiNAUm8BOKvf2gyMAn1ipX14hsWKfaGtsAsMnVpi9BTPAyJV9Zm+fWZnAAag+Rc0xiK1GxMn/0bX84lsw6kNrIqSudId+6xcqo3ZduSyk4PZI/XKE1BX7RFujdp1QjtpLJ9ANj5Yi6Vd2HAAAdOSr2mMQW42I375NnyerEfEulT5PViPi7Z3UebLqEBsMhp2d99vbqfNhinpvMBhUh3htLbG1nTofXltLqBHx2NhYNLqW2Ex+dECncWIzGY2ujY2NffPNfXUh5s/X69H79++bTCbVIUaVz+cPDg4ikYiwk2L6NCV/G0g5smWVEZcpf6JS0WamSALiMuVPWmrZkhdJeBNzcF6kihdL1TrlfzipTU1de/tv2hTX/wHoOzNasg5gRgAAAABJRU5ErkJggg==" alt="" />
> 常用的Cron Schedule
相对于其他方式定义定时任务的触发时间,我们较常用Cron Schedule,小伙伴们也是吧?
Cron Schedule的使用
// 具体任务
JobDetail job = JobBuilder.newJob(HelloJob.class).withIdentity("job1", "group1").build(); // 触发时间点
CronScheduleBuilder cronScheduleBuilder = CronScheduleBuilder.cronSchedule("0 * * * * ? *");
Trigger trigger = TriggerBuilder.newTrigger().withIdentity("trigger1", "group1")
.withSchedule(cronScheduleBuilder).build(); // 交由Scheduler安排触发
scheduler.scheduleJob(job, trigger);
而Cron Expression的学习可参考下列优秀的文章:
Tutorial - Lesson 6: CronTrigger
Spring - Quartz - cronExpression中问号(?)的解释
非Spring下的Quartz的更多相关文章
- 任务调度--spring下的任务调度quartz
之前写过Timer实现任务调度,这篇文章用来写一下在spring下使用quartz实现任务调度,直接上代码: 定义任务对象: package com; /** * 1. 定义任务对象 * * @aut ...
- 【Spring】非Spring IOC容器下获取Spring IOC上下文的环境
前言 在Spring Web项目中,有些特殊的时候需要在非Spring IOC容器下获取Spring IOC容器的上下文环境,比如获取某个bean. 版本说明 声明POM文件,指定需引入的JAR. & ...
- MyBatis在非Spring环境下第三方DataSource设置-Druid篇
首先在ITEye上面看到一个同标题文章,在此说明,此文并非转载自 http://iintothewind.iteye.com/blog/2069522 ,因为这篇文章根本就是错误的,照着上面做,工程可 ...
- Mybatis在非spring环境下配置文件中使用外部数据源(druidDatasource)
Spring环境下, MyBatis可以通过其本身的增强mybatis-spring提供的org.mybatis.spring.SqlSessionFactoryBean来注入第三方DataSourc ...
- 精讲RestTemplate第1篇-在Spring或非Spring环境下如何使用
一.什么是 RestTemplate? RestTemplate是执行HTTP请求的同步阻塞式的客户端,它在HTTP客户端库(例如JDK HttpURLConnection,Apache HttpCo ...
- Spring 3整合Quartz 2实现定时任务一:常规整合 (基于maven构建)
最近工作中需要用到定时任务的功能,虽然Spring3也自带了一个轻量级的定时任务实现,但感觉不够灵活,功能也不够强大.在考虑之后,决定整合更为专业的Quartz来实现定时任务功能. 首先,当然是添加依 ...
- Spring 3整合Quartz 1实现定时任务一:常规整合(基于maven构建)
Spring配置Quartz例子(基于maven构建) 在Spring中使用Quartz有两种方式实现:第一种是任务类继承QuartzJobBean,第二种则是在配置文件里定义任务类和要执行的方法,类 ...
- Spring 3整合Quartz 2实现定时任务--转
常规整合 http://www.meiriyouke.net/?p=82 最近工作中需要用到定时任务的功能,虽然Spring3也自带了一个轻量级的定时任务实现,但感觉不够灵活,功能也不够强大.在考虑之 ...
- Spring 3整合Quartz 2实现手动设置定时任务:新增,修改,删除,暂停和恢复(附带源码)
摘要:在项目的管理功能中,对定时任务的管理有时会很常见.但一般定时任务配置都在xml中完成,包括cronExpression表达式,十分的方便.但是如果我的任务信息是保存在数据库的,想要动态的初始化, ...
随机推荐
- Java selenium web页面的滚动条操作
摘录自:http://blog.csdn.net/iceryan/article/details/8162703 //移动到元素element对象的"顶端"与当前窗口的" ...
- Oracle(控制用户权限)
权限允许用户访问属于其它用户的对象或执行程序, ORACLE系统提供权限:Object 对象级.System 系统级 查看权限的数据字典: 字典名 含义 ROLE_SYS_PRIVS System p ...
- 合并excel中多个sheet
Sub 合并当前工作簿下的所有工作表() Application.ScreenUpdating = False For j = 1 To Sheets.Count If Sheets(j).Name ...
- batch
%0 当前 batch 文件名 %n 第 n 个命令行参数(1 <= n <= 9) %* 所有的命令行参数 @echo off echo % echo % if not &q ...
- [转载]自己编写 php 在线问卷调查程序
<html> <head> <title>问卷调查</title> <meta http-equiv="Content-Type ...
- html4,xhtml,html5发展历史
SGML SGML 是一种很强大但很复杂的标记语言,HTML.XML 就是从中衍生出来的.SGML 的例子如下:<QUOTE TYPE="example"> typic ...
- freeMarker生成静态页面
项目结构图 footer.ftl des==>${f.des}<br/> <a href="http://www.baidu.com"> 百度 < ...
- WPF界面布局——各种控件
Grid是最常用的动态布局控件,也是所有动态布局控件中唯一可按比例动态调整分配空间的控件. label : 标签,用来显示文本内容.可以为其他控件如文本框等添加一些描述性的信息. TextBox : ...
- Control.DataBinding数据绑定简单用法:
DataBindings的用法: 第一个值:要绑定到TextBox的什么地方 第二个值:数据源是什么 第三个值:应该取数据源的什么属性 第四个值:是否开启数据格式化 第五个值:在什么时候启用数据源绑定 ...
- Maven 手动添加 JAR 包到本地仓库
Maven 确确实实是个好东西,用来管理项目显得很方便,但是如果是通过 Maven 来远程下载 JAR 包的话,我宿舍的带宽是4兆的,4个人共用,有时候用 Maven 来远程下载 JAR 包会显得很慢 ...