blob: 50be8cb0f847f2dbf0509e282fc9e919d12521e2 [file] [log] [blame]
Michael Arrastia0e102f62018-08-21 13:36:27 +01001<!--
2 ============LICENSE_START=======================================================
3 org.onap.aai
4 ================================================================================
5 Copyright © 2018 AT&T Intellectual Property. All rights reserved.
6 Copyright © 2018 Amdocs
7 ================================================================================
8 Licensed under the Apache License, Version 2.0 (the "License");
9 you may not use this file except in compliance with the License.
10 You may obtain a copy of the License at
11
12 http://www.apache.org/licenses/LICENSE-2.0
13
14 Unless required by applicable law or agreed to in writing, software
15 distributed under the License is distributed on an "AS IS" BASIS,
16 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 See the License for the specific language governing permissions and
18 limitations under the License.
19 ============LICENSE_END=========================================================
20-->
21<beans xmlns="http://www.springframework.org/schema/beans"
22 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23 xmlns:util="http://www.springframework.org/schema/util"
24 xsi:schemaLocation="
25 http://www.springframework.org/schema/beans
26 http://www.springframework.org/schema/beans/spring-beans.xsd
27 http://www.springframework.org/schema/util
28 http://www.springframework.org/schema/util/spring-util.xsd">
29
30 <bean id="eventConsumer" class="org.onap.aai.event.client.DMaaPEventConsumer">
31 <constructor-arg name="host" value="message-router.{{.Release.Namespace}}:{{.Values.event.port.dmaap}}" />
32 <constructor-arg name="topic" value="{{.Values.event.consumer.topic}}" />
33 <constructor-arg name="username" value="" />
34 <constructor-arg name="password" value="" />
35 <constructor-arg name="consumerGroup" value="spike" />
36 <constructor-arg name="consumerId" value="spike" />
37 <constructor-arg name="timeoutMs" value="1000" />
38 <constructor-arg name="messageLimit" value="100" />
39 <constructor-arg name="transportType" value="HTTPAUTH" />
Michael Arrastiab5c6f932018-09-18 10:57:03 +010040 <constructor-arg name="protocol" value="{{.Values.event.protocol}}" />
41 <constructor-arg name="filter"><null /></constructor-arg>
Michael Arrastia0e102f62018-08-21 13:36:27 +010042 </bean>
43
44 <bean id="eventPublisher" class="org.onap.aai.event.client.DMaaPEventPublisher" >
45 <constructor-arg name="host" value="message-router.{{.Release.Namespace}}:{{.Values.event.port.dmaap}}" />
46 <constructor-arg name="topic" value="{{.Values.event.publisher.topic}}" />
47 <constructor-arg name="username" value="" />
48 <constructor-arg name="password" value="" />
49 <constructor-arg name="maxBatchSize" value="100" />
50 <constructor-arg name="maxAgeMs" value="250" />
51 <constructor-arg name="delayBetweenBatchesMs" value="50" />
52 <constructor-arg name="transportType" value="HTTPAUTH" />
Michael Arrastiab5c6f932018-09-18 10:57:03 +010053 <constructor-arg name="protocol" value="{{.Values.event.protocol}}" />
54 <constructor-arg name="contentType" value="application/json" />
Michael Arrastia0e102f62018-08-21 13:36:27 +010055 </bean>
56
57 <bean id="spikeService" class="org.onap.aai.spike.service.SpikeService" init-method="startup">
58 <constructor-arg ref="eventConsumer" />
59 <constructor-arg ref="eventPublisher" />
60 </bean>
61
62</beans>