job2.xml 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  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. <!-- 定义目标bean和bean中的方法 -->
  5. <bean id="SpringQtzJob" class="com.gyee.timer.EdosToOutJob" />
  6. <!-- ======================== wpjs ======================== -->
  7. <bean id="SpringQtzJobMethod1"
  8. class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
  9. <property name="targetObject">
  10. <ref bean="SpringQtzJob" />
  11. </property>
  12. <property name="targetMethod"> <!-- 要执行的方法名称 -->
  13. <value>toWpJsOutEdos</value>
  14. </property>
  15. <property name="concurrent" value="false" />
  16. </bean>
  17. <!-- ======================== wppower ======================== -->
  18. <bean id="SpringQtzJobMethod2"
  19. class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
  20. <property name="targetObject">
  21. <ref bean="SpringQtzJob" />
  22. </property>
  23. <property name="targetMethod"> <!-- 要执行的方法名称 -->
  24. <value>toWpPowerOutEdos</value>
  25. </property>
  26. <property name="concurrent" value="false" />
  27. </bean>
  28. <!-- ======================== Meter ======================== -->
  29. <bean id="SpringQtzJobMethod3"
  30. class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
  31. <property name="targetObject">
  32. <ref bean="SpringQtzJob" />
  33. </property>
  34. <property name="targetMethod"> <!-- 要执行的方法名称 -->
  35. <value>toMeterOutEdos</value>
  36. </property>
  37. <property name="concurrent" value="false" />
  38. </bean>
  39. <!-- ======================== etai ======================== -->
  40. <bean id="SpringQtzJobMethod4"
  41. class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
  42. <property name="targetObject">
  43. <ref bean="SpringQtzJob" />
  44. </property>
  45. <property name="targetMethod"> <!-- 要执行的方法名称 -->
  46. <value>toEtAiOutEdos</value>
  47. </property>
  48. <property name="concurrent" value="false" />
  49. </bean>
  50. <!-- ======================== etdi ======================== -->
  51. <bean id="SpringQtzJobMethod5"
  52. class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
  53. <property name="targetObject">
  54. <ref bean="SpringQtzJob" />
  55. </property>
  56. <property name="targetMethod"> <!-- 要执行的方法名称 -->
  57. <value>toEtDiOutEdos</value>
  58. </property>
  59. <property name="concurrent" value="false" />
  60. </bean>
  61. <!-- ======================== wtai ======================== -->
  62. <bean id="SpringQtzJobMethod6"
  63. class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
  64. <property name="targetObject">
  65. <ref bean="SpringQtzJob" />
  66. </property>
  67. <property name="targetMethod"> <!-- 要执行的方法名称 -->
  68. <value>toWtAiOutEdos</value>
  69. </property>
  70. <property name="concurrent" value="false" />
  71. </bean>
  72. <!-- ======================== wtaijs ======================== -->
  73. <bean id="SpringQtzJobMethod7"
  74. class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
  75. <property name="targetObject">
  76. <ref bean="SpringQtzJob" />
  77. </property>
  78. <property name="targetMethod"> <!-- 要执行的方法名称 -->
  79. <value>toWtAiJSOutEdos</value>
  80. </property>
  81. <property name="concurrent" value="false" />
  82. </bean>
  83. <!-- ======================== wtdi ======================== -->
  84. <bean id="SpringQtzJobMethod8"
  85. class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
  86. <property name="targetObject">
  87. <ref bean="SpringQtzJob" />
  88. </property>
  89. <property name="targetMethod"> <!-- 要执行的方法名称 -->
  90. <value>toWtDiOutEdos</value>
  91. </property>
  92. <property name="concurrent" value="false" />
  93. </bean>
  94. <!-- ======================== 调度触发器 ======================== -->
  95. <!-- ======================== wpjs ======================== -->
  96. <bean id="CronTriggerBean1" class="org.springframework.scheduling.quartz.CronTriggerBean">
  97. <property name="jobDetail" ref="SpringQtzJobMethod1"></property>
  98. <property name="cronExpression" value="0 0/1 * * * ?"></property>
  99. </bean>
  100. <!-- ======================== wppower ======================== -->
  101. <bean id="CronTriggerBean2" class="org.springframework.scheduling.quartz.CronTriggerBean">
  102. <property name="jobDetail" ref="SpringQtzJobMethod2"></property>
  103. <property name="cronExpression" value="0 0/15 * * * ?"></property>
  104. </bean>
  105. <!-- ======================== Meter ======================== -->
  106. <bean id="CronTriggerBean3" class="org.springframework.scheduling.quartz.CronTriggerBean">
  107. <property name="jobDetail" ref="SpringQtzJobMethod3"></property>
  108. <property name="cronExpression" value="0 0/15 * * * ?"></property>
  109. </bean>
  110. <!-- ======================== etai ======================== -->
  111. <bean id="CronTriggerBean4" class="org.springframework.scheduling.quartz.CronTriggerBean">
  112. <property name="jobDetail" ref="SpringQtzJobMethod4"></property>
  113. <property name="cronExpression" value="0 0/5 * * * ?"></property>
  114. </bean>
  115. <!-- ======================== etdi ======================== -->
  116. <bean id="CronTriggerBean5" class="org.springframework.scheduling.quartz.CronTriggerBean">
  117. <property name="jobDetail" ref="SpringQtzJobMethod5"></property>
  118. <property name="cronExpression" value="0 0/5 * * * ?"></property>
  119. </bean>
  120. <!-- ======================== wtai ======================== -->
  121. <bean id="CronTriggerBean6" class="org.springframework.scheduling.quartz.CronTriggerBean">
  122. <property name="jobDetail" ref="SpringQtzJobMethod6"></property>
  123. <property name="cronExpression" value="0 0/5 * * * ?"></property>
  124. </bean>
  125. <!-- ======================== wtaijs ======================== -->
  126. <bean id="CronTriggerBean7" class="org.springframework.scheduling.quartz.CronTriggerBean">
  127. <property name="jobDetail" ref="SpringQtzJobMethod7"></property>
  128. <property name="cronExpression" value="0 0/1 * * * ?"></property>
  129. </bean>
  130. <!-- ======================== wtdi ======================== -->
  131. <bean id="CronTriggerBean8" class="org.springframework.scheduling.quartz.CronTriggerBean">
  132. <property name="jobDetail" ref="SpringQtzJobMethod8"></property>
  133. <property name="cronExpression" value="0 0/10 * * * ?"></property>
  134. </bean>
  135. <!-- ======================== 调度工厂 ======================== -->
  136. <bean autowire="no"
  137. class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
  138. <property name="autoStartup" value="true" />
  139. <property name="triggers">
  140. <list>
  141. <ref local="CronTriggerBean1" />
  142. <ref local="CronTriggerBean2" />
  143. <ref local="CronTriggerBean3" />
  144. <ref local="CronTriggerBean4" />
  145. <ref local="CronTriggerBean5" />
  146. <ref local="CronTriggerBean6" />
  147. <ref local="CronTriggerBean7" />
  148. <ref local="CronTriggerBean8" />
  149. </list>
  150. </property>
  151. <property name="quartzProperties">
  152. <map>
  153. <entry key="org.quartz.threadPool.threadCount" value="10" />
  154. </map>
  155. </property>
  156. </bean>
  157. </beans>