awips2/edexOsgi/com.raytheon.uf.edex.maintenance/res/spring/maintenance-ingest.xml
Richard Peter 55b226e104 Issue #2499: Update Wes2Bridge Configuration and logging.
Change-Id: I95a530bc8b647c58cff36f449d55bff39943fbc9

Former-commit-id: 9449bc5f562fd638e0a02ea6c2dc4c6828e73561
2013-11-05 15:08:23 -06:00

29 lines
1.1 KiB
XML

<beans xmlns="http://www.springframework.org/schema/beans"
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-3.1.xsd
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
<bean id="dataStoreRepacker" class="com.raytheon.uf.edex.maintenance.DataStoreRepacker">
<!-- the compression to repack at, valid values are NONE or LZF -->
<constructor-arg value="LZF" />
</bean>
<camelContext id="maintenanceContext" xmlns="http://camel.apache.org/schema/spring"
errorHandlerRef="errorHandler">
<endpoint id="repackCron" uri="clusteredquartz://repack/repackScheduled/?cron=${repack.cron}"/>
<!-- Repack on Scheduled timer -->
<route id="repackScheduled">
<from uri="repackCron" />
<doTry>
<bean ref="dataStoreRepacker" method="repack" />
<doCatch>
<exception>java.lang.Throwable</exception>
<to
uri="log:repack?level=ERROR" />
</doCatch>
</doTry>
</route>
</camelContext>
</beans>