Merge "Update Keystore cert"
[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="3"/>
51         <entry key="storage.cassandra.replication-strategy-class" value="org.apache.cassandra.locator.SimpleStrategy"/>
52
53         {{- $seed_size := default 1 .Values.global.cassandra.replicas | int -}}
54         {{- $global := . }}
55         <entry key="storage.hostname" value="{{- range $i, $e := until $seed_size }}{{ $global.Release.Name }}-{{$global.Values.global.cassandra.serviceName}}-{{ $i }}.{{$global.Values.global.cassandra.serviceName}},{{- end }}"/>
56     </util:map>
57
58     <!-- Janus Implementation -->
59     <bean id="graphBuilder" class="org.onap.aai.champjanus.graph.impl.JanusChampGraphImpl$Builder">
60         <constructor-arg value="aaigraph"/>
61         <constructor-arg ref="props" />
62     </bean>
63
64     <bean id="graphImpl" class="org.onap.aai.champjanus.graph.impl.JanusChampGraphImpl">
65         <constructor-arg ref="graphBuilder" />
66     </bean>
67
68     <bean id="champUUIDService" class="org.onap.champ.service.ChampUUIDService" >
69         <constructor-arg name="graphImpl" ref="graphImpl" />
70     </bean>
71
72     <bean id="cache" class="org.onap.champ.service.ChampTransactionCache" >
73         <constructor-arg name="txTimeOutInSec" value="600" />
74         <constructor-arg name="graphImpl" ref="graphImpl" />
75     </bean>
76
77     <bean id="champDataService" class="org.onap.champ.service.ChampDataService" >
78         <constructor-arg name="champUUIDService" ref="champUUIDService" />
79         <constructor-arg name="graphImpl" ref="graphImpl" />
80         <constructor-arg name="cache" ref="cache" />
81     </bean>
82
83     <bean id="champRestService" class="org.onap.champ.ChampRESTAPI" >
84         <constructor-arg name="champDataService" ref="champDataService" />
85         <constructor-arg name="champAsyncRequestProcessor"><null/></constructor-arg>
86     </bean>
87 </beans>