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">
|
2013-06-28 09:30:03 -05:00
|
|
|
|
|
|
|
<bean id="smartInitQueue" class="com.raytheon.edex.plugin.gfe.smartinit.SmartInitQueue" factory-method="createQueue"/>
|
|
|
|
<bean id="smartInitThreadPool" class="com.raytheon.uf.edex.esb.camel.spring.JmsThreadPoolTaskExecutor">
|
2014-03-06 08:33:22 -06:00
|
|
|
<property name="corePoolSize" value="${smartinit.threads}" />
|
|
|
|
<property name="maxPoolSize" value="${smartinit.threads}" />
|
2013-06-28 09:30:03 -05:00
|
|
|
</bean>
|
|
|
|
<bean id="smartInitSrvCfg" class="com.raytheon.edex.plugin.gfe.smartinit.SmartInitSrvConfig">
|
|
|
|
<property name="executor" ref="smartInitThreadPool"/>
|
|
|
|
<property name="threads" value="${smartinit.threads}"/>
|
|
|
|
<property name="pendingInitMinTimeMillis" value="120000"/>
|
|
|
|
<property name="runningInitTimeOutMillis" value="600000"/>
|
|
|
|
<property name="threadSleepInterval" value="30000"/>
|
|
|
|
</bean>
|
|
|
|
|
|
|
|
<bean depends-on="smartInitQueue" id="gfeSitesActiveIngest" factory-bean="siteAwareRegistry" factory-method="register">
|
|
|
|
<constructor-arg ref="gfeSiteActivation"/>
|
|
|
|
</bean>
|
|
|
|
|
|
|
|
<bean depends-on="gfeDbRegistered, gfeSitesActiveIngest" id="smartInitSrv" class="com.raytheon.edex.plugin.gfe.smartinit.SmartInitSrv">
|
|
|
|
<constructor-arg ref="smartInitSrvCfg"/>
|
|
|
|
</bean>
|
|
|
|
|
2014-06-13 13:21:19 -04:00
|
|
|
<bean id="spcWatch" class="com.raytheon.edex.plugin.gfe.watch.SPCWatchSrv" />
|
|
|
|
<bean id="tpcWatch" class="com.raytheon.edex.plugin.gfe.watch.TPCWatchSrv" />
|
|
|
|
<bean id="wclWatch" class="com.raytheon.edex.plugin.gfe.watch.WCLWatchSrv" />
|
2013-06-28 09:30:03 -05:00
|
|
|
|
|
|
|
<bean id="vtecChangeListener" class="com.raytheon.edex.plugin.gfe.server.notify.VTECTableChangeListener"/>
|
|
|
|
|
|
|
|
<camelContext id="gfe-camel-spring" xmlns="http://camel.apache.org/schema/spring" errorHandlerRef="errorHandler">
|
|
|
|
<route id="SPCWatch">
|
2014-01-29 11:52:43 -06:00
|
|
|
<from uri="vm:gfe.spcWatch"/>
|
2012-01-06 08:55:05 -06:00
|
|
|
<doTry>
|
2014-06-13 13:21:19 -04:00
|
|
|
<bean ref="spcWatch" method="handleWatch" />
|
2012-01-06 08:55:05 -06:00
|
|
|
<doCatch>
|
|
|
|
<exception>java.lang.Throwable</exception>
|
2013-06-28 09:30:03 -05:00
|
|
|
<to
|
|
|
|
uri="log:gfeWatch?level=ERROR"/>
|
2012-01-06 08:55:05 -06:00
|
|
|
</doCatch>
|
|
|
|
</doTry>
|
2013-06-28 09:30:03 -05:00
|
|
|
</route>
|
|
|
|
|
|
|
|
<route id="TPCWatch">
|
2014-01-29 11:52:43 -06:00
|
|
|
<from uri="vm:gfe.tpcWatch"/>
|
2012-01-06 08:55:05 -06:00
|
|
|
<doTry>
|
2014-06-13 13:21:19 -04:00
|
|
|
<bean ref="tpcWatch" method="handleWatch" />
|
2012-01-06 08:55:05 -06:00
|
|
|
<doCatch>
|
|
|
|
<exception>java.lang.Throwable</exception>
|
2013-06-28 09:30:03 -05:00
|
|
|
<to
|
|
|
|
uri="log:gfeWatch?level=ERROR"/>
|
2012-01-06 08:55:05 -06:00
|
|
|
</doCatch>
|
|
|
|
</doTry>
|
2012-06-08 13:20:42 -05:00
|
|
|
</route>
|
|
|
|
|
2013-06-28 09:30:03 -05:00
|
|
|
<route id="WCLWatch">
|
|
|
|
<from uri="direct-vm:wclWatch"/>
|
2014-01-29 11:52:43 -06:00
|
|
|
<doTry>
|
|
|
|
<bean ref="wclWatch" method="handleWclWatch"/>
|
|
|
|
<doCatch>
|
|
|
|
<exception>java.lang.Throwable</exception>
|
|
|
|
<to
|
|
|
|
uri="log:gfeWatch?level=ERROR"/>
|
|
|
|
</doCatch>
|
|
|
|
</doTry>
|
2013-06-28 09:30:03 -05:00
|
|
|
</route>
|
|
|
|
|
|
|
|
<route id="smartInitTrigger">
|
|
|
|
<from uri="timer://smartInitTimer?fixedRate=true&period=30000"/>
|
|
|
|
<bean ref="smartInitQueue" method="fireSmartInit"/>
|
|
|
|
</route>
|
|
|
|
|
2013-01-23 11:18:44 -05:00
|
|
|
<route id="gfeIngestNotification">
|
2013-11-19 16:58:45 -06:00
|
|
|
<!-- Data from plugin notification -->
|
2013-06-28 09:30:03 -05:00
|
|
|
<from
|
2013-09-26 14:14:15 -05:00
|
|
|
uri="jms-durable:queue:gfeDataURINotification"/>
|
2013-06-28 09:30:03 -05:00
|
|
|
<doTry>
|
|
|
|
<bean ref="serializationUtil" method="transformFromThrift"/>
|
|
|
|
<bean ref="ifpServer" method="filterDataURINotifications"/>
|
|
|
|
|
|
|
|
<doCatch>
|
|
|
|
<exception>java.lang.Throwable</exception>
|
|
|
|
<to
|
|
|
|
uri="log:ifpServer?level=ERROR"/>
|
|
|
|
</doCatch>
|
|
|
|
</doTry>
|
|
|
|
</route>
|
|
|
|
|
|
|
|
<route id="ifpServerPurgeNotification">
|
|
|
|
<from uri="jms-generic:queue:gfePurgeNotification"/>
|
|
|
|
<doTry>
|
|
|
|
<bean ref="ifpServer" method="pluginPurged"/>
|
|
|
|
<doCatch>
|
|
|
|
<exception>java.lang.Throwable</exception>
|
|
|
|
<to
|
|
|
|
uri="log:ifpServer?level=ERROR"/>
|
|
|
|
</doCatch>
|
|
|
|
</doTry>
|
|
|
|
</route>
|
|
|
|
|
|
|
|
</camelContext>
|
|
|
|
|
|
|
|
<camelContext id="clusteredGfeIngestRoutes" xmlns="http://camel.apache.org/schema/spring"
|
|
|
|
errorHandlerRef="errorHandler" autoStartup="false">
|
|
|
|
|
|
|
|
<!-- Smart Init Routes -->
|
|
|
|
<!-- main route now handled through the gfeIngestNotification -->
|
|
|
|
<route id="manualSmartInit">
|
2014-03-06 08:33:22 -06:00
|
|
|
<from uri="jms-durable:queue:manualSmartInit?threadName=smartInitManual" />
|
2012-06-08 13:20:42 -05:00
|
|
|
<doTry>
|
2013-06-28 09:30:03 -05:00
|
|
|
<bean ref="smartInitQueue" method="addManualInit"/>
|
|
|
|
<doCatch>
|
|
|
|
<exception>java.lang.Throwable</exception>
|
|
|
|
<to
|
|
|
|
uri="log:smartinit?level=ERROR"/>
|
|
|
|
</doCatch>
|
|
|
|
</doTry>
|
|
|
|
</route>
|
2012-06-08 13:20:42 -05:00
|
|
|
|
2013-06-28 09:30:03 -05:00
|
|
|
<route id="gfeVtecChangeNotification">
|
2014-03-06 08:33:22 -06:00
|
|
|
<from uri="jms-generic:topic:edex.alerts.vtec?threadName=gfe-edex.alerts.vtec"/>
|
2013-06-28 09:30:03 -05:00
|
|
|
<doTry>
|
|
|
|
<bean ref="serializationUtil" method="transformFromThrift"/>
|
|
|
|
<bean ref="vtecChangeListener" method="handleNotification"/>
|
2012-06-08 13:20:42 -05:00
|
|
|
<doCatch>
|
|
|
|
<exception>java.lang.Throwable</exception>
|
2013-06-28 09:30:03 -05:00
|
|
|
<to
|
|
|
|
uri="log:vtecChangeListener?level=ERROR"/>
|
2012-06-08 13:20:42 -05:00
|
|
|
</doCatch>
|
|
|
|
</doTry>
|
|
|
|
</route>
|
2012-01-06 08:55:05 -06:00
|
|
|
|
2014-06-25 19:12:51 +00:00
|
|
|
<!-- Convert the topic into a queue so only one consumer gets each message and we still have competing consumers. -->
|
|
|
|
<route id="gfePurgeNotificationQueueRoute">
|
|
|
|
<from uri="jms-generic:topic:pluginPurged"/>
|
|
|
|
<doTry>
|
|
|
|
<to uri="jms-generic:queue:gfePurgeNotification"/>
|
|
|
|
<doCatch>
|
|
|
|
<exception>java.lang.Throwable</exception>
|
|
|
|
<to
|
|
|
|
uri="log:ifpServer?level=ERROR"/>
|
|
|
|
</doCatch>
|
|
|
|
</doTry>
|
|
|
|
</route>
|
|
|
|
|
2013-10-10 10:04:26 -05:00
|
|
|
</camelContext>
|
2013-06-28 09:30:03 -05:00
|
|
|
|
|
|
|
<bean factory-bean="clusteredCamelContextMgr" factory-method="register">
|
|
|
|
<constructor-arg ref="clusteredGfeIngestRoutes"/>
|
|
|
|
</bean>
|
2012-01-06 08:55:05 -06:00
|
|
|
</beans>
|