Merge "Fixes for SDNC portal pod"
[oom.git] / kubernetes / aai / charts / aai-champ / resources / config / dynamic / conf / champ-beans.xml
1 <beans xmlns="http://www.springframework.org/schema/beans"
2 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 xmlns:util="http://www.springframework.org/schema/util"
4 xsi:schemaLocation="
5        http://www.springframework.org/schema/beans
6        http://www.springframework.org/schema/beans/spring-beans.xsd
7        http://www.springframework.org/schema/util
8        http://www.springframework.org/schema/util/spring-util.xsd
9        ">
10
11     <!-- Event publisher to pass to the Champ library for logging raw graph
12          events (Kafka implementation). -->
13     <bean id="champEventPublisher" class="org.onap.aai.event.client.KafkaEventPublisher" >
14         <constructor-arg name="hosts" value="global-kafka.{{.Release.Namespace}}:9092" />
15         <constructor-arg name="topic" value="champRawEvents" />
16     </bean>
17
18     <!-- Graph Implementation Configuration-->
19     <util:map id="props" map-class="java.util.HashMap" key-type="java.lang.String" value-type="java.lang.Object">
20         <entry key="champcore.event.stream.buffer.capacity" value="50" value-type="java.lang.Integer"/>
21         <entry key="champcore.event.stream.publisher-pool-size" value="10" value-type="java.lang.Integer"/>
22         <entry key="champcore.event.stream.publisher" value-ref="champEventPublisher"/>
23
24         <entry key="graph.name" value="aaigraph.dev"/>
25         <entry key="storage.backend" value="cassandra"/>
26         <entry key="storage.cassandra.keyspace" value="aaigraph"/>
27         <entry key="storage.cassandra.read-consistency-level" value="LOCAL_QUORUM"/>
28         <entry key="storage.cassandra.write-consistency-level" value="LOCAL_QUORUM"/>
29         <entry key="storage.cassandra.replication-factor" value="3"/>
30         <entry key="storage.cassandra.replication-strategy-class" value="org.apache.cassandra.locator.SimpleStrategy"/>
31
32         {{- $seed_size := default 1 .Values.global.cassandra.replicas | int -}}
33         {{- $global := . }}
34         <entry key="storage.hostname" value="{{- range $i, $e := until $seed_size }}{{ $global.Release.Name }}-aai-cassandra-{{ $i }},{{- end }}"/>
35         <entry key="storage.port" value="9160"/>
36     </util:map>
37
38     <!-- Janus Implementation -->
39     <bean id="graphBuilder" class="org.onap.aai.champjanus.graph.impl.JanusChampGraphImpl$Builder">
40         <constructor-arg value="aaigraph.dev"/>
41         <constructor-arg ref="props" />
42     </bean>
43
44     <bean id="graphImpl" class="org.onap.aai.champjanus.graph.impl.JanusChampGraphImpl">
45         <constructor-arg ref="graphBuilder" />
46     </bean>
47
48     <bean id="champUUIDService" class="org.onap.champ.service.ChampUUIDService" >
49         <constructor-arg name="graphImpl" ref="graphImpl" />
50     </bean>
51
52     <bean id="cache" class="org.onap.champ.service.ChampTransactionCache" >
53         <constructor-arg name="txTimeOutInSec" value="600" />
54         <constructor-arg name="graphImpl" ref="graphImpl" />
55     </bean>
56
57     <bean id="champDataService" class="org.onap.champ.service.ChampDataService" >
58         <constructor-arg name="champUUIDService" ref="champUUIDService" />
59         <constructor-arg name="graphImpl" ref="graphImpl" />
60         <constructor-arg name="cache" ref="cache" />
61     </bean>
62
63     <bean id="champRestService" class="org.onap.champ.ChampRESTAPI" >
64         <constructor-arg name="champDataService" ref="champDataService" />
65         <constructor-arg name="champAsyncRequestProcessor"><null/></constructor-arg>
66     </bean>
67 </beans>