25 lines
No EOL
987 B
XML
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> |