<?xml version="1.0" encoding="UTF-8"?>
<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
version="1.8">
<!-- Consult the xsd for more complete scheduling options. -->
<schedule>
<job>
<name>DataImportJob</name>
<job-class>com.msfl.tools.solr.dataimport.quartz.DataImportJob</job-class>
<job-data-map>
<entry>
<key>solrUrl</key>
<value>http://localhost:8080/solr</value>
</entry>
<!-- A comma-separated list of cores. If not provided, uses default core. -->
<entry>
<key>cores</key>
<value>core1,core2, ...</value>
</entry>
</job-data-map>
</job>
<trigger>
<simple>
<name>FullDataImportJobOnce</name>
<job-name>DataImportJob</job-name>
<job-data-map>
<!-- Note that settings can go in job's job-data-map or trigger's job-data-map depending on which is appropriate. -->
<!-- full-import or delta-import. Default is full-import. -->
<entry>
<key>command</key>
<value>full-import</value>
</entry>
<!-- Other settings are clean, optimize, and commit. -->
</job-data-map>
<!-- Execute 15 seconds after solr starts. -->
<start-time-seconds-in-future>15</start-time-seconds-in-future>
<!-- Only perform once. -->
<repeat-count>0</repeat-count>
<!-- Since not repeating, repeat-interval set to 0. -->
<repeat-interval>0</repeat-interval>
</simple>
</trigger>
<trigger>
<cron>
<name>DailyDeltaDataImport</name>
<job-name>DataImportJob</job-name>
<job-data-map>
<entry>
<key>command</key>
<value>delta-import</value>
</entry>
</job-data-map>
<!-- Every night at 4:30. -->
<!-- seconds minutes hours day-of-month month day-of-week -->
<cron-expression>0 30 4 * * ?</cron-expression>
</cron>
</trigger>
</schedule>
</job-scheduling-data>
|
댓글
댓글 쓰기