Change-Id: I652db6f6f5bc0cab8fc9e85969bf57f1c2382da3 Former-commit-id: b06d51266d600e0b04f7fe10bc36e312a2275428
41 lines
1.7 KiB
XML
41 lines
1.7 KiB
XML
<beans
|
|
xmlns="http://www.springframework.org/schema/beans"
|
|
xmlns:amq="http://activemq.apache.org/schema/core"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="http://www.springframework.org/schema/beans
|
|
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
|
|
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
|
|
|
|
<bean id="statsPurge"
|
|
class="com.raytheon.uf.edex.stats.StatsPurge"
|
|
depends-on="statsRegister"/>
|
|
|
|
<bean id="aggregateManager" class="com.raytheon.uf.edex.stats.AggregateManager">
|
|
<constructor-arg value="${stats.period}"/>
|
|
</bean>
|
|
|
|
<bean id="edexStatsRegistered" factory-bean="clusteredCamelContextMgr"
|
|
factory-method="register" depends-on="persistCamelRegistered">
|
|
<constructor-arg ref="edexStats-camel"/>
|
|
</bean>
|
|
|
|
<camelContext id="edexStats-camel"
|
|
xmlns="http://camel.apache.org/schema/spring"
|
|
errorHandlerRef="errorHandler"
|
|
autoStartup="false">
|
|
<endpoint id="statsScanTimer" uri="timer://scanStats?period=${stats.scanInterval}m"/>
|
|
|
|
<route id="statsTableScan">
|
|
<from ref="statsScanTimer" />
|
|
<doTry>
|
|
<bean ref="statsPurge" method="purgeAggregates"/>
|
|
<bean ref="aggregateManager" method="scan"/>
|
|
<doCatch>
|
|
<exception>java.lang.Throwable</exception>
|
|
<to uri="log:stats?level=ERROR&showBody=false&showCaughtException=true&showStackTrace=true"/>
|
|
</doCatch>
|
|
</doTry>
|
|
</route>
|
|
</camelContext>
|
|
|
|
</beans>
|