2 # Copyright © 2018 Amdocs, Bell Canada, AT&T
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
8 # http://www.apache.org/licenses/LICENSE-2.0
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.
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"
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
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" />
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"/>
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"/>
53 {{- $seed_size := default 1 .Values.global.cassandra.replicas | int -}}
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 }}"/>
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" />
64 <bean id="graphImpl" class="org.onap.aai.champjanus.graph.impl.JanusChampGraphImpl">
65 <constructor-arg ref="graphBuilder" />
68 <bean id="champUUIDService" class="org.onap.champ.service.ChampUUIDService" >
69 <constructor-arg name="graphImpl" ref="graphImpl" />
72 <bean id="cache" class="org.onap.champ.service.ChampTransactionCache" >
73 <constructor-arg name="txTimeOutInSec" value="600" />
74 <constructor-arg name="graphImpl" ref="graphImpl" />
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" />
83 <bean id="champRestService" class="org.onap.champ.ChampRESTAPI" >
84 <constructor-arg name="champDataService" ref="champDataService" />
85 <constructor-arg name="champAsyncRequestProcessor"><null/></constructor-arg>