job.xml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
  3. <beans>
  4. <!--************************************************天气预报未来1个月***************************************************************** -->
  5. <bean name="jobstore7" class="org.springframework.scheduling.quartz.JobDetailBean">
  6. <property name="jobClass">
  7. <!-- <value>com.gyee.timer.YjFromDataJobAppend</value> -->
  8. <value>com.gyee.timer.ForecastwindspeedJob</value>
  9. </property>
  10. <property name="jobDataAsMap">
  11. <map>
  12. <entry key="weatherfdService" value-ref="weatherfdService" />
  13. <entry key="forecastwindspeedService" value-ref="forecastwindspeedService" />
  14. </map>
  15. </property>
  16. </bean>
  17. <bean id="cron7" class="org.springframework.scheduling.quartz.CronTriggerBean">
  18. <property name="jobDetail">
  19. <ref bean="jobstore7" />
  20. </property>
  21. <property name="startDelay" value="1000" />
  22. <property name="cronExpression">
  23. <!--<value>0 15 0/1 * * ?</value> -->
  24. <value>0 15 0/1 * * ?</value>
  25. </property>
  26. </bean>
  27. <!--************************************************天气预报未来1个月***************************************************************** -->
  28. <!--************************************************天气预报未来1个月修正***************************************************************** -->
  29. <bean name="jobstore8" class="org.springframework.scheduling.quartz.JobDetailBean">
  30. <property name="jobClass">
  31. <!-- <value>com.gyee.timer.YjFromDataJobAppend</value> -->
  32. <value>com.gyee.timer.ForecastwindspeedamendedJob</value>
  33. </property>
  34. <property name="jobDataAsMap">
  35. <map>
  36. <entry key="weatherfdService" value-ref="weatherfdService" />
  37. <entry key="forecastwindspeedamendedService" value-ref="forecastwindspeedamendedService" />
  38. </map>
  39. </property>
  40. </bean>
  41. <bean id="cron8" class="org.springframework.scheduling.quartz.CronTriggerBean">
  42. <property name="jobDetail">
  43. <ref bean="jobstore8" />
  44. </property>
  45. <property name="startDelay" value="1000" />
  46. <property name="cronExpression">
  47. <!--<value>0 15 0/1 * * ?</value> -->
  48. <value>0 15 0/1 * * ?</value>
  49. </property>
  50. </bean>
  51. <!--************************************************天气预报未来1个月修正***************************************************************** -->
  52. <!--************************************************天气预报未来1个月拟合***************************************************************** -->
  53. <bean name="jobstore9" class="org.springframework.scheduling.quartz.JobDetailBean">
  54. <property name="jobClass">
  55. <!-- <value>com.gyee.timer.YjFromDataJobAppend</value> -->
  56. <value>com.gyee.timer.ForecastwindspeedfittingJob</value>
  57. </property>
  58. <property name="jobDataAsMap">
  59. <map>
  60. <entry key="weatherfdService" value-ref="weatherfdService" />
  61. <entry key="forecastwindspeedfittingService" value-ref="forecastwindspeedfittingService" />
  62. <entry key="forecastwindspeedfittingbywtService" value-ref="forecastwindspeedfittingbywtService" />
  63. </map>
  64. </property>
  65. </bean>
  66. <bean id="cron9" class="org.springframework.scheduling.quartz.CronTriggerBean">
  67. <property name="jobDetail">
  68. <ref bean="jobstore9" />
  69. </property>
  70. <property name="startDelay" value="1000" />
  71. <property name="cronExpression">
  72. <value>0 55 11 * * ?</value>
  73. <!-- <value>0 51 10 * * ?</value> -->
  74. </property>
  75. </bean>
  76. <!--************************************************天气预报未来1个月拟合***************************************************************** -->
  77. <!--************************************************天气预报未来小时月拟合***************************************************************** -->
  78. <bean name="jobstore10" class="org.springframework.scheduling.quartz.JobDetailBean">
  79. <property name="jobClass">
  80. <!-- <value>com.gyee.timer.YjFromDataJobAppend</value> -->
  81. <value>com.gyee.timer.ForecastwindspeedfittinghourJob</value>
  82. </property>
  83. <property name="jobDataAsMap">
  84. <map>
  85. <entry key="weatherfhService" value-ref="weatherfhService" />
  86. <entry key="forecastwindspeedfittinghourService" value-ref="forecastwindspeedfittinghourService" />
  87. <entry key="forecastwindspeedfittingwthourService" value-ref="forecastwindspeedfittingwthourService" />
  88. </map>
  89. </property>
  90. </bean>
  91. <bean id="cron10" class="org.springframework.scheduling.quartz.CronTriggerBean">
  92. <property name="jobDetail">
  93. <ref bean="jobstore10" />
  94. </property>
  95. <property name="startDelay" value="1000" />
  96. <property name="cronExpression">
  97. <value>0 0 0/1 * * ?</value>
  98. <!-- <value>0 51 10 * * ?</value> -->
  99. </property>
  100. </bean>
  101. <!--************************************************天气预报未来小时月拟合***************************************************************** -->
  102. <bean autowire="no"
  103. class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
  104. <property name="autoStartup" value="true" />
  105. <property name="triggers">
  106. <list>
  107. <ref local="cron7" />
  108. <ref local="cron8" />
  109. <ref local="cron9" />
  110. <ref local="cron10" />
  111. </list>
  112. </property>
  113. <property name="quartzProperties">
  114. <map>
  115. <entry key="org.quartz.threadPool.threadCount" value="10" />
  116. </map>
  117. </property>
  118. </bean>
  119. </beans>