[AAI] Make AAI helm3 compatible
[oom.git] / kubernetes / aai / components / aai-data-router / resources / dynamic / conf / entity-event-policy.xml
1 {{/*
2 <!--
3 # Copyright © 2018 Amdocs, Bell Canada, AT&T
4 #
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
8 #
9 #       http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 -->
17 */}}
18 <beans xmlns="http://www.springframework.org/schema/beans"
19        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
20        xsi:schemaLocation="
21               http://www.springframework.org/schema/beans
22               http://www.springframework.org/schema/beans/spring-beans.xsd">
23
24   <bean id="eepConfig" class="org.onap.aai.datarouter.policy.EntityEventPolicyConfig" >
25     <property name="sourceDomain" value="dev" />
26     <property name="searchBaseUrl" value="https://{{.Values.global.searchData.serviceName}}.{{.Release.Namespace}}:9509" />
27     <property name="searchEndpoint" value="services/search-data-service/v1/search/indexes/" />
28     <property name="searchEndpointDocuments" value = "documents" />
29     <property name="searchEntitySearchIndex" value="entity-search-index" />
30     <property name="searchTopographySearchIndex" value="topography-search-index" />
31     <property name="searchEntityAutoSuggestIndex" value="entityautosuggestindex" />
32     <property name="searchAggregationVnfIndex" value="aggregate_generic-vnf_index" />
33     <property name="searchCertName" value="client-cert-onap.p12" />
34     <property name="searchKeystorePwd" value="OBF:1y0q1uvc1uum1uvg1pil1pjl1uuq1uvk1uuu1y10" />
35     <property name="searchKeystore" value="tomcat_keystore" />
36     <property name="schemaVersions" ref="schemaVersions" />
37     <property name="schemaLocationsBean" ref="schemaLocationsBean" />
38   </bean>
39   
40   <bean id="consumerBeanEntityEvent" class="org.onap.aai.event.client.DMaaPEventConsumer" >
41     <constructor-arg name="host" value="message-router.{{.Release.Namespace}}:{{.Values.event.port.dmaap}}" />
42     <constructor-arg name="topic" value="{{.Values.event.consumer.topic}}" />
43     <constructor-arg name="username" value="" />
44     <constructor-arg name="password" value="" />
45     <constructor-arg name="consumerGroup" value="datarouter" />
46     <constructor-arg name="consumerId" value="datarouter" />
47     <constructor-arg name="timeoutMs" value="1000" />
48     <constructor-arg name="messageLimit" value="100" />
49     <constructor-arg name="transportType" value="HTTPAUTH" />
50     <constructor-arg name="protocol" value="{{.Values.event.protocol}}" />
51     <constructor-arg name="filter"><null /></constructor-arg>
52   </bean>
53
54   <bean id="entityEventPolicy" class="org.onap.aai.datarouter.policy.EntityEventPolicy" init-method="startup" >
55     <constructor-arg ref="eepConfig"/>
56   </bean>
57 </beans>