summaryrefslogtreecommitdiffstats
path: root/spike-service
diff options
context:
space:
mode:
Diffstat (limited to 'spike-service')
-rw-r--r--spike-service/appconfig/auth/tomcat_keystorebin0 -> 2214 bytes
-rw-r--r--spike-service/appconfig/model/edge_props/edge_properties_v10.json10
-rw-r--r--spike-service/appconfig/model/edge_props/edge_properties_v11.json6
-rw-r--r--spike-service/appconfig/model/edge_props/edge_properties_v12.json6
-rw-r--r--spike-service/appconfig/model/edge_props/edge_properties_v13.json6
-rw-r--r--spike-service/appconfig/model/edge_props/edge_properties_v14.json6
-rw-r--r--spike-service/appconfig/model/edge_props/edge_properties_v7.json10
-rw-r--r--spike-service/appconfig/model/edge_props/edge_properties_v8.json10
-rw-r--r--spike-service/appconfig/model/edge_props/edge_properties_v9.json10
-rw-r--r--spike-service/appconfig/spike.properties7
-rw-r--r--spike-service/dynamic/conf/spike-beans.xml49
11 files changed, 120 insertions, 0 deletions
diff --git a/spike-service/appconfig/auth/tomcat_keystore b/spike-service/appconfig/auth/tomcat_keystore
new file mode 100644
index 0000000..9eec841
--- /dev/null
+++ b/spike-service/appconfig/auth/tomcat_keystore
Binary files differ
diff --git a/spike-service/appconfig/model/edge_props/edge_properties_v10.json b/spike-service/appconfig/model/edge_props/edge_properties_v10.json
new file mode 100644
index 0000000..7cbddae
--- /dev/null
+++ b/spike-service/appconfig/model/edge_props/edge_properties_v10.json
@@ -0,0 +1,10 @@
+{
+ "isParent":"java.lang.Boolean",
+ "isParent-REV":"java.lang.Boolean",
+ "usesResource":"java.lang.Boolean",
+ "usesResource-REV":"java.lang.Boolean",
+ "SVC-INFRA":"java.lang.Boolean",
+ "SVC-INFRA-REV":"java.lang.Boolean",
+ "hasDelTarget":"java.lang.Boolean",
+ "hasDelTarget-REV":"java.lang.Boolean"
+}
diff --git a/spike-service/appconfig/model/edge_props/edge_properties_v11.json b/spike-service/appconfig/model/edge_props/edge_properties_v11.json
new file mode 100644
index 0000000..8d00636
--- /dev/null
+++ b/spike-service/appconfig/model/edge_props/edge_properties_v11.json
@@ -0,0 +1,6 @@
+{
+ "contains-other-v": "java.lang.String",
+ "delete-other-v": "java.lang.String",
+ "SVC-INFRA": "java.lang.String",
+ "prevent-delete": "java.lang.String"
+} \ No newline at end of file
diff --git a/spike-service/appconfig/model/edge_props/edge_properties_v12.json b/spike-service/appconfig/model/edge_props/edge_properties_v12.json
new file mode 100644
index 0000000..8d00636
--- /dev/null
+++ b/spike-service/appconfig/model/edge_props/edge_properties_v12.json
@@ -0,0 +1,6 @@
+{
+ "contains-other-v": "java.lang.String",
+ "delete-other-v": "java.lang.String",
+ "SVC-INFRA": "java.lang.String",
+ "prevent-delete": "java.lang.String"
+} \ No newline at end of file
diff --git a/spike-service/appconfig/model/edge_props/edge_properties_v13.json b/spike-service/appconfig/model/edge_props/edge_properties_v13.json
new file mode 100644
index 0000000..8d00636
--- /dev/null
+++ b/spike-service/appconfig/model/edge_props/edge_properties_v13.json
@@ -0,0 +1,6 @@
+{
+ "contains-other-v": "java.lang.String",
+ "delete-other-v": "java.lang.String",
+ "SVC-INFRA": "java.lang.String",
+ "prevent-delete": "java.lang.String"
+} \ No newline at end of file
diff --git a/spike-service/appconfig/model/edge_props/edge_properties_v14.json b/spike-service/appconfig/model/edge_props/edge_properties_v14.json
new file mode 100644
index 0000000..8d00636
--- /dev/null
+++ b/spike-service/appconfig/model/edge_props/edge_properties_v14.json
@@ -0,0 +1,6 @@
+{
+ "contains-other-v": "java.lang.String",
+ "delete-other-v": "java.lang.String",
+ "SVC-INFRA": "java.lang.String",
+ "prevent-delete": "java.lang.String"
+} \ No newline at end of file
diff --git a/spike-service/appconfig/model/edge_props/edge_properties_v7.json b/spike-service/appconfig/model/edge_props/edge_properties_v7.json
new file mode 100644
index 0000000..7cbddae
--- /dev/null
+++ b/spike-service/appconfig/model/edge_props/edge_properties_v7.json
@@ -0,0 +1,10 @@
+{
+ "isParent":"java.lang.Boolean",
+ "isParent-REV":"java.lang.Boolean",
+ "usesResource":"java.lang.Boolean",
+ "usesResource-REV":"java.lang.Boolean",
+ "SVC-INFRA":"java.lang.Boolean",
+ "SVC-INFRA-REV":"java.lang.Boolean",
+ "hasDelTarget":"java.lang.Boolean",
+ "hasDelTarget-REV":"java.lang.Boolean"
+}
diff --git a/spike-service/appconfig/model/edge_props/edge_properties_v8.json b/spike-service/appconfig/model/edge_props/edge_properties_v8.json
new file mode 100644
index 0000000..7cbddae
--- /dev/null
+++ b/spike-service/appconfig/model/edge_props/edge_properties_v8.json
@@ -0,0 +1,10 @@
+{
+ "isParent":"java.lang.Boolean",
+ "isParent-REV":"java.lang.Boolean",
+ "usesResource":"java.lang.Boolean",
+ "usesResource-REV":"java.lang.Boolean",
+ "SVC-INFRA":"java.lang.Boolean",
+ "SVC-INFRA-REV":"java.lang.Boolean",
+ "hasDelTarget":"java.lang.Boolean",
+ "hasDelTarget-REV":"java.lang.Boolean"
+}
diff --git a/spike-service/appconfig/model/edge_props/edge_properties_v9.json b/spike-service/appconfig/model/edge_props/edge_properties_v9.json
new file mode 100644
index 0000000..7cbddae
--- /dev/null
+++ b/spike-service/appconfig/model/edge_props/edge_properties_v9.json
@@ -0,0 +1,10 @@
+{
+ "isParent":"java.lang.Boolean",
+ "isParent-REV":"java.lang.Boolean",
+ "usesResource":"java.lang.Boolean",
+ "usesResource-REV":"java.lang.Boolean",
+ "SVC-INFRA":"java.lang.Boolean",
+ "SVC-INFRA-REV":"java.lang.Boolean",
+ "hasDelTarget":"java.lang.Boolean",
+ "hasDelTarget-REV":"java.lang.Boolean"
+}
diff --git a/spike-service/appconfig/spike.properties b/spike-service/appconfig/spike.properties
new file mode 100644
index 0000000..00b37b5
--- /dev/null
+++ b/spike-service/appconfig/spike.properties
@@ -0,0 +1,7 @@
+# Spike configuration
+
+spike.event.poll.interval=30000
+spike.event.offset.period= 10000
+spike.event.queue.capacity=10000
+spike.event.queue.delay=10000
+spike.props.reserved=source-of-truth,last-mod-source-of-truth,aai-created-ts,aai-last-mod-ts \ No newline at end of file
diff --git a/spike-service/dynamic/conf/spike-beans.xml b/spike-service/dynamic/conf/spike-beans.xml
new file mode 100644
index 0000000..befeac2
--- /dev/null
+++ b/spike-service/dynamic/conf/spike-beans.xml
@@ -0,0 +1,49 @@
+<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="eventConsumer" class="com.att.ecomp.event.client.KafkaEventConsumer" >
+ <constructor-arg name="topic" value="mytopic" />
+ <constructor-arg name="groupId" value="mygroupId" />
+ <constructor-arg name="hosts" ref="hosts" />
+ </bean>
+ -->
+
+ <bean id="eventPublisher" class="org.onap.aai.event.client.DMaaPEventPublisher">
+ <constructor-arg name="host" value="mr.api.simpledemo.openecomp.org:3904" />
+ <constructor-arg name="topic" value="SpikeRawEventsOnap" />
+ <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>
+
+ <bean id="eventConsumer" class="org.onap.aai.event.client.DMaaPEventConsumer">
+ <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="consumerGroup" value="spike-onap" />
+ <constructor-arg name="consumerId" value="spike-onap" />
+ <constructor-arg name="timeoutMs" value="1000" />
+ <constructor-arg name="messageLimit" value="100" />
+ <constructor-arg name="transportType" value="HTTPAUTH" />
+ <constructor-arg name="protocol" value="http" />
+ <constructor-arg name="filter">
+ <null />
+ </constructor-arg>
+ </bean>
+
+ <bean id="spikeService" class="org.onap.aai.spike.service.SpikeService" init-method="startup">
+ <constructor-arg ref="eventConsumer" />
+ <constructor-arg ref="eventPublisher" />
+ </bean>
+</beans> \ No newline at end of file