Former-commit-id:a02aeb236c
[formerly9f19e3f712
] [formerly06a8b51d6d
[formerly 64fa9254b946eae7e61bbc3f513b7c3696c4f54f]] Former-commit-id:06a8b51d6d
Former-commit-id:3360eb6c5f
107 lines
4.3 KiB
XML
107 lines
4.3 KiB
XML
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
xmlns:amq="http://activemq.apache.org/schema/core" 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-2.0.xsd
|
|
http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd
|
|
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
|
|
|
|
<!-- Done to force instantiation of the GribTables -->
|
|
<bean id="gribTableLookup" class="com.raytheon.edex.util.grib.GribTableLookup"
|
|
factory-method="getInstance" depends-on="gribRegistered" />
|
|
|
|
<bean id="gribNotifyTransform"
|
|
class="com.raytheon.edex.plugin.grib.notify.GribNotifyTransform" />
|
|
|
|
<bean id="gribDecoder" class="com.raytheon.edex.plugin.grib.GribDecoder" />
|
|
|
|
<bean id="gribPostProcessor"
|
|
class="com.raytheon.edex.plugin.grib.decoderpostprocessors.GribPostProcessor"
|
|
factory-method="getInstance" />
|
|
|
|
<bean id="gribStaticDataGenerator"
|
|
class="com.raytheon.edex.plugin.grib.topo.StaticDataGenerator"
|
|
factory-method="getInstance"/>
|
|
|
|
<bean id="ingest-grib" class="org.apache.camel.component.jms.JmsComponent">
|
|
<constructor-arg ref="jmsIngestGribConfig" />
|
|
<property name="taskExecutor" ref="gribThreadPool" />
|
|
</bean>
|
|
<bean id="jmsIngestGribConfig" class="org.apache.camel.component.jms.JmsConfiguration"
|
|
factory-bean="jmsConfig" factory-method="copy">
|
|
</bean>
|
|
<bean id="gribThreadPool"
|
|
class="com.raytheon.uf.edex.esb.camel.spring.JmsThreadPoolTaskExecutor">
|
|
<property name="corePoolSize" value="4" />
|
|
<property name="maxPoolSize" value="4" />
|
|
</bean>
|
|
|
|
<bean id="largeFileChecker" class="com.raytheon.edex.plugin.grib.GribLargeFileChecker" />
|
|
<bean id="largeFileLockRelease" class="com.raytheon.edex.plugin.grib.GribLockRelease" />
|
|
|
|
<bean id="gribCamelRegistered" factory-bean="contextManager"
|
|
factory-method="register" depends-on="persistCamelRegistered">
|
|
<constructor-arg ref="grib-camel"/>
|
|
</bean>
|
|
|
|
<camelContext id="grib-camel" xmlns="http://camel.apache.org/schema/spring"
|
|
errorHandlerRef="errorHandler"
|
|
autoStartup="false">
|
|
<!-- <endpoint id="gribFileEndpoint" uri="file:${edex.home}/data/sbn/grib?noop=true&idempotent=false"
|
|
/> <route id="gribFileConsumerRoute"> <from ref="gribFileEndpoint" /> <bean
|
|
ref="fileToString" /> <setHeader headerName="pluginName"> <constant>grib</constant>
|
|
</setHeader> <to uri="ingest-grib:queue:Ingest.Grib" /> </route> -->
|
|
|
|
<!-- Begin Grib Routes -->
|
|
<route id="gribIngestRoute">
|
|
<from uri="ingest-grib:queue:Ingest.Grib?concurrentConsumers=4&destinationResolver=#qpidDurableResolver" />
|
|
<setHeader headerName="pluginName">
|
|
<constant>grib</constant>
|
|
</setHeader>
|
|
<doTry>
|
|
<pipeline>
|
|
<bean ref="stringToFile" />
|
|
<bean ref="largeFileChecker" />
|
|
<bean ref="gribDecoder" method="decode" />
|
|
<bean ref="gribPostProcessor" method="process" />
|
|
<bean ref="persist" method="persist" />
|
|
<bean ref="index" method="index" />
|
|
<bean ref="processUtil" method="log" />
|
|
<multicast parallelProcessing="false">
|
|
<to uri="directvm:gribIngestAlert"/>
|
|
<to uri="vm:gribNotification"/>
|
|
<to uri="vm:staticTopoGenerator"/>
|
|
</multicast>
|
|
</pipeline>
|
|
<doCatch>
|
|
<exception>java.lang.Throwable</exception>
|
|
<to uri="log:grib?level=ERROR&showBody=false&showCaughtException=true&showStackTrace=true"/>
|
|
</doCatch>
|
|
<doFinally>
|
|
<bean ref="largeFileLockRelease" />
|
|
</doFinally>
|
|
</doTry>
|
|
</route>
|
|
|
|
<route id="gribIngestAlert">
|
|
<from uri="directvm:gribIngestAlert" />
|
|
<bean ref="toDataURI" method="toDataURI" />
|
|
<to uri="vm:stageNotification" />
|
|
</route>
|
|
|
|
<route id="gribNotification">
|
|
<from uri="vm:gribNotification?concurrentConsumers=2" />
|
|
<bean ref="gribNotifyTransform" method="transformToMessages" />
|
|
<bean ref="serializationUtil" method="transformToThrift" />
|
|
<to uri="jms-generic:queue:gribNotification" />
|
|
</route>
|
|
|
|
<route id="gribStaticTopoGen">
|
|
<from uri="vm:staticTopoGenerator" />
|
|
<!-- genStaticTopoRecords stores to hdf5 and the database as part of method -->
|
|
<bean ref="gribStaticDataGenerator"/>
|
|
<multicast parallelProcessing="false">
|
|
<to uri="directvm:gribIngestAlert"/>
|
|
<to uri="vm:gribNotification"/>
|
|
</multicast>
|
|
</route>
|
|
</camelContext>
|
|
</beans>
|