Quartz Examples quartz 案例

Examples Overview  示例概述

      Welcome to the documentation for the Quartz Example programs. As of version 1.5, Quartz ships with 13 out-of-the-box examples that demonstrate the various features of Quartz and the Quartz API.

      欢迎阅读Quartz Example程序的文档。从版本1.5开始,Quartz附带了13个开箱即用的示例,演示了Quartz和Quartz API的各种功能。

Where to Find the Examples

      All of the examples listed below are part of the Quartz distribution.

      下面列出的所有示例都是Quartz发行版的一部分。

To download Quartz, visit http://www.quartz-scheduler.org/download and select the latest Quartz distribution.

要下载Quartz,请访问http://www.quartz-scheduler.org/download并选择最新的Quartz发行版。


      The quartz examples are listed under the examples directory under the main Quartz directory. Under the examples directory, you will find an example sub-directory for each example, labeled example1example2example3 etc…

      quartz示例在examples目录的主quartz目录下列出。在示例目录下,您将找到每个示例的示例子目录,标记为example1、example2、example3等。

      Every example contains UNIX/Linux shell scripts for executing the examples as well at Windows batch files. Additionally, every example has a readme.txt file. Please consult this file before running the examples.

      每个示例都包含UNIX / Linux shell脚本,用于在Windows批处理文件中执行示例。此外,每个示例都有一个readme.txt文件。在运行示例之前,请查阅此文件。

      The source code for the examples are located in package org.quartz.examples. Every example has its own sub-package, org.quartz.examples.example1org.quartz.examples.example2, etc…

      示例的源代码位于org.quartz.examples包中每个示例都有自己的子包org.quartz.examples.example1

org.quartz.examples.example2等...

      Here we give an overview of each example program:

      这里我们概述每个示例程序:

The Examples

</thead> </tr> </table>
Title Description
Example 1 - First Quartz Program Think of this as a "Hello World" for Quartz  可以把它想象成Quartz的“Hello World”
Example 2 - Simple Triggers

Shows a dozen different ways of using Simple Triggers to schedule your jobs

显示使用简单触发器安排作业的十几种不同方法

Example 3 - Cron Triggers

Shows how Cron Triggers can be used to schedule your jo

显示如何使用Cron触发器来安排您的工作b

Example 4 - Job State and Parameters

Demonstrates how parameters can be passed into jobs and how jobs maintain state

演示如何将参数传递到作业以及作业如何维持状态

Example 5 - Handling Job Misfires

Sometimes job will not execute when they are supposed to.

 See how to handle these Misfires

有时工作不会在他们应该执行时执行。了解如何处理这些“未触发

Example 6 - Dealing with Job Exceptions

No job is perfect. See how you can let the scheduler know how to deal with exceptions that are thrown by your job

没有工作是完美的。了解如何让调度程序知道如何处理作业引发的异常

Example 7 - Interrupting Jobs

Shows how the scheduler can interrupt your jobs and how to code your jobs to deal with interruptions

显示调度程序如何中断作业以及如何编写作业以处理中断

Example 8 - Fun with Calendars

Demonstrates how a Holiday calendar can be used to exclude execution of jobs on a holiday

演示假日日历如何用于排除假期中的作业执行

Example 9 - Job Listeners

Use job listeners to have one job trigger another job, building a simple workflow

使用作业监听器让一个作业触发另一个作业,构建一个简单的工作流程

Example 10 - Using Quartz Plug-Ins

Demonstrates the use of the XML Job Initialization plug-in as well as the History Logging plug-ins

演示如何使用XML作业初始化插件以及历史记录日志插件

Example 11 - Quartz Under High Load

Quartz can run a lot of jobs but see how thread pools can limit how many jobs can execute simultaneously

Quartz可以运行很多工作,但是看看线程池如何限制可以同时执行多少个作业

Example 12 - Remote Job Scheduling using RMI

Using Remote Method Invocation, a Quartz scheduler can be remotely scheduled by a client

使用远程方法调用,客户端可以远程调度Quartz调度程序

Example 13 - Clustered Quartz

Demonstrates how Quartz can be used in a clustered environment and how Quartz can use the database to persist scheduling information

演示Quartz如何在集群环境中使用,以及Quartz如何使用数据库来保存调度信息

Example 14 - Trigger Priorities

Demonstrates how Trigger priorities can be used to manage firing order for Triggers with the same fire time

演示触发器优先级如何用于管理具有相同触发时间的触发器的触发顺序

Example 15 - TC Clustered Quartz

Demonstrates how Quartz can be clustered with Terracotta, rather than with a database

演示Quartz如何与Terracotta集群,而不是与数据库集群

猜你喜欢

转载自blog.csdn.net/qq_30336433/article/details/80967941