awips2/edexOsgi/com.raytheon.uf.edex.plugin.madis.registry/res/spring/madis-ogc-registry.xml
Steve Harris 069093884f Merge branch 'master_14.1.1' (-21) into 'master_14.2.1' (-8)
merge performed by Richard Peter

Conflicts:
	cave/build/static/common/cave/etc/gfe/userPython/procedures/MergeHazards.py
	cave/build/static/common/cave/etc/gfe/userPython/utilities/SmartScript.py
	edexOsgi/build.edex/esb/conf/log4j-ingest.xml
	edexOsgi/build.edex/esb/conf/log4j-registry.xml
	edexOsgi/build.edex/esb/conf/log4j.xml
	edexOsgi/com.raytheon.edex.plugin.airep/res/spring/airep-ingest.xml
	edexOsgi/com.raytheon.edex.plugin.gfe/res/spring/gfe-common.xml
	edexOsgi/com.raytheon.edex.plugin.gfe/res/spring/gfe-request.xml
	edexOsgi/com.raytheon.edex.plugin.gfe/res/spring/gfe-spring.xml
	edexOsgi/com.raytheon.edex.plugin.grib/res/spring.deprecated/grib-decode.xml
	edexOsgi/com.raytheon.edex.plugin.grib/res/spring.future/grib-decode.xml
	edexOsgi/com.raytheon.edex.plugin.grib/res/spring/grib-distribution.xml
	edexOsgi/com.raytheon.edex.plugin.modelsounding/res/spring/modelsounding-ingest.xml
	edexOsgi/com.raytheon.edex.plugin.pirep/res/spring/pirep-ingest.xml
	edexOsgi/com.raytheon.edex.plugin.shef/src/com/raytheon/edex/plugin/shef/alarms/AlertalarmStdTextProductUtil.java
	edexOsgi/com.raytheon.edex.plugin.shef/src/com/raytheon/edex/plugin/shef/alarms/Constants.java
	edexOsgi/com.raytheon.edex.plugin.taf/src/com/raytheon/edex/plugin/taf/common/ChangeGroup.java
	edexOsgi/com.raytheon.edex.plugin.taf/src/com/raytheon/edex/plugin/taf/common/TafRecord.java
	edexOsgi/com.raytheon.edex.plugin.warning/res/spring/warning-ingest.xml
	edexOsgi/com.raytheon.uf.common.jms/src/com/raytheon/uf/common/jms/JmsPooledConnectionFactory.java
	edexOsgi/com.raytheon.uf.common.jms/src/com/raytheon/uf/common/jms/JmsPooledSession.java
	edexOsgi/com.raytheon.uf.edex.cpgsrv/res/spring/cpgsrv-spring.xml
	edexOsgi/com.raytheon.uf.edex.grid.staticdata/res/spring/grid-staticdata-process.xml
	edexOsgi/com.raytheon.uf.edex.ohd/res/spring/ohd-common.xml
	edexOsgi/com.raytheon.uf.edex.ohd/res/spring/satpre-spring.xml
	ncep/gov.noaa.nws.ncep.common.dataplugin.nctaf/src/gov/noaa/nws/ncep/common/dataplugin/nctaf/NcTafRecord.java
	ncep/gov.noaa.nws.ncep.common.dataplugin.ncuair/src/gov/noaa/nws/ncep/common/dataplugin/ncuair/NcUairRecord.java
	ncep/gov.noaa.nws.ncep.edex.plugin.ncairep/res/spring/ncairep-ingest.xml
	ncep/gov.noaa.nws.ncep.edex.plugin.ncccfp/res/spring/ncccfp-ingest.xml
	ncep/gov.noaa.nws.ncep.edex.plugin.ncgrib/res/spring/ncgrib-distribution.xml
	ncep/gov.noaa.nws.ncep.edex.plugin.ncgrib/res/spring/ncgrib-ingest.xml
	ncep/gov.noaa.nws.ncep.edex.plugin.ncpirep/res/spring/ncpirep-ingest.xml
	ncep/gov.noaa.nws.ncep.edex.plugin.ncscat/res/spring/ncscat-ingest.xml
	ncep/gov.noaa.nws.ncep.edex.plugin.ntrans/res/spring/ntrans-ingest.xml
	rpms/awips2.core/Installer.ant/scripts/profile.d/awips2Ant.csh

Former-commit-id: 889200c9eb3fbb835f8fef067476799f30a7a7e0
2014-03-06 08:39:43 -06:00

