blob: a239a80783d61d257294ba5027f1d60164603562 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:util="http://www.springframework.org/schema/util"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/util
http://www.springframework.org/schema/util/spring-util.xsd
">
<bean id="champEventPublisher" class="org.onap.aai.event.client.DMaaPEventPublisher">
<constructor-arg name="host" value="mr.api.simpledemo.openecomp.org:3904"/>
<constructor-arg name="topic" value="champRawEventsOnap"/>
<constructor-arg name="username" value="test"/>
<constructor-arg name="password" value="test"/>
<constructor-arg name="maxBatchSize" value="100"/>
<constructor-arg name="maxAgeMs" value="250"/>
<constructor-arg name="delayBetweenBatchesMs" value="50"/>
<constructor-arg name="transportType" value="HTTPAUTH"/>
</bean>
<!-- Graph Implementation Configuration-->
<util:map id="props" map-class="java.util.HashMap" key-type="java.lang.String" value-type="java.lang.Object">
<entry key="champcore.event.stream.buffer.capacity" value="50" value-type="java.lang.Integer"/>
<entry key="champcore.event.stream.publisher-pool-size" value="10" value-type="java.lang.Integer"/>
<entry key="champcore.event.stream.publisher" value-ref="champEventPublisher"/>
<entry key="graph.name" value="aaigraph-onap.dev"/>
<entry key="storage.backend" value="hbase"/>
<entry key="storage.hostname" value="aai.hbase.simpledemo.onap.org"/>
<!-- Hbase Config -->
<entry key="storage.hbase.ext.hbase.zookeeper.property.clientPort" value="2181"/>
<entry key="storage.hbase.ext.zookeeper.znode.parent" value="/hbase-unsecure"/>
<!-- Cassandra Config -->
<entry key="storage.port" value="2181"/>
</util:map>
<!-- Titan Implementation -->
<bean id="graphBuilder" class="org.onap.aai.champtitan.graph.impl.TitanChampGraphImpl$Builder">
<constructor-arg value="aaigraph-onap.dev"/>
<constructor-arg ref="props" />
</bean>
<bean id="graphImpl" class="org.onap.aai.champtitan.graph.impl.TitanChampGraphImpl">
<constructor-arg ref="graphBuilder" />
</bean>
<!-- Janus Implementation -->
<!--
<bean id="graphBuilder" class="org.onap.aai.champjanus.graph.impl.JanusChampGraphImpl$Builder">
<constructor-arg value="<%= @CHAMP_GRAPH_NAME %>"/>
<constructor-arg ref="props"/>
</bean>
<bean id="graphImpl" class="org.onap.aai.champjanus.graph.impl.JanusChampGraphImpl">
<constructor-arg ref="graphBuilder"/>
</bean>
-->
<bean id="champUUIDService" class="org.onap.champ.service.ChampUUIDService">
<constructor-arg name="graphImpl" ref="graphImpl"/>
</bean>
<bean id="cache" class="org.onap.champ.service.ChampTransactionCache">
<constructor-arg name="txTimeOutInSec" value="600"/>
<constructor-arg name="graphImpl" ref="graphImpl"/>
</bean>
<bean id="champDataService" class="org.onap.champ.service.ChampDataService">
<constructor-arg name="champUUIDService" ref="champUUIDService"/>
<constructor-arg name="graphImpl" ref="graphImpl"/>
<constructor-arg name="cache" ref="cache"/>
</bean>
<bean id="champRestService" class="org.onap.champ.ChampRESTAPI">
<constructor-arg name="champDataService" ref="champDataService"/>
<constructor-arg name="champAsyncRequestProcessor" ref="champAsyncRequestProcessor"/>
</bean>
</beans>
|