AAI Rolling upgrade using helm hooks
[oom.git] / kubernetes / aai / charts / aai-champ / resources / config / dynamic / conf / champ-beans.xml
1 <!--
2 # Copyright © 2018 Amdocs, Bell Canada, AT&T
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 #       http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15 -->
16
17 <beans xmlns="http://www.springframework.org/schema/beans"
18 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
19 xmlns:util="http://www.springframework.org/schema/util"
20 xsi:schemaLocation="
21        http://www.springframework.org/schema/beans
22        http://www.springframework.org/schema/beans/spring-beans.xsd
23        http://www.springframework.org/schema/util
24        http://www.springframework.org/schema/util/spring-util.xsd
25        ">
26
27     <bean id="champEventPublisher" class="org.onap.aai.event.client.DMaaPEventPublisher" >
28         <constructor-arg name="host" value="message-router.{{.Release.Namespace}}:{{.Values.event.port.dmaap}}" />
29         <constructor-arg name="topic" value="{{.Values.event.publisher.topic}}" />
30         <constructor-arg name="username" value="" />
31         <constructor-arg name="password" value="" />
32         <constructor-arg name="maxBatchSize" value="100" />
33         <constructor-arg name="maxAgeMs" value="250" />
34         <constructor-arg name="delayBetweenBatchesMs" value="50" />
35         <constructor-arg name="transportType" value="HTTPAUTH" />
36         <constructor-arg name="protocol" value="{{.Values.event.protocol}}" />
37         <constructor-arg name="contentType" value="application/json" />
38     </bean>
39
40     <!-- Graph Implementation Configuration-->
41     <util:map id="props" map-class="java.util.HashMap" key-type="java.lang.String" value-type="java.lang.Object">
42         <entry key="champcore.event.stream.buffer.capacity" value="50" value-type="java.lang.Integer"/>
43         <entry key="champcore.event.stream.publisher-pool-size" value="10" value-type="java.lang.Integer"/>
44         <entry key="champcore.event.stream.publisher" value-ref="champEventPublisher"/>
45
46         <entry key="graph.name" value="aaigraph"/>
47         <entry key="storage.backend" value="cassandra"/>
48         <entry key="storage.cassandra.read-consistency-level" value="LOCAL_QUORUM"/>
49         <entry key="storage.cassandra.write-consistency-level" value="LOCAL_QUORUM"/>
50         <entry key="storage.cassandra.replication-factor" value="{{ .Values.global.cassandra.replicas }}"/>
51         <entry key="storage.cassandra.replication-strategy-class" value="org.apache.cassandra.locator.SimpleStrategy"/>
52         <entry key="storage.hostname" value="{{ .Values.global.cassandra.serviceName }}"/>
53     </util:map>
54
55     <!-- Janus Implementation -->
56     <bean id="graphBuilder" class="org.onap.aai.champjanus.graph.impl.JanusChampGraphImpl$Builder">
57         <constructor-arg value="aaigraph"/>
58         <constructor-arg ref="props" />
59     </bean>
60
61     <bean id="graphImpl" class="org.onap.aai.champjanus.graph.impl.JanusChampGraphImpl">
62         <constructor-arg ref="graphBuilder" />
63     </bean>
64
65     <bean id="champUUIDService" class="org.onap.champ.service.ChampUUIDService" >
66         <constructor-arg name="graphImpl" ref="graphImpl" />
67     </bean>
68
69     <bean id="cache" class="org.onap.champ.service.ChampTransactionCache" >
70         <constructor-arg name="txTimeOutInSec" value="600" />
71         <constructor-arg name="graphImpl" ref="graphImpl" />
72     </bean>
73
74     <bean id="champDataService" class="org.onap.champ.service.ChampDataService" >
75         <constructor-arg name="champUUIDService" ref="champUUIDService" />
76         <constructor-arg name="graphImpl" ref="graphImpl" />
77         <constructor-arg name="cache" ref="cache" />
78     </bean>
79
80     <bean id="champRestService" class="org.onap.champ.ChampRESTAPI" >
81         <constructor-arg name="champDataService" ref="champDataService" />
82         <constructor-arg name="champAsyncRequestProcessor"><null/></constructor-arg>
83     </bean>
84 </beans>