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"
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
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" />
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"/>
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"/>
31 {{- $seed_size := default 1 .Values.global.cassandra.replicas | int -}}
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"/>
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" />
43 <bean id="graphImpl" class="org.onap.aai.champjanus.graph.impl.JanusChampGraphImpl">
44 <constructor-arg ref="graphBuilder" />
47 <bean id="champUUIDService" class="org.onap.champ.service.ChampUUIDService" >
48 <constructor-arg name="graphImpl" ref="graphImpl" />
51 <bean id="cache" class="org.onap.champ.service.ChampTransactionCache" >
52 <constructor-arg name="txTimeOutInSec" value="600" />
53 <constructor-arg name="graphImpl" ref="graphImpl" />
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" />
62 <bean id="champRestService" class="org.onap.champ.ChampRESTAPI" >
63 <constructor-arg name="champDataService" ref="champDataService" />
64 <constructor-arg name="champAsyncRequestProcessor"><null/></constructor-arg>