quartz.xml 1.4 KB

123456789101112131415161718
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <beans xmlns="http://www.springframework.org/schema/beans"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xmlns:reg="http://www.dangdang.com/schema/ddframe/reg"
  5. xmlns:job="http://www.dangdang.com/schema/ddframe/job"
  6. xsi:schemaLocation="http://www.springframework.org/schema/beans
  7. http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
  8. http://www.dangdang.com/schema/ddframe/reg
  9. http://www.dangdang.com/schema/ddframe/reg/reg.xsd
  10. http://www.dangdang.com/schema/ddframe/job
  11. http://www.dangdang.com/schema/ddframe/job/job.xsd">
  12. <reg:zookeeper id="regCenter" server-lists="${zookeeper.connect}" namespace="wms-job" base-sleep-time-milliseconds="5000" max-sleep-time-milliseconds="10000" max-retries="3" />
  13. <job:simple id="DeliverDocumentBakTaskJob" description="备份装箱单" cron="0/5 * * * * ?" class="com.cwms.saas.els.quartz.DeliverDocumentBakTask" registry-center-ref="regCenter" sharding-total-count="1" sharding-item-parameters="0=A" overwrite="true"/>
  14. <job:simple id="InventoryAndSaleBakTask" description="备份进销存" cron="0/5 * * * * ?" class="com.cwms.saas.els.quartz.InventoryAndSaleBakTask" registry-center-ref="regCenter" sharding-total-count="1" sharding-item-parameters="0=A" overwrite="true"/>
  15. </beans>