144 lines
No EOL
5.4 KiB
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="madisDecoder" class="com.raytheon.uf.edex.plugin.madis.MadisDecoder">
<constructor-arg ref="madisPluginName" />
</bean>
<bean id="madisPointData"
class="com.raytheon.uf.edex.plugin.madis.MadisPointDataTransform"
depends-on="registerMadisPlugin" />
<bean id="madisDistRegistry" factory-bean="distributionSrv"
factory-method="register">
<constructor-arg value="madis" />
<constructor-arg value="jms-durable:queue:Ingest.madis" />
</bean>
<bean id="madisCamelRegistered" factory-bean="contextManager"
factory-method="register" depends-on="persistCamelRegistered">
<constructor-arg ref="madis-camel" />
</bean>
<bean id="madisSeparator" class="com.raytheon.uf.edex.plugin.madis.MadisSeparator"
depends-on="jmsIngestMadisConfig, jms-madis, madisThreadPool">
<constructor-arg
value="jms-durable:queue:Ingest.madisSeparator" />
<!-- time in hours for orphan purging -->
<constructor-arg value="1" />
</bean>
<bean id="madisRegistryAddon"
class="com.raytheon.uf.edex.plugin.madis.registry.MadisRegistryCollectorAddon"
depends-on="registerDataDeliveryHandlers, registerRequestRegistryRouter, registerMadisPlugin">
</bean>
<bean id="madisRegistryAddonProvider"
class="com.raytheon.uf.edex.ogc.registry.RegistryCollectorAddonProvider"
depends-on="madisRegistryAddon">
<constructor-arg ref="madisRegistryAddon" />
</bean>
<bean id="madisWfsTypeModifier"
class="com.raytheon.uf.edex.ogc.registry.RegistryFeatureTypeModifier" />
<bean class="com.raytheon.uf.edex.ogc.common.util.AddonPropsPostProcessor" depends-on="madisRegistryAddonProvider, madisRegistryAddon">
<constructor-arg>
<map>
<entry key="madisIngestFilter">
<map>
<entry key="filter" value-ref="madisRegistryAddon" />
</map>
</entry>
<entry key="madisLayerCollector">
<map>
<entry key="addonFactory" value-ref="madisRegistryAddonProvider" />
</map>
</entry>
<entry key="madisWfsSource">
<map>
<entry key="typeModifier" value-ref="madisWfsTypeModifier" />
</map>
</entry>
</map>
</constructor-arg>
</bean>
<camelContext id="madis-camel"
xmlns="http://camel.apache.org/schema/spring" errorHandlerRef="errorHandler"
autoStartup="false">
<!-- This first file drop route is used mainly for testing -->
<endpoint id="madisFileEndpoint"
uri="file:${edex.home}/data/sbn/madis?noop=true&amp;idempotent=false" />
<route id="madisFileConsumerRoute">
<from ref="madisFileEndpoint" />
<bean ref="fileToString" />
<setHeader headerName="pluginName">
<constant>madis</constant>
</setHeader>
<to uri="jms-durable:queue:Ingest.madis" />
</route>
<!-- Separates MADIS files into manageable chunks -->
<route id="madisSeperatorRoute">
<from uri="jms-durable:queue:Ingest.madis" />
<setHeader headerName="pluginName">
<constant>madis</constant>
</setHeader>
<doTry>
<pipeline>
<bean ref="stringToFile" />
<bean ref="dataUnzipper" method="gunzip"/>
<bean ref="madisSeparator" method="separate" />
</pipeline>
<doCatch>
<exception>java.lang.Throwable</exception>
<to
uri="log:madis" />
</doCatch>
</doTry>
</route>
<!-- Begin MADIS production route -->
<route id="madisIngestRoute">
<from
uri="jms-durable:queue:Ingest.madisSeparator" />
<setHeader headerName="pluginName">
<constant>madis</constant>
</setHeader>
<doTry>
<pipeline>
<bean ref="madisDecoder" method="decode" />
<bean ref="madisRegistryAddon" method="filter" />
<bean ref="madisPointData" method="toPointData" />
<bean ref="persist" method="persist"/>
<bean ref="index" method="index"/>
<bean ref="madisLayerCollector" method="add" />
<bean ref="processUtil" method="log"/>
</pipeline>
<doCatch>
<exception>java.lang.Throwable</exception>
<to
uri="log:madis" />
</doCatch>
</doTry>
</route>
<route id="madisOrphanPurgeRoute">
<!-- purge madis orphan files based on hour in separator constructor
arg -->
<from uri="quartz://madis/orphan?cron=0+0+*+*+*+?" />
<bean ref="madisSeparator" method="fileCleaner" />
</route>
<route id="madisRegistryRoute">
<!-- send metadata to registry every minute -->
<from uri="quartz://madis/layers?cron=0+*+*+*+*+?" />
<bean ref="madisRegistryAddon" method="buildLayerUpdate" />
</route>
</camelContext>
</beans>