123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
- <beans>
-
- <!-- 定义目标bean和bean中的方法 -->
- <bean id="SpringQtzJob" class="com.gyee.timer.EdosToOutJob" />
- <!-- ======================== wpjs ======================== -->
- <bean id="SpringQtzJobMethod1"
- class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
- <property name="targetObject">
- <ref bean="SpringQtzJob" />
- </property>
- <property name="targetMethod"> <!-- 要执行的方法名称 -->
- <value>toWpJsOutEdos</value>
- </property>
- <property name="concurrent" value="false" />
- </bean>
- <!-- ======================== wppower ======================== -->
- <bean id="SpringQtzJobMethod2"
- class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
- <property name="targetObject">
- <ref bean="SpringQtzJob" />
- </property>
- <property name="targetMethod"> <!-- 要执行的方法名称 -->
- <value>toWpPowerOutEdos</value>
- </property>
- <property name="concurrent" value="false" />
- </bean>
- <!-- ======================== Meter ======================== -->
- <bean id="SpringQtzJobMethod3"
- class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
- <property name="targetObject">
- <ref bean="SpringQtzJob" />
- </property>
- <property name="targetMethod"> <!-- 要执行的方法名称 -->
- <value>toMeterOutEdos</value>
- </property>
- <property name="concurrent" value="false" />
- </bean>
- <!-- ======================== etai ======================== -->
- <bean id="SpringQtzJobMethod4"
- class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
- <property name="targetObject">
- <ref bean="SpringQtzJob" />
- </property>
- <property name="targetMethod"> <!-- 要执行的方法名称 -->
- <value>toEtAiOutEdos</value>
- </property>
- <property name="concurrent" value="false" />
- </bean>
- <!-- ======================== etdi ======================== -->
- <bean id="SpringQtzJobMethod5"
- class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
- <property name="targetObject">
- <ref bean="SpringQtzJob" />
- </property>
- <property name="targetMethod"> <!-- 要执行的方法名称 -->
- <value>toEtDiOutEdos</value>
- </property>
- <property name="concurrent" value="false" />
- </bean>
- <!-- ======================== wtai ======================== -->
- <bean id="SpringQtzJobMethod6"
- class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
- <property name="targetObject">
- <ref bean="SpringQtzJob" />
- </property>
- <property name="targetMethod"> <!-- 要执行的方法名称 -->
- <value>toWtAiOutEdos</value>
- </property>
- <property name="concurrent" value="false" />
- </bean>
- <!-- ======================== wtaijs ======================== -->
- <bean id="SpringQtzJobMethod7"
- class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
- <property name="targetObject">
- <ref bean="SpringQtzJob" />
- </property>
- <property name="targetMethod"> <!-- 要执行的方法名称 -->
- <value>toWtAiJSOutEdos</value>
- </property>
- <property name="concurrent" value="false" />
- </bean>
- <!-- ======================== wtdi ======================== -->
- <bean id="SpringQtzJobMethod8"
- class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
- <property name="targetObject">
- <ref bean="SpringQtzJob" />
- </property>
- <property name="targetMethod"> <!-- 要执行的方法名称 -->
- <value>toWtDiOutEdos</value>
- </property>
- <property name="concurrent" value="false" />
- </bean>
-
- <!-- ======================== 调度触发器 ======================== -->
- <!-- ======================== wpjs ======================== -->
- <bean id="CronTriggerBean1" class="org.springframework.scheduling.quartz.CronTriggerBean">
- <property name="jobDetail" ref="SpringQtzJobMethod1"></property>
- <property name="cronExpression" value="0 0/1 * * * ?"></property>
- </bean>
- <!-- ======================== wppower ======================== -->
- <bean id="CronTriggerBean2" class="org.springframework.scheduling.quartz.CronTriggerBean">
- <property name="jobDetail" ref="SpringQtzJobMethod2"></property>
- <property name="cronExpression" value="0 0/15 * * * ?"></property>
- </bean>
- <!-- ======================== Meter ======================== -->
- <bean id="CronTriggerBean3" class="org.springframework.scheduling.quartz.CronTriggerBean">
- <property name="jobDetail" ref="SpringQtzJobMethod3"></property>
- <property name="cronExpression" value="0 0/15 * * * ?"></property>
- </bean>
- <!-- ======================== etai ======================== -->
- <bean id="CronTriggerBean4" class="org.springframework.scheduling.quartz.CronTriggerBean">
- <property name="jobDetail" ref="SpringQtzJobMethod4"></property>
- <property name="cronExpression" value="0 0/5 * * * ?"></property>
- </bean>
- <!-- ======================== etdi ======================== -->
- <bean id="CronTriggerBean5" class="org.springframework.scheduling.quartz.CronTriggerBean">
- <property name="jobDetail" ref="SpringQtzJobMethod5"></property>
- <property name="cronExpression" value="0 0/5 * * * ?"></property>
- </bean>
- <!-- ======================== wtai ======================== -->
- <bean id="CronTriggerBean6" class="org.springframework.scheduling.quartz.CronTriggerBean">
- <property name="jobDetail" ref="SpringQtzJobMethod6"></property>
- <property name="cronExpression" value="0 0/5 * * * ?"></property>
- </bean>
- <!-- ======================== wtaijs ======================== -->
- <bean id="CronTriggerBean7" class="org.springframework.scheduling.quartz.CronTriggerBean">
- <property name="jobDetail" ref="SpringQtzJobMethod7"></property>
- <property name="cronExpression" value="0 0/1 * * * ?"></property>
- </bean>
- <!-- ======================== wtdi ======================== -->
- <bean id="CronTriggerBean8" class="org.springframework.scheduling.quartz.CronTriggerBean">
- <property name="jobDetail" ref="SpringQtzJobMethod8"></property>
- <property name="cronExpression" value="0 0/10 * * * ?"></property>
- </bean>
-
-
- <!-- ======================== 调度工厂 ======================== -->
- <bean autowire="no"
- class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
- <property name="autoStartup" value="true" />
- <property name="triggers">
- <list>
-
- <ref local="CronTriggerBean1" />
- <ref local="CronTriggerBean2" />
- <ref local="CronTriggerBean3" />
- <ref local="CronTriggerBean4" />
- <ref local="CronTriggerBean5" />
- <ref local="CronTriggerBean6" />
- <ref local="CronTriggerBean7" />
- <ref local="CronTriggerBean8" />
-
- </list>
- </property>
- <property name="quartzProperties">
- <map>
- <entry key="org.quartz.threadPool.threadCount" value="10" />
- </map>
- </property>
- </bean>
- </beans>
|