Former-commit-id:6f374b35d0
[formerlybe96282207
] [formerly0be473728a
] [formerly6f374b35d0
[formerlybe96282207
] [formerly0be473728a
] [formerlyaaac0b51e5
[formerly0be473728a
[formerly 1f109861760e5fbc9d7a13cc4f518341cbc31276]]]] Former-commit-id:aaac0b51e5
Former-commit-id:bb30a41300
[formerlyf80f98cee2
] [formerly 4cfa5d11d7d7059b88534daa18142d24f3a6f481 [formerlybc439aee4f
]] Former-commit-id: 5c941816ce99cd7acc86ec8198a9c8d060f02007 [formerlyf1d156779a
] Former-commit-id:120fc26670
69 lines
No EOL
3.5 KiB
XML
69 lines
No EOL
3.5 KiB
XML
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
xmlns:util="http://www.springframework.org/schema/util" 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://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd
|
|
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
|
|
|
|
<!-- Stores beans that are used in bandwidth-datadelivery.xml, but that
|
|
have different implementations between production code and test code -->
|
|
<bean
|
|
class="com.raytheon.uf.edex.datadelivery.bandwidth.EdexBandwidthContextFactory">
|
|
<!-- This bean version is used to set the EDEX instance of BandwidthManager -->
|
|
<constructor-arg ref="bandwidthManager" />
|
|
</bean>
|
|
|
|
<!-- Used as the context for creating the BandwidthManager -->
|
|
<bean id="bandwidthContextFactory"
|
|
class="com.raytheon.uf.edex.datadelivery.bandwidth.EdexBandwidthContextFactory">
|
|
<!-- The bandwidth dao implementation -->
|
|
<constructor-arg ref="hibernateBandwidthDao" />
|
|
<!-- The bandwidth manager initializer -->
|
|
<constructor-arg>
|
|
<bean
|
|
class="com.raytheon.uf.edex.datadelivery.bandwidth.hibernate.HibernateBandwidthInitializer">
|
|
<constructor-arg>
|
|
<bean
|
|
class="com.raytheon.uf.edex.datadelivery.bandwidth.util.FindActiveSubscriptionsForRoute">
|
|
<constructor-arg ref="subscriptionRoutesToSchedule" />
|
|
</bean>
|
|
</constructor-arg>
|
|
</bean>
|
|
</constructor-arg>
|
|
<!-- The strategy for how to create the bandwidth manager -->
|
|
<constructor-arg ref="bandwidthManagerCreator" />
|
|
</bean>
|
|
|
|
<util:map id="retrievalAgents">
|
|
<entry key="Retrievals-1" value-ref="subscriptionRetrievalAgentPrototype" />
|
|
<entry key="Retrievals-2" value-ref="subscriptionRetrievalAgentPrototype" />
|
|
<entry key="Retrievals-3" value-ref="subscriptionRetrievalAgentPrototype" />
|
|
<entry key="Retrievals-4" value-ref="subscriptionRetrievalAgentPrototype" />
|
|
<entry key="Retrievals-5" value-ref="subscriptionRetrievalAgentPrototype" />
|
|
</util:map>
|
|
|
|
<camelContext id="BandwidthManager-context"
|
|
xmlns="http://camel.apache.org/schema/spring" errorHandlerRef="errorHandler">
|
|
|
|
<route id="bandwidthManagerProcessWork">
|
|
<from
|
|
uri="jms-generic:queue:matureSubscriptions?destinationResolver=#qpidDurableResolver" />
|
|
<doTry>
|
|
<pipeline>
|
|
<bean ref="serializationUtil" method="transformFromThrift" />
|
|
<bean ref="BandwidthManagerProcessor" method="process" />
|
|
<bean ref="BandwidthManagerRetrieval" method="generateRetrieval" />
|
|
|
|
<!-- notify retrieval threads, if data delivery made
|
|
into cluster this should move to topic post -->
|
|
<to uri="directvm:notifyRetrieval" />
|
|
</pipeline>
|
|
<doCatch>
|
|
<exception>java.lang.Throwable</exception>
|
|
<to
|
|
uri="log:BandwidthManagerProcess?level=ERROR&showBody=false&showCaughtException=true&showStackTrace=true" />
|
|
</doCatch>
|
|
</doTry>
|
|
</route>
|
|
</camelContext>
|
|
|
|
</beans> |