summaryrefslogtreecommitdiffstats
path: root/message-router/consumer/api
diff options
context:
space:
mode:
authorJessica Wagantall <jwagantall@linuxfoundation.org>2020-12-01 11:26:31 -0800
committerJessica Wagantall <jwagantall@linuxfoundation.org>2020-12-01 11:27:11 -0800
commit11510b43c277b8e1dd7e58d79785544810118c8e (patch)
treeb88a497c999d24b5f357ea9b26bc93e0990fd5e7 /message-router/consumer/api
parent5d2eab72fc4442f14108b41800cec88126913823 (diff)
Migrate sli-adaptor files
Migrate sli-adaptor repo files into a new "adaptors" directory. Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
Diffstat (limited to 'message-router/consumer/api')
-rwxr-xr-xmessage-router/consumer/api/pom.xml27
-rwxr-xr-xmessage-router/consumer/api/src/main/java/org/onap/ccsdk/sli/adaptors/messagerouter/consumer/api/ConsumerApi.java6
-rwxr-xr-xmessage-router/consumer/api/src/main/java/org/onap/ccsdk/sli/adaptors/messagerouter/consumer/api/PollingConsumer.java7
-rwxr-xr-xmessage-router/consumer/api/src/main/java/org/onap/ccsdk/sli/adaptors/messagerouter/consumer/api/PullingConsumer.java7
-rwxr-xr-xmessage-router/consumer/api/src/main/java/org/onap/ccsdk/sli/adaptors/messagerouter/consumer/api/RequestHandler.java5
5 files changed, 0 insertions, 52 deletions
diff --git a/message-router/consumer/api/pom.xml b/message-router/consumer/api/pom.xml
deleted file mode 100755
index e77eb9793..000000000
--- a/message-router/consumer/api/pom.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
-
- <parent>
- <groupId>org.onap.ccsdk.sli.adaptors.messagerouter</groupId>
- <artifactId>consumer.aggregate</artifactId>
- <version>1.1.1-SNAPSHOT</version>
- </parent>
-
- <artifactId>consumer.api</artifactId>
- <packaging>bundle</packaging>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.felix</groupId>
- <artifactId>maven-bundle-plugin</artifactId>
- <configuration>
- <instructions>
- <Export-Package>org.onap.ccsdk.sli.adaptors.messagerouter.consumer.api</Export-Package>
- </instructions>
- </configuration>
- </plugin>
- </plugins>
- </build>
-</project>
diff --git a/message-router/consumer/api/src/main/java/org/onap/ccsdk/sli/adaptors/messagerouter/consumer/api/ConsumerApi.java b/message-router/consumer/api/src/main/java/org/onap/ccsdk/sli/adaptors/messagerouter/consumer/api/ConsumerApi.java
deleted file mode 100755
index 41deade85..000000000
--- a/message-router/consumer/api/src/main/java/org/onap/ccsdk/sli/adaptors/messagerouter/consumer/api/ConsumerApi.java
+++ /dev/null
@@ -1,6 +0,0 @@
-package org.onap.ccsdk.sli.adaptors.messagerouter.consumer.api;
-
-public interface ConsumerApi extends AutoCloseable {
- //registers a handler to handle a specific topic, should be called only once per client
- public void registerHandler(String topic, RequestHandler requestHandler);
-}
diff --git a/message-router/consumer/api/src/main/java/org/onap/ccsdk/sli/adaptors/messagerouter/consumer/api/PollingConsumer.java b/message-router/consumer/api/src/main/java/org/onap/ccsdk/sli/adaptors/messagerouter/consumer/api/PollingConsumer.java
deleted file mode 100755
index 29fc1c764..000000000
--- a/message-router/consumer/api/src/main/java/org/onap/ccsdk/sli/adaptors/messagerouter/consumer/api/PollingConsumer.java
+++ /dev/null
@@ -1,7 +0,0 @@
-package org.onap.ccsdk.sli.adaptors.messagerouter.consumer.api;
-
-public interface PollingConsumer extends ConsumerApi {
-
- // Starts polling message router for messages, won't stop until close it called
- void start();
-}
diff --git a/message-router/consumer/api/src/main/java/org/onap/ccsdk/sli/adaptors/messagerouter/consumer/api/PullingConsumer.java b/message-router/consumer/api/src/main/java/org/onap/ccsdk/sli/adaptors/messagerouter/consumer/api/PullingConsumer.java
deleted file mode 100755
index 1187aaceb..000000000
--- a/message-router/consumer/api/src/main/java/org/onap/ccsdk/sli/adaptors/messagerouter/consumer/api/PullingConsumer.java
+++ /dev/null
@@ -1,7 +0,0 @@
-package org.onap.ccsdk.sli.adaptors.messagerouter.consumer.api;
-
-public interface PullingConsumer extends ConsumerApi {
-
- //Pulls a single batch of messages
- void pull();
-}
diff --git a/message-router/consumer/api/src/main/java/org/onap/ccsdk/sli/adaptors/messagerouter/consumer/api/RequestHandler.java b/message-router/consumer/api/src/main/java/org/onap/ccsdk/sli/adaptors/messagerouter/consumer/api/RequestHandler.java
deleted file mode 100755
index 07a117843..000000000
--- a/message-router/consumer/api/src/main/java/org/onap/ccsdk/sli/adaptors/messagerouter/consumer/api/RequestHandler.java
+++ /dev/null
@@ -1,5 +0,0 @@
-package org.onap.ccsdk.sli.adaptors.messagerouter.consumer.api;
-
-public interface RequestHandler {
- public void handleRequest(String topic, String requestBody);
-}