a239a80783d61d257294ba5027f1d60164603562
[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-onap.dev"/>
29         <entry key="storage.backend" value="hbase"/>
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         <!-- Cassandra Config -->
37         <entry key="storage.port" value="2181"/>
38     </util:map>
39
40     <!-- Titan Implementation -->
41     <bean id="graphBuilder" class="org.onap.aai.champtitan.graph.impl.TitanChampGraphImpl$Builder">
42         <constructor-arg value="aaigraph-onap.dev"/>
43         <constructor-arg ref="props" />
44     </bean>
45     <bean id="graphImpl" class="org.onap.aai.champtitan.graph.impl.TitanChampGraphImpl">
46         <constructor-arg ref="graphBuilder" />
47     </bean>
48
49     <!-- Janus Implementation -->
50 <!--
51     <bean id="graphBuilder" class="org.onap.aai.champjanus.graph.impl.JanusChampGraphImpl$Builder">
52         <constructor-arg value="<%= @CHAMP_GRAPH_NAME %>"/>
53         <constructor-arg ref="props"/>
54     </bean>
55     <bean id="graphImpl" class="org.onap.aai.champjanus.graph.impl.JanusChampGraphImpl">
56         <constructor-arg ref="graphBuilder"/>
57     </bean>
58 -->
59
60     <bean id="champUUIDService" class="org.onap.champ.service.ChampUUIDService">
61         <constructor-arg name="graphImpl" ref="graphImpl"/>
62     </bean>
63
64     <bean id="cache" class="org.onap.champ.service.ChampTransactionCache">
65         <constructor-arg name="txTimeOutInSec" value="600"/>
66         <constructor-arg name="graphImpl" ref="graphImpl"/>
67     </bean>
68
69     <bean id="champDataService" class="org.onap.champ.service.ChampDataService">
70         <constructor-arg name="champUUIDService" ref="champUUIDService"/>
71         <constructor-arg name="graphImpl" ref="graphImpl"/>
72         <constructor-arg name="cache" ref="cache"/>
73     </bean>
74
75     <bean id="champRestService" class="org.onap.champ.ChampRESTAPI">
76         <constructor-arg name="champDataService" ref="champDataService"/>
77         <constructor-arg name="champAsyncRequestProcessor" ref="champAsyncRequestProcessor"/>
78     </bean>
79 </beans>