转自:http://www.korri.net/blog/2011/9/7-quartz-and-the-update-checker.html
Every programmer has probably at some point used a timer to run a piece of code at some exact time or after some exact interval. If you've used java, you've probably heard about Quartz scheduler.
I've used Quartz in couple of my own projects, but I haven't followed the project recently. Today I decided to rewrite some of my old code and update Quartz to the latest version. Ealier I've used Quartz version 1.6.1 and today when I checked the current stable version is 2.0.2.
I update the quartz jar and refactored the old scheduler code. All in all, everything went quite easily, although at one point I had to look at the example source code to figure out how the new builders are used. Eventually the code compiled and the jobs fired as they should.
One really surprising thing is that TerraCotta has added and update checker feature to the library and it's turned on by default. The update checker contacts the TerraCotta servers and asks for the newest version of Quartz. If you're running an older version, the checker prints a message to the log. It's not obtrusive at all but it's still wholly unnecessary thing to do.
Fortunately the update checker can be turned of but it isn't as easy as it could be. You can add a
- -Dorg.terracotta.quartz.skipUpdateCheck=true
startup parameter or you can add
- org.terracotta.quartz.skipUpdateCheck=true
to quartz.properties file to disable the update checker. Though both of these methods are unusable in my case.
I don't want to add custom startup parameters and having only the update checker line in quartz.properties doesn't work since you're then missing the default settings. The only usable way disable the update checker was to add
- System.setProperty("org.terracotta.quartz.skipUpdateCheck","true");
call to the initialization code. This is basicly the same thing as adding the startup parameter, but this way you don't have to fiddle with application server startup parameters.
--end
相关推荐
### 编程与Quartz 2D及PDF图形在MacOS中的应用 #### 一、Quartz 2D概述 Quartz 2D是苹果公司为MacOS开发的一个高性能、功能丰富的2D图形处理框架。它不仅适用于MacOS平台,也被广泛应用于iOS设备上。Quartz 2D提供...
标题中的"quartz and cos upload and commands upload"提到了两个主要知识点:Quartz和COS上传以及命令上传。Quartz是Java中一个广泛使用的开源作业调度框架,而COS(Cloud Object Storage)通常指的是云服务提供商...
Quartz 是一个开源的作业调度框架,广泛应用于Java应用程序中,用于执行定时任务。它提供了丰富的API和灵活性,使得开发者可以方便地定义、安排和管理各种任务。版本1.8.6是Quartz的一个稳定版本,它包含了对数据库...
### 关于《使用Quartz 2D与PDF图形在Mac OS X编程》的知识点解析 #### 一、Quartz 2D与PDF图形基础 **Quartz 2D**是苹果为Mac OS X和iOS提供的核心图形处理框架之一。它为开发者提供了高级的2D绘图功能,包括路径...
Quartz是一款广泛使用的开源任务调度框架,它允许开发者在Java应用程序中定义和执行定时任务。在Quartz 2.2.3版本中,初始化数据库是使用Quartz的关键步骤,因为Quartz依赖于一个持久化存储来保存作业和触发器的信息...
**Android Studio下的Quartz工程详解** Quartz是一个开源的作业调度框架,广泛应用于Java环境中的任务调度。在Android Studio中使用Quartz,可以为应用程序添加定时执行的任务功能,例如定期发送通知、更新数据或者...
Quartz 是一个开源的作业调度框架,广泛应用于Java应用程序中,用于执行定时任务。它允许开发者灵活地定义作业和触发器,实现复杂的时间调度。在2.3.0这个版本中,Quartz 提供了针对不同数据库系统的初始化脚本,...
Quartz 是一个开源的作业调度框架,广泛应用于Java企业级应用中,用于自动化任务执行,如定时触发工作流、发送邮件、数据同步等。在Quartz的部署和配置过程中,为了存储作业和触发器的信息,我们需要在关系型数据库...
赠送jar包:quartz-2.3.2.jar; 赠送原API文档:quartz-2.3.2-javadoc.jar; 赠送源代码:quartz-2.3.2-sources.jar; 赠送Maven依赖信息文件:quartz-2.3.2.pom; 包含翻译后的API文档:quartz-2.3.2-javadoc-API...
Quartz 批量下载源码,Quartz 批量下载源码Quartz 批量下载源码Quartz 批量下载源码Quartz 批量下载源码Quartz 批量下载源码Quartz 批量下载源码Quartz 批量下载源码Quartz 批量下载源码Quartz 批量下载源码
NOTE: If "org.quartz.scheduler.batchTriggerAcquisitionMaxCount" is set to > 1, and JDBC JobStore is used, then "org.quartz.jobStore.acquireTriggersWithinLock" must be set to "true" to avoid data ...
Quartz是一款开源的作业调度框架,它允许开发者创建、组织和执行计划任务。这个实例是为初学者设计的,用于帮助理解Quartz的基本概念和使用方式。在MyEclipse 6.0.1环境下,你可以直接运行这个Spring整合Quartz的...
Adaptive temperature compensation of GPS disciplined quartz and rubidium oscillators
在Spring框架中集成Quartz是一款常见的任务调度解决方案,它允许开发者在应用中安排定时任务的执行。Quartz是一个开源的作业调度框架,可以用来在Java应用程序中安排复杂的作业任务。以下将详细介绍如何在Spring中...
Quartz is a richly featured, open source job scheduling library that can be ... The Quartz Scheduler includes many enterprise-class features, such as support for JTA transactions and clustering.
Quartz和Spring-Quartz是两个在Java世界中广泛使用的定时任务管理框架。Quartz是一个开源的作业调度框架,允许应用程序定义和调度任务在特定时间执行。而Spring-Quartz则是Spring框架对Quartz的集成,它使得在Spring...
Quartz 是一个开源的作业调度框架,它允许开发者在 Java 应用程序中安排任务的执行。线程池是 Quartz 的核心组成部分,用于管理和执行触发的任务。本文将深入探讨 Quartz 线程池的工作原理、配置以及如何在实际项目...
Quartz是一个功能丰富的开源作业调度库,几乎可以集成在任何Java应用程序中 - 从最小的独立应用程序到最大的电子商务系统。Quartz可用于创建简单或复杂的计划,以执行数十,数百甚至数万个作业; 将任务定义为标准...
// code to fetch the Trigger, update cron expression, and reschedule the job... } // 暂停任务 public void pauseJob(String jobName, String groupName) { // code to pause the job... } // 恢复...