Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Finished integration test #67

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions res/spring/ooi-winch-cspp-decode.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<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="winch-cspp_telemeteredProcessor" class="com.raytheon.uf.edex.ooi.decoder.dataset.FileDecoder">
<constructor-arg index="0" value="winch-cspp_telemetered" />
<constructor-arg index="1" value="#{basePythonCodeLocalizationPath}" />
<constructor-arg index="2" value="#{basePythonCodeLocalizationPath}/mi/dataset/driver/winch_cspp/winch_cspp_driver.py" />
</bean>

<camelContext id="winch-cspp-decode-camel"
xmlns="http://camel.apache.org/schema/spring" errorHandlerRef="errorHandler">

<endpoint id="winch-cspp_telemeteredFileEndpoint"
uri="file:${edex.home}/data/ooi/winch-cspp_telemetered?delete=true&amp;delay=3000&amp;maxMessagesPerPoll=30&amp;exclusiveReadLockStrategy=#fileChangedStrategy" />

<route id="winch-cspp_telemeteredFileConsumerRoute">
<from ref="winch-cspp_telemeteredFileEndpoint" />
<setHeader headerName="deliveryType">
<constant>telemetered</constant>
</setHeader>
<setHeader headerName="sensor">
<constant>XX00XXXX-XX00X-00-WINCHC000</constant>
</setHeader>
<bean ref="fileToString" />
<to uri="jms-durable:queue:Ingest.winch-cspp_telemetered" />
</route>

<route id="winch-cspp_telemeteredIngest">
<from uri="jms-durable:queue:Ingest.winch-cspp_telemetered" />
<doTry>
<pipeline>
<bean ref="winch-cspp_telemeteredProcessor" />
<to uri="vm:generate?concurrentConsumers=10" />
</pipeline>
<doCatch>
<exception>java.lang.Throwable</exception>
<to uri="log:ooi.winch-cspp?level=ERROR" />
</doCatch>
</doTry>
</route>

</camelContext>
</beans>