Change-Id: I2c52a222746df7e7a0c8f91682268e25e97ae0ce Former-commit-id:ec880b7923
[formerlyed9cb5f8f6
] [formerly6640a65a51
[formerly e9e7f34e87f18120232ed5cc8e00da6cb8bda5d5]] Former-commit-id:6640a65a51
Former-commit-id:c4496475a6
52 lines
2.2 KiB
XML
52 lines
2.2 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}"/>
|
|
<property name="aggregateDao" ref="aggregateRecordDao"/>
|
|
<property name="statsRecordDao" ref="statsDao"/>
|
|
<property name="jaxbManager" ref="statsGroupingColumnJaxbManager"/>
|
|
</bean>
|
|
|
|
<bean id="edexStatsRegistered" factory-bean="clusteredCamelContextMgr"
|
|
factory-method="register" depends-on="persistCamelRegistered">
|
|
<constructor-arg ref="edexStats-camel"/>
|
|
</bean>
|
|
|
|
<bean id="aggregateRecordDao" class="com.raytheon.uf.edex.stats.dao.AggregateRecordDao">
|
|
<property name="sessionFactory" ref="metadataSessionFactory"/>
|
|
</bean>
|
|
|
|
<bean id="statsGroupingColumnJaxbManager" class="com.raytheon.uf.common.serialization.JAXBManager">
|
|
<constructor-arg value="com.raytheon.uf.common.stats.StatsGroupingColumn"/>
|
|
</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>
|