`

ssh定时器

    博客分类:
  • SSH
 
阅读更多
<bean id="mainExecutor" class="com.gamemag.thread.syn.impl.MainExecutor">
		<!-- 元宝消耗方向统计 -->
		<property name="checkRun1">
		   	<list>
		   		<value>${checkRun1.start}</value><!-- 是否执行,true 执行 , false 不执行 -->
		   		<value>${checkRun1.start_time}</value><!-- 开始时间 -->
		   		<value>${checkRun1.end_time}</value><!-- 结束时间 -->
		   	</list>
	  </property>
</bean>
 
<!-- 元宝消耗方向统计 -->
	<bean id="ingotUse" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
	     <property name="targetObject">
	      	<ref bean="mainExecutor"/>
	     </property>
	     <property name="targetMethod">
	      	<value>ingotUse</value>
	     </property> 
	</bean>
	
	<bean id="ingotUseTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
	   <property name="jobDetail">
	     <ref bean="ingotUse"/>
	   </property>
	   <property name="cronExpression">
	    <value>${check.run1}</value>
	   </property>
	</bean>
	<bean id="ingotUsedoScheduler" class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
	   <property name="triggers">
	     <list>
	      <ref local="ingotUseTrigger"/>  
	     </list>
	   </property>
	   <property name="autoStartup" value="${checkRun1.auto_startup}"/>
	</bean>
 

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics