2012-01-06 08:55:05 -06:00
|
|
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
2013-05-23 11:12:49 -05:00
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
2013-05-29 14:49:43 -05:00
|
|
|
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
|
2012-01-06 08:55:05 -06:00
|
|
|
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
|
|
|
|
|
2014-08-18 15:11:25 -05:00
|
|
|
<bean id="acarsAirports" class="com.raytheon.uf.edex.plugin.acarssounding.tools.AirportsBean" depends-on="acarsSoundingPluginName" >
|
2012-01-06 08:55:05 -06:00
|
|
|
</bean>
|
2013-01-06 14:32:24 -06:00
|
|
|
|
|
|
|
<bean id="acarsPersistObs" class="com.raytheon.uf.edex.plugin.acarssounding.ACARSPersistObs" depends-on="acarsRegistered, acarsAirports" >
|
|
|
|
<constructor-arg ref="acarsAirports" />
|
|
|
|
</bean>
|
2012-01-06 08:55:05 -06:00
|
|
|
|
|
|
|
<bean id="acarsSounding" class="com.raytheon.uf.edex.plugin.acarssounding.ACARSSounding" depends-on="acarsAirports, acarsRegistered" >
|
|
|
|
<constructor-arg ref="acarsSoundingPluginName" />
|
|
|
|
<constructor-arg ref="acarsAirports" />
|
|
|
|
</bean>
|
|
|
|
|
|
|
|
<bean id="acarsSoundingSplitter" class="com.raytheon.uf.edex.plugin.acarssounding.ACARSSoundingSplitter" >
|
|
|
|
</bean>
|
|
|
|
|
|
|
|
<camelContext id="acarsSoundingSrv-camel"
|
|
|
|
xmlns="http://camel.apache.org/schema/spring"
|
2014-03-19 14:23:52 -05:00
|
|
|
errorHandlerRef="errorHandler">
|
2012-01-06 08:55:05 -06:00
|
|
|
<endpoint id="acarsSoundingEndpoint"/>
|
|
|
|
|
|
|
|
<endpoint id="scheduledSoundingCron" uri="clusteredquartz://acars/createSounding/?cron=${acarssounding.cron}"/>
|
|
|
|
|
|
|
|
<!-- Schedule sounding creation -->
|
|
|
|
<route id="scheduledSounding">
|
|
|
|
<!-- Set the minutes explicitly -->
|
|
|
|
<!-- Deployed time slots -->
|
|
|
|
<from uri="scheduledSoundingCron" />
|
|
|
|
|
|
|
|
<!-- Development time slots
|
|
|
|
<from uri="clusteredquartz://acars/createSounding/?cron=00+0,5,10,15,20,25,30,35,40,45,50,55+*+*+*+?" />
|
|
|
|
-->
|
2015-09-04 15:52:27 -05:00
|
|
|
<split streaming="true">
|
2012-01-06 08:55:05 -06:00
|
|
|
<method bean="acarsSoundingSplitter" method="getSeparator"/>
|
|
|
|
<doTry>
|
2015-09-04 15:52:27 -05:00
|
|
|
<pipeline>
|
2012-01-06 08:55:05 -06:00
|
|
|
<setHeader headerName="pluginName">
|
|
|
|
<constant>acarssounding</constant>
|
|
|
|
</setHeader>
|
|
|
|
<setHeader headerName="dequeueTime">
|
|
|
|
<method bean="acarsSounding" method="getQueueTime" />
|
|
|
|
</setHeader>
|
2015-09-08 14:06:29 -05:00
|
|
|
<to uri="jms-durable:queue:acarssounding" />
|
2015-09-04 15:52:27 -05:00
|
|
|
</pipeline>
|
|
|
|
<doCatch>
|
|
|
|
<exception>java.lang.Throwable</exception>
|
|
|
|
<to uri="log:acarssounding?level=ERROR"/>
|
|
|
|
</doCatch>
|
2012-01-06 08:55:05 -06:00
|
|
|
</doTry>
|
2015-09-04 15:52:27 -05:00
|
|
|
</split>
|
|
|
|
</route>
|
|
|
|
|
|
|
|
<route id="acarsSoundingProcessing">
|
2015-09-08 14:06:29 -05:00
|
|
|
<from uri="jms-durable:queue:acarssounding" />
|
2015-09-04 15:52:27 -05:00
|
|
|
<doTry>
|
|
|
|
<pipeline>
|
|
|
|
<bean ref="acarsSounding" method="processSounding" />
|
|
|
|
<to uri="direct-vm:indexAlert" />
|
|
|
|
</pipeline>
|
|
|
|
<doCatch>
|
|
|
|
<exception>java.lang.Throwable</exception>
|
|
|
|
<to uri="log:acarssounding?level=ERROR"/>
|
|
|
|
</doCatch>
|
|
|
|
</doTry>
|
2012-01-06 08:55:05 -06:00
|
|
|
</route>
|
|
|
|
|
2013-01-06 14:32:24 -06:00
|
|
|
<route id="acarsSoundingRoute">
|
2013-05-23 10:06:28 -05:00
|
|
|
<from uri="direct-vm:acarsSounding"/>
|
2013-01-06 14:32:24 -06:00
|
|
|
<bean ref="acarsPersistObs" method="process" />
|
|
|
|
</route>
|
2012-01-06 08:55:05 -06:00
|
|
|
</camelContext>
|
|
|
|
</beans>
|