File: jobs.xml

package info (click to toggle)
libquartz-java 1.6.1~RC1-1
  • links: PTS, VCS
  • area: contrib
  • in suites: lenny
  • size: 3,080 kB
  • ctags: 4,049
  • sloc: java: 26,176; xml: 846; sh: 108; makefile: 17
file content (79 lines) | stat: -rw-r--r-- 2,778 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<?xml version='1.0' encoding='utf-8'?>
<quartz xmlns="http://www.opensymphony.com/quartz/JobSchedulingData"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.opensymphony.com/quartz/JobSchedulingData
  http://www.opensymphony.com/quartz/xml/job_scheduling_data_1_5.xsd"
  version="1.5">
  <calendar class-name="org.quartz.impl.calendar.HolidayCalendar" replace="true">
    <name>holidayCalendar</name>
    <description>HolidayCalendar</description>
    <base-calendar class-name="org.quartz.impl.calendar.WeeklyCalendar">
      <name>weeklyCalendar</name>
      <description>WeeklyCalendar</description>
      <base-calendar class-name="org.quartz.impl.calendar.AnnualCalendar">
        <name>annualCalendar</name>
        <description>AnnualCalendar</description>
      </base-calendar>
    </base-calendar>
  </calendar>
  <job>
    <job-detail>
      <name>testJob1</name>
      <group>testJobs</group>
      <description>Test Job Number 1</description>
      <job-class>org.quartz.examples.example10.SimpleJob</job-class>
      <volatility>false</volatility>
      <durability>false</durability>
      <recover>false</recover>
      <job-data-map>
        <entry>
          <key>test1</key>
          <value>test1</value>
        </entry>
        <entry>
          <key>test2</key>
          <value>test2</value>
        </entry>
      </job-data-map>
    </job-detail>
    <trigger>
      <cron>
        <name>testTrigger1</name>
        <group>testJobs</group>
        <description>Test Trigger Number 1</description>
        <job-name>testJob1</job-name>
        <job-group>testJobs</job-group>
        <!--
        <start-time>2003-12-17T14:15:00</start-time>  
        <end-time>2013-12-17T14:15:00</end-time>  
-->
        <cron-expression>0/15 * * ? * *</cron-expression>
        <!-- every 15 seconds... -->
      </cron>
    </trigger>
  </job>
  <job>
    <job-detail>
      <name>testJob2</name>
      <group>testJobs</group>
      <description>Test Job Number 2</description>
      <job-class>org.quartz.examples.example10.SimpleJob</job-class>
      <volatility>false</volatility>
      <durability>false</durability>
      <recover>false</recover>
    </job-detail>
    <trigger>
      <simple>
        <name>testTrigger2</name>
        <group>testJobs</group>
        <description>Test Trigger Number 2</description>
        <calendar-name>holidayCalendar</calendar-name>
        <job-name>testJob2</job-name>
        <job-group>testJobs</job-group>
        <start-time>2004-02-26T12:26:00</start-time>
        <repeat-count>10</repeat-count>
        <repeat-interval>5000</repeat-interval>
      </simple>
    </trigger>
  </job>
</quartz>