Michael Arrastia | f0b74b1 | 2018-08-21 13:36:27 +0100 | [diff] [blame^] | 1 | <!-- |
| 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" /> |
| 40 | </bean> |
| 41 | |
| 42 | <bean id="eventPublisher" class="org.onap.aai.event.client.DMaaPEventPublisher" > |
| 43 | <constructor-arg name="host" value="message-router.{{.Release.Namespace}}:{{.Values.event.port.dmaap}}" /> |
| 44 | <constructor-arg name="topic" value="{{.Values.event.publisher.topic}}" /> |
| 45 | <constructor-arg name="username" value="" /> |
| 46 | <constructor-arg name="password" value="" /> |
| 47 | <constructor-arg name="maxBatchSize" value="100" /> |
| 48 | <constructor-arg name="maxAgeMs" value="250" /> |
| 49 | <constructor-arg name="delayBetweenBatchesMs" value="50" /> |
| 50 | <constructor-arg name="transportType" value="HTTPAUTH" /> |
| 51 | </bean> |
| 52 | |
| 53 | <bean id="spikeService" class="org.onap.aai.spike.service.SpikeService" init-method="startup"> |
| 54 | <constructor-arg ref="eventConsumer" /> |
| 55 | <constructor-arg ref="eventPublisher" /> |
| 56 | </bean> |
| 57 | |
| 58 | </beans> |