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">
|
|
|
|
|
|
|
|
<bean id="gfeProperties" class="com.raytheon.uf.common.dataplugin.PluginProperties">
|
|
|
|
<property name="pluginName" value="gfe" />
|
|
|
|
<property name="pluginFQN" value="com.raytheon.uf.common.dataplugin.gfe" />
|
|
|
|
<property name="dao" value="com.raytheon.edex.plugin.gfe.db.dao.GFEDao" />
|
|
|
|
<property name="record"
|
|
|
|
value="com.raytheon.uf.common.dataplugin.gfe.db.objects.GFERecord" />
|
|
|
|
<property name="initializer"
|
|
|
|
value="com.raytheon.edex.plugin.gfe.GfePluginInitializer" />
|
2012-10-18 15:46:42 -05:00
|
|
|
<property name="compression" value="LZF"/>
|
2012-01-06 08:55:05 -06:00
|
|
|
</bean>
|
|
|
|
|
|
|
|
<bean id="gfeDbPluginProperties" class="com.raytheon.uf.edex.database.DatabasePluginProperties">
|
|
|
|
<property name="pluginFQN" value="com.raytheon.edex.plugin.gfe" />
|
|
|
|
<property name="database" value="metadata" />
|
|
|
|
</bean>
|
|
|
|
|
|
|
|
<bean id="gfeRegistered" factory-bean="pluginRegistry" factory-method="register"
|
2013-01-06 14:32:24 -06:00
|
|
|
depends-on="gridRegistered, textRegistered">
|
2012-01-06 08:55:05 -06:00
|
|
|
<constructor-arg value="gfe" />
|
|
|
|
<constructor-arg ref="gfeProperties" />
|
|
|
|
</bean>
|
|
|
|
|
|
|
|
<bean id="gfeDbRegistered" factory-bean="dbPluginRegistry" factory-method="register"
|
|
|
|
depends-on="gfeRegistered">
|
|
|
|
<constructor-arg value="com.raytheon.edex.plugin.gfe"/>
|
|
|
|
<constructor-arg ref="gfeDbPluginProperties"/>
|
|
|
|
</bean>
|
|
|
|
|
|
|
|
<bean id="gfeSiteActivation" class="com.raytheon.edex.plugin.gfe.config.GFESiteActivation"
|
2013-01-06 14:32:24 -06:00
|
|
|
factory-method="getInstance" depends-on="commonTimeRegistered">
|
2012-01-06 08:55:05 -06:00
|
|
|
</bean>
|
|
|
|
|
2013-05-13 12:58:10 -04:00
|
|
|
<bean id="gfeSitesActive" factory-bean="siteAwareRegistry" factory-method="register">
|
2012-01-06 08:55:05 -06:00
|
|
|
<constructor-arg ref="gfeSiteActivation" />
|
|
|
|
</bean>
|
|
|
|
|
|
|
|
<bean id="parmIdFilter"
|
|
|
|
class="com.raytheon.edex.plugin.gfe.cache.d2dparms.D2DParmIdFilter" />
|
|
|
|
<bean id="gfeNotifyFilter"
|
|
|
|
class="com.raytheon.edex.plugin.gfe.server.notify.GfeNotificationFilter" />
|
|
|
|
|
|
|
|
<bean id="d2dParmIdCache"
|
|
|
|
class="com.raytheon.edex.plugin.gfe.cache.d2dparms.D2DParmIdCache"
|
|
|
|
factory-method="getInstance" />
|
|
|
|
|
2013-05-22 16:42:39 -04:00
|
|
|
<bean id="gridParmManager"
|
|
|
|
class="com.raytheon.edex.plugin.gfe.server.GridParmManager" />
|
|
|
|
|
2012-01-06 08:55:05 -06:00
|
|
|
<camelContext id="gfe-common-camel" xmlns="http://camel.apache.org/schema/spring"
|
|
|
|
errorHandlerRef="errorHandler">
|
|
|
|
|
|
|
|
<route id="gfeParmIdCacheListenerEndpoint">
|
|
|
|
<from uri="jms-generic:topic:gfeGribNotification?concurrentConsumers=1" />
|
|
|
|
<doTry>
|
|
|
|
<bean ref="serializationUtil" method="transformFromThrift" />
|
|
|
|
<bean ref="parmIdFilter" method="updateParmIdCache" />
|
|
|
|
<doCatch>
|
|
|
|
<exception>java.lang.Throwable</exception>
|
2013-06-19 09:20:50 -05:00
|
|
|
<to uri="log:paramIdCache?level=ERROR"/>
|
2012-01-06 08:55:05 -06:00
|
|
|
</doCatch>
|
|
|
|
</doTry>
|
|
|
|
</route>
|
|
|
|
|
|
|
|
<route id="gfeNotify">
|
|
|
|
<from uri="vm:edex.gfeNotification?size=5000" />
|
|
|
|
<doTry>
|
|
|
|
<filter>
|
|
|
|
<method bean="gfeNotifyFilter" method="isGfeNotification" />
|
|
|
|
<bean ref="serializationUtil" method="transformToThrift" />
|
2013-05-14 09:21:41 -04:00
|
|
|
<to uri="jms-generic:topic:edex.alerts.gfe?timeToLive=60000" />
|
2012-01-06 08:55:05 -06:00
|
|
|
</filter>
|
|
|
|
<doCatch>
|
|
|
|
<exception>java.lang.Throwable</exception>
|
2013-06-19 09:20:50 -05:00
|
|
|
<to uri="log:gfeNotify?level=ERROR"/>
|
2012-01-06 08:55:05 -06:00
|
|
|
</doCatch>
|
|
|
|
</doTry>
|
|
|
|
</route>
|
|
|
|
|
|
|
|
<route id="rebuildD2DCache">
|
|
|
|
<from uri="jms-generic:topic:rebuildD2DCache" />
|
|
|
|
<bean ref="d2dParmIdCache" method="buildCache" />
|
|
|
|
</route>
|
2013-01-06 14:32:24 -06:00
|
|
|
|
|
|
|
<route id="rebuildD2DCacheAfterPurge">
|
|
|
|
<from uri="jms-generic:topic:pluginPurged" />
|
|
|
|
<doTry>
|
|
|
|
<bean ref="d2dParmIdCache" method="pluginPurged" />
|
|
|
|
<doCatch>
|
|
|
|
<exception>java.lang.Throwable</exception>
|
2013-06-19 09:20:50 -05:00
|
|
|
<to uri="log:paramIdCache?level=ERROR"/>
|
2013-01-06 14:32:24 -06:00
|
|
|
</doCatch>
|
|
|
|
</doTry>
|
|
|
|
</route>
|
2013-05-22 16:42:39 -04:00
|
|
|
|
|
|
|
<route id="notifyGridParmManager">
|
|
|
|
<from uri="jms-generic:topic:edex.alerts.gfe" />
|
|
|
|
<doTry>
|
|
|
|
<bean ref="serializationUtil" method="transformFromThrift" />
|
|
|
|
<bean ref="gridParmManager" method="processNotification" />
|
|
|
|
<doCatch>
|
|
|
|
<exception>java.lang.Throwable</exception>
|
2013-06-19 09:20:50 -05:00
|
|
|
<to uri="log:gridParmManager?level=ERROR"/>
|
2013-05-22 16:42:39 -04:00
|
|
|
</doCatch>
|
|
|
|
</doTry>
|
|
|
|
</route>
|
2012-01-06 08:55:05 -06:00
|
|
|
</camelContext>
|
|
|
|
</beans>
|