Change graph name to match resources
[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"/>
25         <entry key="storage.backend" value="cassandra"/>
26         <entry key="storage.cassandra.read-consistency-level" value="LOCAL_QUORUM"/>
27         <entry key="storage.cassandra.write-consistency-level" value="LOCAL_QUORUM"/>
28         <entry key="storage.cassandra.replication-factor" value="3"/>
29         <entry key="storage.cassandra.replication-strategy-class" value="org.apache.cassandra.locator.SimpleStrategy"/>
30
31         {{- $seed_size := default 1 .Values.global.cassandra.replicas | int -}}
32         {{- $global := . }}
33         <entry key="storage.hostname" value="{{- range $i, $e := until $seed_size }}{{ $global.Release.Name }}-aai-cassandra-{{ $i }},{{- end }}"/>
34         <entry key="storage.port" value="9160"/>
35     </util:map>
36
37     <!-- Janus Implementation -->
38     <bean id="graphBuilder" class="org.onap.aai.champjanus.graph.impl.JanusChampGraphImpl$Builder">
39         <constructor-arg value="aaigraph"/>
40         <constructor-arg ref="props" />
41     </bean>
42
43     <bean id="graphImpl" class="org.onap.aai.champjanus.graph.impl.JanusChampGraphImpl">
44         <constructor-arg ref="graphBuilder" />
45     </bean>
46
47     <bean id="champUUIDService" class="org.onap.champ.service.ChampUUIDService" >
48         <constructor-arg name="graphImpl" ref="graphImpl" />
49     </bean>
50
51     <bean id="cache" class="org.onap.champ.service.ChampTransactionCache" >
52         <constructor-arg name="txTimeOutInSec" value="600" />
53         <constructor-arg name="graphImpl" ref="graphImpl" />
54     </bean>
55
56     <bean id="champDataService" class="org.onap.champ.service.ChampDataService" >
57         <constructor-arg name="champUUIDService" ref="champUUIDService" />
58         <constructor-arg name="graphImpl" ref="graphImpl" />
59         <constructor-arg name="cache" ref="cache" />
60     </bean>
61
62     <bean id="champRestService" class="org.onap.champ.ChampRESTAPI" >
63         <constructor-arg name="champDataService" ref="champDataService" />
64         <constructor-arg name="champAsyncRequestProcessor"><null/></constructor-arg>
65     </bean>
66 </beans>