awips2/edexOsgi/com.raytheon.uf.edex.purgesrv/res/spring/purge-logs.xml
Steve Harris 70e4ff30a6 13.5.1-4 baseline
Former-commit-id: d18b403b332dff67d1c85d4317bbceda337d1b41
2013-06-28 09:46:25 -04:00

25 lines
No EOL
987 B
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="purgeLogs" class="com.raytheon.uf.edex.purgesrv.PurgeLogs">
<property name="logDirectory" value="${edex.home}/logs" />
</bean>
<camelContext id="purgeLogsContext"
xmlns="http://camel.apache.org/schema/spring" errorHandlerRef="errorHandler">
<endpoint id="purgeLogsCron"
uri="quartz://purge/purgeLogScheduled/?cron=${purge.logs.cron}" />
<!-- schedule the timer to purge log directories -->
<route id="purgeLogScheduled">
<from ref="purgeLogsCron" />
<bean ref="purgeLogs" method="purge" />
</route>
</camelContext>
</beans>