nzwms/src/main/java/adapterContext.xml

149 lines
6.0 KiB
XML
Raw Normal View History

2024-08-03 18:05:53 +08:00
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC
"-//SPRING//DTD BEAN//EN"
"http://www.springframework.org/dtd/spring-beans.dtd">
<!--
Copyright (c) 2001-2005 dev Information Technology Co.,Ltd. All Rights Reserved.
This software is the confidential and proprietary information of dev
Information Technology Co.,Ltd. ("Confidential Information"). You shall not
disclose such Confidential Information and shall use it only in
accordance with the terms of the license agreement you entered into
with dev.
dev MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE, OR NON-INFRINGEMENT. dev SHALL NOT BE LIABLE FOR ANY DAMAGES
SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
THIS SOFTWARE OR ITS DERIVATIVES.
-->
<!-- $Id: adapterContext.xml,v 1.2 2010/06/01 09:14:16 peng.lei Exp $ -->
<beans>
<!-- 自动调度任务清单 -->
<bean class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
<property name="triggers">
<list>
<!-- <ref bean="autoCGRKTrigger"/>
<ref bean="autoPLGDTrigger"/>
<ref bean="autoAutolightingUpTrigger"/>
<ref bean="autoAutoCloseLighteTrigger"/>
-->
</list>
</property>
</bean>
<!-- 定时调度计算每日进出存数据 -->
<bean id="daemonStorageDailyComputeJob"
class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject">
<ref bean="inventoryManager"/>
</property>
<property name="targetMethod">
<value>compute</value>
</property>
</bean>
<bean id="daemonStorageDailyComputeCronTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
<property name="jobDetail">
<ref local="daemonStorageDailyComputeJob"/>
</property>
<property name="cronExpression">
<value>0 00 1 * * ?</value>
</property>
</bean>
<!-- 定时调度计算库存积数 -->
<bean id="inventoryCountComputeJob"
class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject">
<ref bean="inventoryCountManager"/>
</property>
<property name="targetMethod">
<value>countInventoty</value>
</property>
</bean>
<bean id="inventoryCountCronTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
<property name="jobDetail">
<ref local="inventoryCountComputeJob"/>
</property>
<property name="cronExpression">
<value>00 00 23 * * ?</value>
</property>
</bean>
<!--定时发送READY状态的log消息-->
<bean id="batchSendLogsTrigger"
class="org.springframework.scheduling.quartz.SimpleTriggerBean">
<property name="jobDetail" ref="batchSendLogsJob"/>
<property name="startDelay" value="10000"/>
<property name="repeatInterval" value="1000"/>
<property name="repeatCount" value="0"/>
</bean>
<bean id="batchSendLogsJob"
class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject" ref="adapterLauncher"/>
<property name="targetMethod" value="batchSendLogs"/>
</bean>
<!-- 定时处理接收到的log消息 -->
<bean id="dealReceivedLogsTrigger" class="org.springframework.scheduling.quartz.SimpleTriggerBean">
<property name="jobDetail" ref="dealReceivedLogsJob"/>
<property name="startDelay" value="10000"/>
<property name="repeatInterval" value="1000"/>
<property name="repeatCount" value="0"/>
</bean>
<bean id="dealReceivedLogsJob" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject" ref="adapterLauncher"/>
<property name="targetMethod" value="dealReceivedLogs"/>
</bean>
<!-- 10分中自动接收采购入库 -->
<bean id="autoCGRKTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
<property name="jobDetail" ref="getautoCGRKT"/>
<property name="cronExpression">
<value> 0 0/10 * * * ? </value>
</property>
</bean>
<bean id="getautoCGRKT" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject" ref="itemJobLauncher"/>
<property name="targetMethod" value="DefaultAutoCGRK"/>
</bean>
<!-- 10分中自动接收配料工单 -->
<bean id="autoPLGDTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
<property name="jobDetail" ref="getautoPLGD"/>
<property name="cronExpression">
<value> 0 0/10 * * * ? </value>
</property>
</bean>
<bean id="getautoPLGD" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject" ref="itemJobLauncher"/>
<property name="targetMethod" value="DefaultAutoPLGD"/>
</bean>
<!-- 亮灯-->
<bean id="autoAutolightingUpTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
<property name="jobDetail" ref="getAutolightingUp"/>
<property name="cronExpression">
<value> 0 30 08 * * ? </value>
</property>
</bean>
<bean id="getAutolightingUp" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject" ref="itemJobLauncher"/>
<property name="targetMethod" value="DefaultAutolightingUp"/>
</bean>
<!-- 灭灯-->
<bean id="autoAutoCloseLighteTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
<property name="jobDetail" ref="getAutoCloseLighte"/>
<property name="cronExpression">
<value> 0 0/10 * * * ? </value>
</property>
</bean>
<bean id="getAutoCloseLighte" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject" ref="itemJobLauncher"/>
<property name="targetMethod" value="DefaultAutoCloseLighte"/>
</bean>
</beans>