| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <job-scheduling-data xmlns="http://www.quartz-scheduler.org/xml/JobSchedulingData" |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| xsi:schemaLocation="http://www.quartz-scheduler.org/xml/JobSchedulingData http://www.quartz-scheduler.org/xml/job_scheduling_data_2_0.xsd" |
| version="2.0"> |
| <pre-processing-commands> |
| <delete-jobs-in-group>*</delete-jobs-in-group> |
| <!-- clear all jobs in scheduler --> |
| <delete-triggers-in-group>*</delete-triggers-in-group> |
| <!-- clear all triggers in scheduler --> |
| </pre-processing-commands> |
| <processing-directives> |
| <!-- if there are any jobs/trigger in scheduler of same name (as in this file), overwrite them --> |
| <overwrite-existing-data>true</overwrite-existing-data> |
| <!-- if there are any jobs/trigger in scheduler of same name (as in this file), and over-write is false, ignore them rather then generating an error --> |
| <ignore-duplicates>false</ignore-duplicates> |
| </processing-directives> |
| <schedule> |
| <job> |
| <name>simpleJob</name> |
| <group>TURBINE</group> |
| <description>A simple job</description> |
| <job-class>org.apache.fulcrum.quartz.test.SimpleJob</job-class> |
| <job-data-map> |
| <entry> |
| <key>dressing-list</key> |
| <value>ketchup,mayo</value> |
| </entry> |
| <entry> |
| <key>burger-type</key> |
| <value>hotdog</value> |
| </entry> |
| </job-data-map> |
| </job> |
| <job> |
| <name>notSoSimpleJob</name> |
| <group>TURBINE</group> |
| <description>A not so simple job using a service manager</description> |
| <job-class>org.apache.fulcrum.quartz.test.NotSoSimpleJob</job-class> |
| </job> |
| <trigger> |
| <cron> |
| <!-- define a Cron trigger firing every second from now on --> |
| <name>cronTrigger</name> |
| <group>TURBINE</group> |
| <job-name>notSoSimpleJob</job-name> |
| <job-group>TURBINE</job-group> |
| <cron-expression>* * * * * ?</cron-expression> |
| </cron> |
| </trigger> |
| <trigger> |
| <simple> |
| <!-- define a simple trigger firing every second --> |
| <name>simpleTrigger</name> |
| <group>TURBINE</group> |
| <job-name>simpleJob</job-name> |
| <job-group>TURBINE</job-group> |
| <start-time>2010-08-01T00:00:00</start-time> |
| <misfire-instruction>MISFIRE_INSTRUCTION_RESCHEDULE_NOW_WITH_EXISTING_REPEAT_COUNT</misfire-instruction> |
| <repeat-count>-1</repeat-count> |
| <repeat-interval>1000</repeat-interval> |
| </simple> |
| </trigger> |
| </schedule> |
| </job-scheduling-data> |