diff options
Diffstat (limited to 'platform-logic')
5 files changed, 129 insertions, 0 deletions
diff --git a/platform-logic/a1Adapter-api/pom.xml b/platform-logic/a1Adapter-api/pom.xml new file mode 100644 index 00000000..032613f0 --- /dev/null +++ b/platform-logic/a1Adapter-api/pom.xml @@ -0,0 +1,54 @@ +<?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.distribution</groupId> + <artifactId>distribution-platform-logic</artifactId> + <version>0.7.0-SNAPSHOT</version> + </parent> + + <artifactId>platform-logic-a1Adapterapi</artifactId> + <version>0.7.0-SNAPSHOT</version> + <packaging>pom</packaging> + + <name>ccsdk-distribution :: platform-logic :: ${project.artifactId}</name> + <description>Contains platform-level service logic for a1Adapter to interface with A1 Mediator</description> + + <build> + <plugins> + <plugin> + <artifactId>maven-resources-plugin</artifactId> + <version>2.6</version> + <executions> + <execution> + <id>copy-version</id> + <goals> + <goal>copy-resources</goal> + </goals><!-- here the phase you need --> + <phase>validate</phase> + <configuration> + <outputDirectory>../target/graphs/a1Adapterapi</outputDirectory> + <resources> + <resource> + <directory>src/main/xml</directory> + <includes> + <include>*.xml</include> + </includes> + <filtering>true</filtering> + </resource> + <resource> + <directory>src/main/resources</directory> + <includes> + <include>graph.versions</include> + </includes> + <filtering>true</filtering> + </resource> + </resources> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> +</project> diff --git a/platform-logic/a1Adapter-api/src/main/json/A1-ADAPTER-API_getHealthCheck.json b/platform-logic/a1Adapter-api/src/main/json/A1-ADAPTER-API_getHealthCheck.json new file mode 100644 index 00000000..e7b79452 --- /dev/null +++ b/platform-logic/a1Adapter-api/src/main/json/A1-ADAPTER-API_getHealthCheck.json @@ -0,0 +1,61 @@ +[ + { + "id": "d160ae95.22121", + "type": "dgstart", + "name": "DGSTART", + "outputs": 1, + "x": 146, + "y": 57, + "z": "3d3f45b8.78bdda", + "wires": [ + [ + "7af2c12d.dfc56" + ] + ] + }, + { + "id": "7af2c12d.dfc56", + "type": "service-logic", + "name": "A1-ADAPTER-API ${project.version}", + "module": "A1-ADAPTER-API", + "version": "${project.version}", + "comments": "", + "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='A1-ADAPTER-API' version='${project.version}'>", + "outputs": 1, + "x": 186, + "y": 123, + "z": "3d3f45b8.78bdda", + "wires": [ + [ + "f4915cbe.123c4" + ] + ] + }, + { + "id": "f4915cbe.123c4", + "type": "method", + "name": "method getHealthCheck", + "xml": "<method rpc='getHealthCheck' mode='sync'>\n", + "comments": "", + "outputs": 1, + "x": 228, + "y": 189, + "z": "3d3f45b8.78bdda", + "wires": [ + [ + "9a26ac28.f0c6b" + ] + ] + }, + { + "id": "9a26ac28.f0c6b", + "type": "set", + "name": "set return message", + "xml": "<set>\n<parameter name='response-code' value='200' />\n<parameter name='response-message' value='A1 Adapter is healthy'/>\n<parameter name='health-status' value='200'/>\n<parameter name='ack-final' value='Y'/>", + "comments": "", + "x": 279, + "y": 269, + "z": "3d3f45b8.78bdda", + "wires": [] + } +]
\ No newline at end of file diff --git a/platform-logic/a1Adapter-api/src/main/resources/graph.versions b/platform-logic/a1Adapter-api/src/main/resources/graph.versions new file mode 100644 index 00000000..a40dd436 --- /dev/null +++ b/platform-logic/a1Adapter-api/src/main/resources/graph.versions @@ -0,0 +1 @@ +A1-ADAPTER-API getHealthCheck ${project.version} sync diff --git a/platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_getHealthCheck.xml b/platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_getHealthCheck.xml new file mode 100644 index 00000000..6a9395a5 --- /dev/null +++ b/platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_getHealthCheck.xml @@ -0,0 +1,12 @@ +<service-logic + xmlns='http://www.onap.org/sdnc/svclogic' + xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='A1-ADAPTER-API' version='${project.version}'> + <method rpc='getHealthCheck' mode='sync'> + <set> + <parameter name='response-code' value='200' /> + <parameter name='response-message' value='A1 Adapter is healthy'/> + <parameter name='health-status' value='200'/> + <parameter name='ack-final' value='Y'/> + </set> + </method> +</service-logic>
\ No newline at end of file diff --git a/platform-logic/pom.xml b/platform-logic/pom.xml index 0205a614..cef7af0c 100644 --- a/platform-logic/pom.xml +++ b/platform-logic/pom.xml @@ -22,6 +22,7 @@ <module>asdc-api</module> <module>sliapi</module> <module>oofpcipoc-api</module> + <module>a1Adapter-api</module> <module>restapi-templates</module> <module>installer</module> </modules> |