123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
- <beans>
- <!-- 定时任务(生成统计分析数据) -->
- <bean id="quartzClock" class="org.springframework.scheduling.quartz.JobDetailBean">
- <property name="jobClass">
- <value>com.hcks.cmfds.timer.GenerateAnalysisJob</value>
- </property>
- <property name="jobDataAsMap">
- <map>
- <entry key="windTurbineAnalysisService" value-ref="windTurbineAnalysisService" />
- <entry key="analysisService" value-ref="analysisService" />
- <entry key="analysisBranchCompanyService" value-ref="analysisBranchCompanyService" />
- </map>
- </property>
- </bean>
-
- <bean id="qtjob" class="org.springframework.scheduling.quartz.JobDetailBean">
- <property name="jobClass">
- <value>com.hcks.cmfds.timer.SSAnticipationJob</value>
- </property>
- <property name="jobDataAsMap">
- <map>
- <entry key="fjqtService" value-ref="fjqtService" />
- </map>
- </property>
- </bean>
- <!-- 风机离线记录补录损失电量 -->
- <bean id="statusLossPowerJobBean" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
- <property name="targetObject" ref="statusLossPowerJob"></property>
- <property name="targetMethod" value="run"></property>
- <property name="concurrent" value="false"></property>
- </bean>
- <bean id="mailJob" class="org.springframework.scheduling.quartz.JobDetailBean">
- <property name="jobClass">
- <value>com.hcks.cmfds.timer.mailWarningJob</value>
- </property>
- <property name="jobDataAsMap">
- <map>
- <entry key="fjqtService" value-ref="fjqtService" />
- </map>
- </property>
- </bean>
-
- <!-- 这种配置可以精确几点执行定时任务 -->
- <bean id="cronQuartzClock" class="org.springframework.scheduling.quartz.CronTriggerBean">
- <property name="jobDetail" ref="quartzClock" />
- <property name="cronExpression">
- <value>0 20 0 ? * *</value>
- </property>
- </bean>
- <!-- 这种配置可以精确几点执行定时任务 -->
- <bean id="qtjobcronQuartzClock" class="org.springframework.scheduling.quartz.CronTriggerBean">
- <property name="jobDetail" ref="qtjob" />
- <property name="cronExpression">
- <value>0 0 2 * * ?</value>
- </property>
- </bean>
- <bean id="mailcronQuartzClock" class="org.springframework.scheduling.quartz.CronTriggerBean">
- <property name="jobDetail" ref="mailJob" />
- <property name="cronExpression">
- <value>0 0/20 * * * ?</value>
- <!-- <value>0/30 * * * * ?</value> -->
- </property>
- </bean>
- <bean id="statusLossPowerTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
- <property name="jobDetail" ref="statusLossPowerJobBean" />
- <property name="cronExpression">
- <value>0/2 * * * * ?</value>
- </property>
- </bean>
- <!--定时写入风机限电 -->
- <bean id="restrictwt" class="org.springframework.scheduling.quartz.CronTriggerBean">
- <property name="jobDetail" ref="reswtjob" />
- <property name="cronExpression">
- <value>0/60 * * ? * *</value>
- </property>
- </bean>
- <bean id="reswtjob" class="org.springframework.scheduling.quartz.JobDetailBean">
- <property name="jobClass">
- <value>com.hcks.cmfds.timer.Sendrestrictpowerjob</value>
- </property>
- <property name="jobDataAsMap">
- <map>
- <entry key="sendrestrictpowerService" value-ref="sendrestrictpowerService" />
- </map>
- </property>
- </bean>
-
- <!-- 受累零点转存调度器 -->
- <bean id="reportInvolvementJobDeatil" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
- <property name="targetObject" ref="reportInvolvementJob"></property>
- <property name="targetMethod" value="run"></property>
- <property name="concurrent" value="false"></property>
- </bean>
- <bean id="reportInvolvementJobTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
- <property name="jobDetail" ref="reportInvolvementJobDeatil" />
- <property name="cronExpression">
- <value>0 1 0 * * ?</value>
- </property>
- </bean>
- <!--启动定时任务 -->
- <bean class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
- <property name="triggers">
- <list>
- <ref bean="cronQuartzClock" />
- <!-- <ref bean="qtjobcronQuartzClock" /> -->
- <!-- edos缓存数据异常判断 -->
- <ref bean="mailcronQuartzClock" />
- <!-- <ref bean="restrictwt" />
-
- 风机离线记录补录损失电量
- <ref bean="statusLossPowerTrigger" />
- 受累零点转存调度器
- <ref bean="reportInvolvementJobTrigger"/>-->
- </list>
- </property>
- </bean>
- </beans>
|