Merge "Add chart for redis cluster"
[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="hbase"/>
26         <entry key="storage.hostname" value="aai-hbase.{{.Release.Namespace}}"/>
27
28         <!-- Hbase Config -->
29         <entry key="storage.hbase.ext.hbase.zookeeper.property.clientPort" value="2181"/>
30         <entry key="storage.hbase.ext.zookeeper.znode.parent" value="/hbase"/>
31     </util:map>
32
33     <!-- Janus Implementation -->
34     <bean id="graphBuilder" class="org.onap.aai.champjanus.graph.impl.JanusChampGraphImpl$Builder">
35         <constructor-arg value="aaigraph.dev"/>
36         <constructor-arg ref="props" />
37     </bean>
38
39     <bean id="graphImpl" class="org.onap.aai.champjanus.graph.impl.JanusChampGraphImpl">
40         <constructor-arg ref="graphBuilder" />
41     </bean>
42
43     <bean id="champUUIDService" class="org.onap.champ.service.ChampUUIDService" >
44         <constructor-arg name="graphImpl" ref="graphImpl" />
45     </bean>
46
47     <bean id="cache" class="org.onap.champ.service.ChampTransactionCache" >
48         <constructor-arg name="txTimeOutInSec" value="600" />
49         <constructor-arg name="graphImpl" ref="graphImpl" />
50     </bean>
51
52     <bean id="champDataService" class="org.onap.champ.service.ChampDataService" >
53         <constructor-arg name="champUUIDService" ref="champUUIDService" />
54         <constructor-arg name="graphImpl" ref="graphImpl" />
55         <constructor-arg name="cache" ref="cache" />
56     </bean>
57
58     <bean id="champRestService" class="org.onap.champ.ChampRESTAPI" >
59         <constructor-arg name="champDataService" ref="champDataService" />
60         <constructor-arg name="champAsyncRequestProcessor"><null/></constructor-arg>
61     </bean>
62 </beans>