Fix test-config for DR, Champ, and Gizmo
[aai/test-config.git] / champ-service / 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     <bean id="champEventPublisher" class="org.onap.aai.event.client.DMaaPEventPublisher">
12         <constructor-arg name="host" value="mr.api.simpledemo.openecomp.org:3904"/>
13         <constructor-arg name="topic" value="champRawEventsOnap"/>
14         <constructor-arg name="username" value="test"/>
15         <constructor-arg name="password" value="test"/>
16         <constructor-arg name="maxBatchSize" value="100"/>
17         <constructor-arg name="maxAgeMs" value="250"/>
18         <constructor-arg name="delayBetweenBatchesMs" value="50"/>
19         <constructor-arg name="transportType" value="HTTPAUTH"/>
20     </bean>
21
22     <!-- Graph Implementation Configuration-->
23     <util:map id="props" map-class="java.util.HashMap" key-type="java.lang.String" value-type="java.lang.Object">
24         <entry key="champcore.event.stream.buffer.capacity" value="50" value-type="java.lang.Integer"/>
25         <entry key="champcore.event.stream.publisher-pool-size" value="10" value-type="java.lang.Integer"/>
26         <entry key="champcore.event.stream.publisher" value-ref="champEventPublisher"/>
27
28         <entry key="graph.name" value="aaigraph"/>
29         <entry key="storage.backend" value="cassandra"/>
30         <entry key="storage.hostname" value="aai.hbase.simpledemo.onap.org"/>
31
32         <!-- Hbase Config 
33         <entry key="storage.hbase.ext.hbase.zookeeper.property.clientPort" value="2181"/>
34         <entry key="storage.hbase.ext.zookeeper.znode.parent" value="/hbase-unsecure"/>
35         -->
36
37         <!-- Cassandra Config -->
38         <entry key="storage.port" value="9160"/>
39     </util:map>
40
41     <!-- Titan Implementation -->
42     <!--
43     <bean id="graphBuilder" class="org.onap.aai.champtitan.graph.impl.TitanChampGraphImpl$Builder">
44         <constructor-arg value="aaigraph-onap.dev"/>
45         <constructor-arg ref="props" />
46     </bean>
47     <bean id="graphImpl" class="org.onap.aai.champtitan.graph.impl.TitanChampGraphImpl">
48         <constructor-arg ref="graphBuilder" />
49     </bean>
50     -->
51
52     <!-- Janus Implementation -->
53     <bean id="graphBuilder" class="org.onap.aai.champjanus.graph.impl.JanusChampGraphImpl$Builder">
54         <constructor-arg value="aaigraph"/>
55         <constructor-arg ref="props"/>
56     </bean>
57     <bean id="graphImpl" class="org.onap.aai.champjanus.graph.impl.JanusChampGraphImpl">
58         <constructor-arg ref="graphBuilder"/>
59     </bean>
60
61     <bean id="champUUIDService" class="org.onap.champ.service.ChampUUIDService">
62         <constructor-arg name="graphImpl" ref="graphImpl"/>
63     </bean>
64
65     <bean id="cache" class="org.onap.champ.service.ChampTransactionCache">
66         <constructor-arg name="txTimeOutInSec" value="600"/>
67         <constructor-arg name="graphImpl" ref="graphImpl"/>
68     </bean>
69
70     <bean id="champDataService" class="org.onap.champ.service.ChampDataService">
71         <constructor-arg name="champUUIDService" ref="champUUIDService"/>
72         <constructor-arg name="graphImpl" ref="graphImpl"/>
73         <constructor-arg name="cache" ref="cache"/>
74     </bean>
75
76     <bean id="champRestService" class="org.onap.champ.ChampRESTAPI">
77         <constructor-arg name="champDataService" ref="champDataService"/>
78         <constructor-arg name="champAsyncRequestProcessor" ref="champAsyncRequestProcessor"/>
79     </bean>
80 </beans>