summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorwaqas.ikram <waqas.ikram@ericsson.com>2018-06-18 14:04:52 +0100
committerwaqas.ikram <waqas.ikram@ericsson.com>2018-06-20 09:42:07 +0100
commitbb89ed3ad0765d323b6b026fc5fdd3b4a57fcc31 (patch)
tree568942d83795523b4d9d908b692170863258e22a /packages
parent04c9f0fe95c3f750a2bd2b7142f8eebf5ee39381 (diff)
Adding package module
Change-Id: I2513f00a3f49d4428470c173a717ccb9fbc49de5 Issue-ID: POLICY-863 Signed-off-by: waqas.ikram <waqas.ikram@ericsson.com>
Diffstat (limited to 'packages')
-rw-r--r--packages/apex-pdp-package-full/pom.xml503
-rw-r--r--packages/apex-pdp-package-full/src/main/package/bin/apexApps.bat183
-rwxr-xr-xpackages/apex-pdp-package-full/src/main/package/bin/apexApps.sh165
-rwxr-xr-xpackages/apex-pdp-package-full/src/main/package/bin/apexBash.sh32
-rw-r--r--packages/apex-pdp-package-full/src/main/package/bin/apexCLIEditor.bat52
-rwxr-xr-xpackages/apex-pdp-package-full/src/main/package/bin/apexCLIEditor.sh50
-rw-r--r--packages/apex-pdp-package-full/src/main/package/bin/apexEngine.bat52
-rwxr-xr-xpackages/apex-pdp-package-full/src/main/package/bin/apexEngine.sh73
-rw-r--r--packages/apex-pdp-package-full/src/main/package/bin/apexRESTEditor.bat52
-rwxr-xr-xpackages/apex-pdp-package-full/src/main/package/bin/apexRESTEditor.sh51
-rw-r--r--packages/apex-pdp-package-full/src/main/package/control/control27
-rw-r--r--packages/apex-pdp-package-full/src/main/package/control/postinst59
-rw-r--r--packages/apex-pdp-package-full/src/main/package/control/postrm73
-rw-r--r--packages/apex-pdp-package-full/src/main/package/control/preinst53
-rw-r--r--packages/apex-pdp-package-full/src/main/package/control/prerm38
-rw-r--r--packages/apex-pdp-package-full/src/main/package/examples/config/AADM/Stdin2StdoutJsonEvent.json43
-rw-r--r--packages/apex-pdp-package-full/src/main/package/examples/config/AADM/Stdin2StdoutXmlEvent.json45
-rw-r--r--packages/apex-pdp-package-full/src/main/package/examples/config/Adaptive/Stdin2StdoutAnomalyDetectionJsonEvent.json46
-rw-r--r--packages/apex-pdp-package-full/src/main/package/examples/config/Adaptive/Stdin2StdoutAutoLearnJsonEvent.json46
-rw-r--r--packages/apex-pdp-package-full/src/main/package/examples/config/JMS/JMS2JMSJsonEvent.json59
-rw-r--r--packages/apex-pdp-package-full/src/main/package/examples/config/JMS/JMS2JMSObjectEvent.json58
-rw-r--r--packages/apex-pdp-package-full/src/main/package/examples/config/MyFirstPolicy/1/MyFirstPolicyConfigFile2StdoutJsonEvent.json46
-rw-r--r--packages/apex-pdp-package-full/src/main/package/examples/config/MyFirstPolicy/1/MyFirstPolicyConfigStdin2StdoutJsonEvent.json46
-rw-r--r--packages/apex-pdp-package-full/src/main/package/examples/config/MyFirstPolicy/1/MyFirstPolicyConfigWs2WsServerJsonEvent.json50
-rw-r--r--packages/apex-pdp-package-full/src/main/package/examples/config/MyFirstPolicy/2/MyFirstPolicyConfigFile2StdoutJsonEvent.json46
-rw-r--r--packages/apex-pdp-package-full/src/main/package/examples/config/MyFirstPolicy/2/MyFirstPolicyConfigStdin2StdoutJsonEvent.json46
-rw-r--r--packages/apex-pdp-package-full/src/main/package/examples/config/MyFirstPolicy/2/MyFirstPolicyConfigWs2WsServerJsonEvent.json50
-rw-r--r--packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2FileJsonEvent.json43
-rw-r--r--packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2FileJsonEventAsyncMIMO.json87
-rw-r--r--packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2FileJsonEventAsyncMISO.json65
-rw-r--r--packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2FileJsonEventAsyncSIMO.json65
-rw-r--r--packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2FileJsonEventAsyncSISO.json43
-rw-r--r--packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2FileJsonEventSyncMIMO.json105
-rw-r--r--packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2FileJsonEventSyncSISO.json49
-rw-r--r--packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2FileXmlEvent.json45
-rw-r--r--packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2RESTJsonEventPost.json44
-rw-r--r--packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2RESTJsonEventPut.json45
-rw-r--r--packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2StderrJsonEvent.json43
-rw-r--r--packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2StdoutJsonEvent.json43
-rw-r--r--packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2StdoutJsonEventJavascript.json43
-rw-r--r--packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2StdoutJsonEventMVEL.json43
-rw-r--r--packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2StdoutXmlEvent.json45
-rw-r--r--packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Kafka2FileJsonEvent.json55
-rw-r--r--packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Kafka2KafkaJsonEvent.json63
-rw-r--r--packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Kafka2KafkaXmlEvent.json65
-rw-r--r--packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Kafka2RESTJsonEventJava.json56
-rw-r--r--packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/REST2FileJsonEvent.json44
-rw-r--r--packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/REST2RESTJsonEvent.json45
-rw-r--r--packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/REST2RESTONAPJsonEvent.json45
-rw-r--r--packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/RESTServerStandaloneJsonEvent.json50
-rw-r--r--packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/RESTServerStandaloneJsonEventMultiIn.json79
-rw-r--r--packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/RESTServerTomcatJsonEvent.json45
-rw-r--r--packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/RESTServerTomcatJsonEventMultiIn.json69
-rw-r--r--packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Stdin2RESTJsonEventJava.json44
-rw-r--r--packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Stdin2StdoutJsonEventJRuby.json43
-rw-r--r--packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Stdin2StdoutJsonEventJava.json43
-rw-r--r--packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Stdin2StdoutJsonEventJavascript.json43
-rw-r--r--packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Stdin2StdoutJsonEventJython.json43
-rw-r--r--packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Stdin2StdoutJsonEventMVEL.json43
-rw-r--r--packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Stdin2StdoutXmlEvent.json45
-rw-r--r--packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Ws2WsClientJsonEvent.json47
-rw-r--r--packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Ws2WsClientXMLEvent.json49
-rw-r--r--packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Ws2WsServerJsonEvent.json47
-rw-r--r--packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Ws2WsServerXMLEvent.json49
-rw-r--r--packages/apex-pdp-package-full/src/main/package/examples/docker/MyFirstPolicy/1/MyFirstPolicyFile2StdoutJsonEvent.Dockerfile32
-rw-r--r--packages/apex-pdp-package-full/src/main/package/examples/docker/MyFirstPolicy/1/MyFirstPolicyStdin2StdoutJsonEvent.Dockerfile32
-rw-r--r--packages/apex-pdp-package-full/src/main/package/examples/docker/MyFirstPolicy/2/MyFirstPolicyFile2StdoutJsonEvent.Dockerfile32
-rw-r--r--packages/apex-pdp-package-full/src/main/package/examples/docker/MyFirstPolicy/2/MyFirstPolicyStdin2StdoutJsonEvent.Dockerfile32
-rw-r--r--packages/apex-pdp-package-full/src/main/package/examples/docker/SampleDomain/File2StdoutJsonEventJavascript.Dockerfile31
-rw-r--r--packages/apex-pdp-package-full/src/main/package/examples/docker/SampleDomain/File2StdoutJsonEventMvel.Dockerfile31
-rw-r--r--packages/apex-pdp-package-full/src/main/package/examples/docker/SampleDomain/Stdin2StdoutJsonEventJavascript.Dockerfile31
-rw-r--r--packages/apex-pdp-package-full/src/main/package/examples/docker/SampleDomain/Stdin2StdoutJsonEventMvel.Dockerfile31
-rw-r--r--packages/apex-pdp-package-full/src/main/package/examples/docker/base/base.Dockerfile48
-rw-r--r--packages/apex-pdp-package-full/src/main/package/examples/models/JMS/JMSSamplePolicyModel.json456
-rw-r--r--packages/apex-pdp-package-full/src/main/package/tarball/assembly.xml114
-rw-r--r--packages/apex-pdp-package-full/src/main/resources/META-INF/persistence.xml258
-rw-r--r--packages/apex-pdp-package-full/src/main/resources/hazelcast/hazelcast.xml222
-rw-r--r--packages/apex-pdp-package-full/src/main/resources/infinispan/infinispan.xml38
-rw-r--r--packages/apex-pdp-package-full/src/main/resources/infinispan/jgroups-apex.xml94
-rw-r--r--packages/apex-pdp-package-full/src/main/resources/logback-default.xml64
-rw-r--r--packages/apex-pdp-package-full/src/main/resources/logback-logic.xml61
-rw-r--r--packages/apex-pdp-package-full/src/main/resources/logback-server.xml44
-rw-r--r--packages/apex-pdp-package-full/src/main/resources/logback.xml64
-rw-r--r--packages/pom.xml39
84 files changed, 5718 insertions, 0 deletions
diff --git a/packages/apex-pdp-package-full/pom.xml b/packages/apex-pdp-package-full/pom.xml
new file mode 100644
index 000000000..ef8766117
--- /dev/null
+++ b/packages/apex-pdp-package-full/pom.xml
@@ -0,0 +1,503 @@
+<!--
+ ============LICENSE_START=======================================================
+ Copyright (C) 2018 Ericsson. All rights reserved.
+ ================================================================================
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+ SPDX-License-Identifier: Apache-2.0
+ ============LICENSE_END=========================================================
+-->
+<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.policy.apex-pdp.packages</groupId>
+ <artifactId>packages</artifactId>
+ <version>2.0.0-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>apex-pdp-package-full</artifactId>
+ <name>${project.artifactId}</name>
+ <description>[${project.parent.artifactId}] packaging, with all optional functionality, clients, servlets, and examples included</description>
+
+ <properties>
+ <install.package.name>${project.artifactId}</install.package.name>
+ </properties>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.onap.policy.apex-pdp.services</groupId>
+ <artifactId>services-engine</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+
+ <!-- Plugins for Context Distribution -->
+ <dependency>
+ <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.context-distribution</groupId>
+ <artifactId>context-distribution-hazelcast</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.context-distribution</groupId>
+ <artifactId>context-distribution-infinispan</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+
+ <!-- Plugins for Context Locking -->
+ <dependency>
+ <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.context-locking</groupId>
+ <artifactId>context-locking-hazelcast</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.context-locking</groupId>
+ <artifactId>context-locking-curator</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+
+ <!-- Plugins for Context Schemas -->
+ <dependency>
+ <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.context-schema</groupId>
+ <artifactId>context-schema-avro</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+
+ <!-- Plugins for Executors -->
+ <dependency>
+ <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
+ <artifactId>plugins-executor-java</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
+ <artifactId>plugins-executor-javascript</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
+ <artifactId>plugins-executor-jruby</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
+ <artifactId>plugins-executor-jython</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
+ <artifactId>plugins-executor-mvel</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+
+ <!-- Plugins for Persistence of Models over JPA -->
+ <dependency>
+ <groupId>org.onap.policy.apex-pdp.plugins.plugins-persistence.plugins-persistence-jpa</groupId>
+ <artifactId>plugins-persistence-jpa-eclipselink</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.onap.policy.apex-pdp.plugins.plugins-persistence.plugins-persistence-jpa</groupId>
+ <artifactId>plugins-persistence-jpa-hibernate</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+
+ <!-- Plugins for event carrier technologies -->
+ <dependency>
+ <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
+ <artifactId>plugins-event-carrier-kafka</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
+ <artifactId>plugins-event-carrier-websocket</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
+ <artifactId>plugins-event-carrier-jms</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
+ <artifactId>plugins-event-carrier-restclient</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
+ <artifactId>plugins-event-carrier-restserver</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
+ <artifactId>plugins-event-carrier-restrequestor</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+
+ <!-- Plugins for event protocols -->
+ <dependency>
+ <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-protocol</groupId>
+ <artifactId>plugins-event-protocol-xml</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-protocol</groupId>
+ <artifactId>plugins-event-protocol-jms</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+
+ <!-- Authoring and Editors -->
+ <dependency>
+ <groupId>org.onap.policy.apex-pdp.auth</groupId>
+ <artifactId>cli-editor</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.onap.policy.apex-pdp.model</groupId>
+ <artifactId>utilities</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <!-- Copy required resources and examples -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>unpack-etc-examples</id>
+ <phase>package</phase>
+ <goals>
+ <goal>unpack</goal>
+ </goals>
+ <configuration>
+ <artifactItems>
+ <artifactItem>
+ <groupId>org.onap.policy.apex-pdp.auth</groupId>
+ <artifactId>cli-editor</artifactId>
+ <type>jar</type>
+ <overWrite>false</overWrite>
+ <outputDirectory>${project.build.directory}</outputDirectory>
+ <includes>etc/**/*,examples/**/*</includes>
+ </artifactItem>
+ <artifactItem>
+ <groupId>org.onap.policy.apex-pdp.model</groupId>
+ <artifactId>utilities</artifactId>
+ <type>jar</type>
+ <overWrite>false</overWrite>
+ <outputDirectory>${project.build.directory}/etc</outputDirectory>
+ <includes>/app-version.txt</includes>
+ </artifactItem>
+ </artifactItems>
+ <overWriteReleases>true</overWriteReleases>
+ <overWriteSnapshots>true</overWriteSnapshots>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
+ <!-- Build the tar ball -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>generate-complete-tar</id>
+ <phase>package</phase>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ <configuration>
+ <descriptors>
+ <descriptor>src/main/package/tarball/assembly.xml</descriptor>
+ </descriptors>
+ <finalName>${project.artifactId}-${project.version}</finalName>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <configuration>
+ <tasks>
+ <untar
+ src="${project.build.directory}/${project.artifactId}-${project.version}-tarball.tar.gz"
+ dest="${project.build.directory}/install_hierarchy" compression="gzip" />
+ </tasks>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>fix-permissions</id>
+ <phase>package</phase>
+ <configuration>
+ <tasks>
+ <chmod file="${project.build.directory}/install_hierarchy/bin/*" perm="755" />
+ </tasks>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <!-- Build the dpkg distribution -->
+ <plugin>
+ <groupId>org.vafer</groupId>
+ <artifactId>jdeb</artifactId>
+ <version>1.5</version>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <goals>
+ <goal>jdeb</goal>
+ </goals>
+ <configuration>
+ <deb>${project.build.directory}/${project.artifactId}-${project.version}.deb</deb>
+ <controlDir>${basedir}/src/main/package/control</controlDir>
+ <dataSet>
+ <!-- Copy the Apex run time configuration -->
+ <data>
+ <src>${project.build.directory}/install_hierarchy/lib</src>
+ <type>directory</type>
+ <dst>lib</dst>
+ <mapper>
+ <type>perm</type>
+ <prefix>/opt/app/policy/apex-pdp/${project.artifactId}-${project.version}/lib</prefix>
+ <filemode>755</filemode>
+ </mapper>
+ </data>
+ <data>
+ <src>${project.build.directory}/install_hierarchy/bin</src>
+ <type>directory</type>
+ <dst>etc</dst>
+ <mapper>
+ <type>perm</type>
+ <prefix>/opt/app/policy/apex-pdp/${project.artifactId}-${project.version}/bin</prefix>
+ </mapper>
+ </data>
+ <data>
+ <src>${project.build.directory}/install_hierarchy/etc</src>
+ <type>directory</type>
+ <dst>etc</dst>
+ <mapper>
+ <type>perm</type>
+ <prefix>/opt/app/policy/apex-pdp/${project.artifactId}-${project.version}/etc</prefix>
+ </mapper>
+ </data>
+ <data>
+ <src>${project.build.directory}/install_hierarchy/examples</src>
+ <type>directory</type>
+ <dst>etc</dst>
+ <mapper>
+ <type>perm</type>
+ <prefix>/opt/app/policy/apex-pdp/${project.artifactId}-${project.version}/examples</prefix>
+ </mapper>
+ </data>
+ </dataSet>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ <profiles>
+ <profile>
+ <id>Linux</id>
+ <activation>
+ <os>
+ <family>Linux</family>
+ </os>
+ </activation>
+ <build>
+ <plugins>
+ <!-- Build the rpm distribution -->
+ <!-- Skiping RPM Build for now, due to rpmbuild package not available on Jenkins servers -->
+ <!-- <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>rpm-maven-plugin</artifactId>
+ <version>2.2.0</version>
+ <extensions>true</extensions>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <goals>
+ <goal>rpm</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <name>${project.artifactId}</name>
+ <copyright>2015 Ericsson AB All rights reserved</copyright>
+ <distribution>${project.parent.artifactId}</distribution>
+ <group>ERI-APEX</group>
+ <packager>Ericsson</packager>
+ <prefix>/opt/app/policy/apex-pdp</prefix>
+ <changelogFile>src/rpm/changelog</changelogFile>
+ <needarch>noarch</needarch>
+ <targetVendor>redhat</targetVendor>
+ <targetOS>linux</targetOS>
+ <version>${project.version}</version>
+ <defineStatements>
+ <defineStatement>install_dir /opt/app/policy/apex-pdp</defineStatement>
+ </defineStatements>
+ <mappings>
+ <mapping>
+ <directory>/opt/app/policy/apex-pdp/${project.artifactId}-${project.version}/lib</directory>
+ <username>root</username>
+ <groupname>root</groupname>
+ <sources>
+ <source>
+ <location>${project.build.directory}/install_hierarchy/lib</location>
+ </source>
+ </sources>
+ </mapping>
+ <mapping>
+ <directory>/opt/app/policy/apex-pdp/${project.artifactId}-${project.version}/bin</directory>
+ <username>root</username>
+ <groupname>root</groupname>
+ <sources>
+ <source>
+ <location>${project.build.directory}/install_hierarchy/bin</location>
+ </source>
+ </sources>
+ </mapping>
+ <mapping>
+ <directory>/opt/app/policy/apex-pdp/${project.artifactId}-${project.version}/etc</directory>
+ <username>root</username>
+ <groupname>root</groupname>
+ <sources>
+ <source>
+ <location>${project.build.directory}/install_hierarchy/etc</location>
+ </source>
+ </sources>
+ </mapping>
+ <mapping>
+ <directory>/opt/app/policy/apex-pdp/${project.artifactId}-${project.version}/examples</directory>
+ <username>root</username>
+ <groupname>root</groupname>
+ <sources>
+ <source>
+ <location>${project.build.directory}/install_hierarchy/examples</location>
+ </source>
+ </sources>
+ </mapping>
+ </mappings>
+ <preinstallScriptlet>
+ <scriptFile>src/main/package/control/preinst</scriptFile>
+ </preinstallScriptlet>
+ <postinstallScriptlet>
+ <scriptFile>src/main/package/control/postinst</scriptFile>
+ </postinstallScriptlet>
+ <preremoveScriptlet>
+ <scriptFile>src/main/package/control/prerm</scriptFile>
+ </preremoveScriptlet>
+ <postremoveScriptlet>
+ <scriptFile>src/main/package/control/postrm</scriptFile>
+ </postremoveScriptlet>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <goals>
+ <goal>exec</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <executable>sh</executable>
+ <arguments>
+ <argument>-c</argument>
+ <argument>cp \
+ ${project.build.directory}/rpm/${project.artifactId}/RPMS/noarch/${project.artifactId}-${project.version}*.noarch.rpm \
+ \
+ ${project.build.directory}/${project.artifactId}-${project.version}.rpm</argument>
+ </arguments>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>build-helper-maven-plugin</artifactId>
+ <version>3.0.0</version>
+ <executions>
+ <execution>
+ <id>attach-artifacts</id>
+ <phase>package</phase>
+ <goals>
+ <goal>attach-artifact</goal>
+ </goals>
+ <configuration>
+ <artifacts>
+ <artifact>
+ <file>${project.build.directory}/${project.artifactId}-${project.version}.rpm</file>
+ <type>rpm</type>
+ </artifact>
+ </artifacts>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin> -->
+ </plugins>
+ </build>
+ </profile>
+ <profile>
+ <id>only-eclipse</id>
+ <activation>
+ <property>
+ <name>m2e.version</name>
+ </property>
+ </activation>
+ <build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.eclipse.m2e</groupId>
+ <artifactId>lifecycle-mapping</artifactId>
+ <configuration>
+ <lifecycleMappingMetadata>
+ <pluginExecutions>
+ <pluginExecution>
+ <pluginExecutionFilter>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <versionRange>${maven-dependency-plugin.version}</versionRange>
+ <goals>
+ <goal>unpack</goal>
+ <goal>copy</goal>
+ </goals>
+ </pluginExecutionFilter>
+ <action>
+ <ignore />
+ </action>
+ </pluginExecution>
+ </pluginExecutions>
+ </lifecycleMappingMetadata>
+ </configuration>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+ </profile>
+ </profiles>
+</project> \ No newline at end of file
diff --git a/packages/apex-pdp-package-full/src/main/package/bin/apexApps.bat b/packages/apex-pdp-package-full/src/main/package/bin/apexApps.bat
new file mode 100644
index 000000000..5aba49702
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/bin/apexApps.bat
@@ -0,0 +1,183 @@
+:: ============LICENSE_START=======================================================
+:: Copyright (C) 2016-2018 Ericsson. All rights reserved.
+:: ================================================================================
+:: Licensed under the Apache License, Version 2.0 (the "License");
+:: you may not use this file except in compliance with the License.
+:: You may obtain a copy of the License at
+::
+:: http://www.apache.org/licenses/LICENSE-2.0
+::
+:: Unless required by applicable law or agreed to in writing, software
+:: distributed under the License is distributed on an "AS IS" BASIS,
+:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+:: See the License for the specific language governing permissions and
+:: limitations under the License.
+::
+:: SPDX-License-Identifier: Apache-2.0
+:: ============LICENSE_END=========================================================
+
+::
+:: Script to run APEX Applications
+:: Call -h for help
+:: - adding a new app means to add a command to APEX_APP_MAP and a description to APEX_APP_DESCR_MAP using same/unique key
+::
+:: @package org.onap.policy.apex
+:: @author Sven van der Meer <sven.van.der.meer@ericsson.com>
+:: @version v0.7.0
+
+::
+:: DO NOT CHANGE CODE BELOW, unless you know what you are doing
+::
+
+@echo off
+setlocal enableDelayedExpansion
+
+
+if defined APEX_HOME (
+ if exist "%APEX_HOME%\" (
+ set _dummy=dir
+ ) else (
+ echo[
+ echo Apex directory 'APEX_HOME' not a directory
+ echo Please set environment for 'APEX_HOME'
+ echo[
+ exit /b
+ )
+) else (
+ echo[
+ echo Apex directory 'APEX_HOME' not set
+ echo Please set environment for 'APEX_HOME'
+ echo[
+ exit /b
+)
+
+
+:: script name for output
+set MOD_SCRIPT_NAME=apexApps
+
+:: config for CP apps
+SET _CONFIG=-Dlogback.configurationFile=%APEX_HOME%\etc\logback.xml -Dhazelcast.config=%APEX_HOME%\etc\hazelcast.xml -Dhazelcast.mancenter.enabled=false
+
+:: Maven/APEX version
+set /p _VERSION=<%APEX_HOME%\etc\app-version.txt
+
+
+:: CP separator
+set cpsep=;
+
+
+:: CP for CP apps
+set CLASSPATH=%APEX_HOME%\etc%cpsep%%APEX_HOME%\etc\hazelcast%cpsep%%APEX_HOME%\etc\infinispan%cpsep%%APEX_HOME%\lib\*
+
+
+:: array of applications with name=command
+:: declare -A APEX_APP_MAP
+set APEX_APP_MAP[ws-console]=java -jar %APEX_HOME%\lib\applications\apex-apps.wsclients-simple-%_VERSION%-jar-with-dependencies.jar -c
+set APEX_APP_MAP[ws-echo]=java -jar %APEX_HOME%\lib\applications\apex-apps.wsclients-simple-%_VERSION%-jar-with-dependencies.jar
+set APEX_APP_MAP[tpl-event-json]=java -Dlogback.configurationFile=%APEX_HOME%\etc\logback.xml -cp %CLASSPATH% %_CONFIG% org.onap.policy.apex.apps.generators.model.model2event.Application
+set APEX_APP_MAP[model-2-cli]=java -Dlogback.configurationFile=%APEX_HOME%\etc\logback.xml -cp %CLASSPATH% %_CONFIG% org.onap.policy.apex.apps.generators.model.model2cli.Application
+set APEX_APP_MAP[rest-editor]=java -Dlogback.configurationFile=%APEX_HOME%\etc\logback.xml -jar %APEX_HOME%\lib\applications\apex-services.client-editor-%_VERSION%-editor.jar
+set APEX_APP_MAP[cli-editor]=java -Dlogback.configurationFile=%APEX_HOME%\etc\logback.xml -cp %CLASSPATH% %_CONFIG% org.onap.policy.apex.auth.clieditor.ApexCLIEditorMain
+set APEX_APP_MAP[engine]=java -Dlogback.configurationFile=%APEX_HOME%\etc\logback.xml -cp %CLASSPATH% %_CONFIG% org.onap.policy.apex.service.engine.main.ApexMain
+set APEX_APP_MAP[eng-deployment]=java -Dlogback.configurationFile=%APEX_HOME%\etc\logback.xml -jar %APEX_HOME%\lib\applications\apex-services.client-deployment-%_VERSION%-deployment.jar
+set APEX_APP_MAP[eng-monitoring]=java -Dlogback.configurationFile=%APEX_HOME%\etc\logback.xml -jar %APEX_HOME%\lib\applications\apex-services.client-monitoring-%_VERSION%-monitoring.jar
+set APEX_APP_MAP[full-client]=java -Dlogback.configurationFile=%APEX_HOME%\etc\logback.xml -jar %APEX_HOME%\lib\applications\apex-services.client-full-%_VERSION%-full.jar
+
+:: array of applications with name=description
+:: declare -A APEX_APP_DESCR_MAP
+set APEX_APP_DESCR_MAP[ws-console]=a simple console sending events to APEX, connect to APEX consumer port
+set APEX_APP_DESCR_MAP[ws-echo]=a simple echo client printing events received from APEX, connect to APEX producer port
+set APEX_APP_DESCR_MAP[tpl-event-json]=provides JSON templates for events generated from a policy model
+set APEX_APP_DESCR_MAP[model-2-cli]=generates CLI Editor Commands from a policy model
+set APEX_APP_DESCR_MAP[rest-editor]=starts the APEX REST Editor inside a simple webserver
+set APEX_APP_DESCR_MAP[cli-editor]=runs the APEX CLI Editor
+set APEX_APP_DESCR_MAP[engine]=starts the APEX engine
+set APEX_APP_DESCR_MAP[eng-deployment]=starts the APEX deployment client in a simple webserver
+set APEX_APP_DESCR_MAP[eng-monitoring]=starts the APEX engine monitoring client in a simple webserver
+set APEX_APP_DESCR_MAP[full-client]=starts the full APEX client (rest editor, deployment, monitoring) in a simple webserver
+
+
+:: no command line means help, -h means help
+if "%1" == "" goto Help
+if "%1" == "-h" goto Help
+
+:: -l means list
+if "%1" == "-l" goto ListApps
+
+:: -d means describe
+if "%1" == "-d" goto DescribeApp
+
+
+::
+:: ok, we need to look for an application, should be in %1
+::
+set _APP=%1
+
+set _CMD=!APEX_APP_MAP[%_APP%]!
+if "!_CMD!" == "" (
+ echo %MOD_SCRIPT_NAME%: : application '%_APP%' not supported
+ echo[
+ exit /b
+)
+
+for /f "tokens=1,* delims= " %%a in ("%*") do set ACTUAL_CLI=%%b
+set _CMD_RUN=%_CMD% %ACTUAL_CLI%
+:: echo %MOD_SCRIPT_NAME%: running application %_APP%' with command '%_CMD_RUN%'
+%_CMD_RUN%
+exit /b
+
+
+::
+:: Help screen and exit condition (i.e. too few arguments)
+::
+:Help
+echo[
+echo %MOD_SCRIPT_NAME% - runs APEX applications
+echo[
+echo Usage: %MOD_SCRIPT_NAME% [options] ^| [^<application^> [^<application options^>]]
+echo[
+echo Options
+echo -d ^<app^> - describes an application
+echo -l - lists all applications supported by this script
+echo -h - this help screen
+echo[
+echo[
+exit /b
+
+
+
+::
+:: List applications
+::
+:ListApps
+echo[
+echo %MOD_SCRIPT_NAME%: supported applications:
+for /F "tokens=2,3 delims=[]=" %%a in ('set APEX_APP_MAP') do (
+ echo --^> %%a
+)
+echo[
+exit /b
+
+
+::
+:: Describe an application
+::
+:DescribeApp
+if "%2" == "" (
+ echo %MOD_SCRIPT_NAME%: : supported applications:
+ for /F "tokens=2,3 delims=[]=" %%a in ('set APEX_APP_MAP') do (
+ echo --^> %%a
+ )
+ echo[
+ exit /b
+)
+set _CMD=!APEX_APP_DESCR_MAP[%2%]!
+if "%_CMD%" == "" (
+ echo %MOD_SCRIPT_NAME%: : unknown application '%2%'
+ echo[
+ exit /b
+)
+echo %MOD_SCRIPT_NAME%: : application '%2%'
+echo --^> %_CMD%
+echo[
+exit /b
diff --git a/packages/apex-pdp-package-full/src/main/package/bin/apexApps.sh b/packages/apex-pdp-package-full/src/main/package/bin/apexApps.sh
new file mode 100755
index 000000000..adcbfcbb1
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/bin/apexApps.sh
@@ -0,0 +1,165 @@
+#!/usr/bin/env bash
+
+#-------------------------------------------------------------------------------
+# ============LICENSE_START=======================================================
+# Copyright (C) 2016-2018 Ericsson. All rights reserved.
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+#-------------------------------------------------------------------------------
+
+##
+## DO NOT CHANGE CODE BELOW, unless you know what you are doing
+##
+
+
+if [ -z $APEX_HOME ]
+then
+ APEX_HOME="/opt/onap/policy/apex-pdp"
+fi
+
+if [ ! -d $APEX_HOME ]
+then
+ echo
+ echo 'Apex directory "'$APEX_HOME'" not set or not a directory'
+ echo "Please set environment for 'APEX_HOME'"
+ exit
+fi
+
+
+## script name for output
+MOD_SCRIPT_NAME=`basename $0`
+
+## check BASH version, we need >=4 for associative arrays
+if [ "${BASH_VERSION:0:1}" -lt 4 ] ; then
+ echo
+ echo "$MOD_SCRIPT_NAME: requires bash 4 or higher for associative arrays"
+ echo
+ exit
+fi
+
+## config for CP apps
+_config="-Dlogback.configurationFile=$APEX_HOME/etc/logback.xml -Dhazelcast.config=$APEX_HOME/etc/hazelcast.xml -Dhazelcast.mancenter.enabled=false"
+
+## Maven/APEX version
+_version=`cat $APEX_HOME/etc/app-version.txt`
+
+
+## system to get CygWin paths
+system=`uname -s | cut -c1-6`
+cpsep=":"
+if [ "$system" == "CYGWIN" ] ; then
+ APEX_HOME=`cygpath -m ${APEX_HOME}`
+ cpsep=";"
+fi
+
+## CP for CP apps
+CLASSPATH="$APEX_HOME/etc${cpsep}$APEX_HOME/etc/hazelcast${cpsep}$APEX_HOME/etc/infinispan${cpsep}$APEX_HOME/lib/*"
+
+
+## array of applications with name=command
+declare -A APEX_APP_MAP
+APEX_APP_MAP["ws-console"]="java -jar $APEX_HOME/lib/applications/apex-apps.wsclients-simple-$_version-jar-with-dependencies.jar -c"
+APEX_APP_MAP["ws-echo"]="java -jar $APEX_HOME/lib/applications/apex-apps.wsclients-simple-$_version-jar-with-dependencies.jar"
+APEX_APP_MAP["tpl-event-json"]="java -Dlogback.configurationFile=$APEX_HOME/etc/logback.xml -cp ${CLASSPATH} $_config org.onap.policy.apex.apps.generators.model.model2event.Application"
+APEX_APP_MAP["model-2-cli"]="java -Dlogback.configurationFile=$APEX_HOME/etc/logback.xml -cp ${CLASSPATH} $_config org.onap.policy.apex.apps.generators.model.model2cli.Application"
+APEX_APP_MAP["rest-editor"]="java -Dlogback.configurationFile=$APEX_HOME/etc/logback.xml -jar $APEX_HOME/lib/applications/apex-services.client-editor-$_version-editor.jar"
+APEX_APP_MAP["cli-editor"]="java -Dlogback.configurationFile=$APEX_HOME/etc/logback.xml -cp ${CLASSPATH} $_config org.onap.policy.apex.auth.clieditor.ApexCLIEditorMain"
+APEX_APP_MAP["engine"]="java -Dlogback.configurationFile=$APEX_HOME/etc/logback.xml -cp ${CLASSPATH} $_config org.onap.policy.apex.service.engine.main.ApexMain"
+APEX_APP_MAP["eng-deployment"]="java -Dlogback.configurationFile=$APEX_HOME/etc/logback.xml -jar $APEX_HOME/lib/applications/apex-services.client-deployment-$_version-deployment.jar"
+APEX_APP_MAP["eng-monitoring"]="java -Dlogback.configurationFile=$APEX_HOME/etc/logback.xml -jar $APEX_HOME/lib/applications/apex-services.client-monitoring-$_version-monitoring.jar"
+APEX_APP_MAP["full-client"]="java -Dlogback.configurationFile=$APEX_HOME/etc/logback.xml -jar $APEX_HOME/lib/applications/apex-services.client-full-$_version-full.jar"
+
+## array of applications with name=description
+declare -A APEX_APP_DESCR_MAP
+APEX_APP_DESCR_MAP["ws-console"]="a simple console sending events to APEX, connect to APEX consumer port"
+APEX_APP_DESCR_MAP["ws-echo"]="a simple echo client printing events received from APEX, connect to APEX producer port"
+APEX_APP_DESCR_MAP["tpl-event-json"]="provides JSON templates for events generated from a policy model"
+APEX_APP_DESCR_MAP["model-2-cli"]="generates CLI Editor Commands from a policy model"
+APEX_APP_DESCR_MAP["rest-editor"]="starts the APEX REST Editor inside a simple webserver"
+APEX_APP_DESCR_MAP["cli-editor"]="runs the APEX CLI Editor"
+APEX_APP_DESCR_MAP["engine"]="starts the APEX engine"
+APEX_APP_DESCR_MAP["eng-deployment"]="starts the APEX deployment client in a simple webserver"
+APEX_APP_DESCR_MAP["eng-monitoring"]="starts the APEX engine monitoring client in a simple webserver"
+APEX_APP_DESCR_MAP["full-client"]="starts the full APEX client (rest editor, deployment, monitoring) in a simple webserver"
+
+##
+## Help screen and exit condition (i.e. too few arguments)
+##
+Help()
+{
+ echo ""
+ echo "$MOD_SCRIPT_NAME - runs APEX applications"
+ echo ""
+ echo " Usage: $MOD_SCRIPT_NAME [options] | [<application> [<application options>]]"
+ echo ""
+ echo " Options"
+ echo " -d <app> - describes an application"
+ echo " -l - lists all applications supported by this script"
+ echo " -h - this help screen"
+ echo ""
+ echo ""
+ exit 255;
+}
+if [ $# -eq 0 ]; then
+ Help
+fi
+
+
+##
+## read command line, cannot do as while here due to 2-view CLI
+##
+if [ "$1" == "-l" ]; then
+ echo "$MOD_SCRIPT_NAME: supported applications:"
+ echo " --> ${!APEX_APP_MAP[@]}"
+ echo ""
+ exit 0
+fi
+if [ "$1" == "-d" ]; then
+ if [ -z "$2" ]; then
+ echo "$MOD_SCRIPT_NAME: no application given to describe, supported applications:"
+ echo " --> ${!APEX_APP_MAP[@]}"
+ echo ""
+ exit 0;
+ else
+ _cmd=${APEX_APP_DESCR_MAP[$2]}
+ if [ -z "$_cmd" ]; then
+ echo "$MOD_SCRIPT_NAME: unknown application '$2'"
+ echo ""
+ exit 0;
+ fi
+ echo "$MOD_SCRIPT_NAME: application '$2'"
+ echo " --> $_cmd"
+ echo ""
+ exit 0;
+ fi
+fi
+if [ "$1" == "-h" ]; then
+ Help
+ exit 0
+fi
+
+
+_app=$1
+shift
+_cmd=${APEX_APP_MAP[$_app]}
+if [ -z "$_cmd" ]; then
+ echo "$MOD_SCRIPT_NAME: application '$_app' not supported"
+ exit 1
+fi
+_cmd="$_cmd $*"
+## echo "$MOD_SCRIPT_NAME: running application '$_app' with command '$_cmd'"
+exec $_cmd
+
diff --git a/packages/apex-pdp-package-full/src/main/package/bin/apexBash.sh b/packages/apex-pdp-package-full/src/main/package/bin/apexBash.sh
new file mode 100755
index 000000000..2a201cc72
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/bin/apexBash.sh
@@ -0,0 +1,32 @@
+#!/bin/bash
+
+#-------------------------------------------------------------------------------
+# ============LICENSE_START=======================================================
+# Copyright (C) 2016-2018 Ericsson. All rights reserved.
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+#-------------------------------------------------------------------------------
+
+# Run from the Apex home directory
+if [ ! -d /home/apexuser ]
+then
+ echo Apex user home directory "/home/apexuser" not found
+ exit
+fi
+
+# Run the command as "apexuser"
+cd /home/apexuser
+su apexuser
diff --git a/packages/apex-pdp-package-full/src/main/package/bin/apexCLIEditor.bat b/packages/apex-pdp-package-full/src/main/package/bin/apexCLIEditor.bat
new file mode 100644
index 000000000..c4cb649bc
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/bin/apexCLIEditor.bat
@@ -0,0 +1,52 @@
+:: ============LICENSE_START=======================================================
+:: Copyright (C) 2016-2018 Ericsson. All rights reserved.
+:: ================================================================================
+:: Licensed under the Apache License, Version 2.0 (the "License");
+:: you may not use this file except in compliance with the License.
+:: You may obtain a copy of the License at
+::
+:: http://www.apache.org/licenses/LICENSE-2.0
+::
+:: Unless required by applicable law or agreed to in writing, software
+:: distributed under the License is distributed on an "AS IS" BASIS,
+:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+:: See the License for the specific language governing permissions and
+:: limitations under the License.
+::
+:: SPDX-License-Identifier: Apache-2.0
+:: ============LICENSE_END=========================================================
+
+::
+:: Script to run the APEX CLI Editor
+::
+:: @package org.onap.policy.apex
+:: @author Sven van der Meer <sven.van.der.meer@ericsson.com>
+:: @version v0.7.0
+
+::
+:: DO NOT CHANGE CODE BELOW, unless you know what you are doing
+::
+
+@echo off
+setlocal enableDelayedExpansion
+
+
+if defined APEX_HOME (
+ if exist "%APEX_HOME%\" (
+ set _dummy=dir
+ ) else (
+ echo[
+ echo Apex directory 'APEX_HOME' not a directory
+ echo Please set environment for 'APEX_HOME'
+ echo[
+ exit /b
+ )
+) else (
+ echo[
+ echo Apex directory 'APEX_HOME' not set
+ echo Please set environment for 'APEX_HOME'
+ echo[
+ exit /b
+)
+
+%APEX_HOME%\bin\apexApps.bat cli-editor %*
diff --git a/packages/apex-pdp-package-full/src/main/package/bin/apexCLIEditor.sh b/packages/apex-pdp-package-full/src/main/package/bin/apexCLIEditor.sh
new file mode 100755
index 000000000..28a26171b
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/bin/apexCLIEditor.sh
@@ -0,0 +1,50 @@
+#!/usr/bin/env bash
+
+#-------------------------------------------------------------------------------
+# ============LICENSE_START=======================================================
+# Copyright (C) 2016-2018 Ericsson. All rights reserved.
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+#-------------------------------------------------------------------------------
+
+##
+## Script to run the APEX CLI Editor
+## - requires BASH with associative arrays, bash of at least version 4
+## - for BASH examples with arrays see for instance: http://www.artificialworlds.net/blog/2012/10/17/bash-associative-array-examples/
+## - adding a new app means to add a command to APEX_APP_MAP and a description to APEX_APP_DESCR_MAP using same/unique key
+##
+## @package org.onap.policy.apex
+## @author Sven van der Meer <sven.van.der.meer@ericsson.com>
+## @version v0.7.0
+
+##
+## DO NOT CHANGE CODE BELOW, unless you know what you are doing
+##
+
+if [ -z $APEX_HOME ]
+then
+ APEX_HOME="/opt/onap/policy/apex-pdp"
+fi
+
+if [ ! -d $APEX_HOME ]
+then
+ echo
+ echo 'Apex directory "'$APEX_HOME'" not set or not a directory'
+ echo "Please set environment for 'APEX_HOME'"
+ exit
+fi
+
+$APEX_HOME/bin/apexApps.sh cli-editor $*
diff --git a/packages/apex-pdp-package-full/src/main/package/bin/apexEngine.bat b/packages/apex-pdp-package-full/src/main/package/bin/apexEngine.bat
new file mode 100644
index 000000000..d44adbbe6
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/bin/apexEngine.bat
@@ -0,0 +1,52 @@
+:: ============LICENSE_START=======================================================
+:: Copyright (C) 2016-2018 Ericsson. All rights reserved.
+:: ================================================================================
+:: Licensed under the Apache License, Version 2.0 (the "License");
+:: you may not use this file except in compliance with the License.
+:: You may obtain a copy of the License at
+::
+:: http://www.apache.org/licenses/LICENSE-2.0
+::
+:: Unless required by applicable law or agreed to in writing, software
+:: distributed under the License is distributed on an "AS IS" BASIS,
+:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+:: See the License for the specific language governing permissions and
+:: limitations under the License.
+::
+:: SPDX-License-Identifier: Apache-2.0
+:: ============LICENSE_END=========================================================
+
+::
+:: Script to run the APEX
+::
+:: @package org.onap.policy.apex
+:: @author Sven van der Meer <sven.van.der.meer@ericsson.com>
+:: @version v0.7.0
+
+::
+:: DO NOT CHANGE CODE BELOW, unless you know what you are doing
+::
+
+@echo off
+setlocal enableDelayedExpansion
+
+
+if defined APEX_HOME (
+ if exist "%APEX_HOME%\" (
+ set _dummy=dir
+ ) else (
+ echo[
+ echo Apex directory 'APEX_HOME' not a directory
+ echo Please set environment for 'APEX_HOME'
+ echo[
+ exit /b
+ )
+) else (
+ echo[
+ echo Apex directory 'APEX_HOME' not set
+ echo Please set environment for 'APEX_HOME'
+ echo[
+ exit /b
+)
+
+%APEX_HOME%\bin\apexApps.bat engine %*
diff --git a/packages/apex-pdp-package-full/src/main/package/bin/apexEngine.sh b/packages/apex-pdp-package-full/src/main/package/bin/apexEngine.sh
new file mode 100755
index 000000000..c07e38b51
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/bin/apexEngine.sh
@@ -0,0 +1,73 @@
+#!/usr/bin/env bash
+
+#-------------------------------------------------------------------------------
+# ============LICENSE_START=======================================================
+# Copyright (C) 2016-2018 Ericsson. All rights reserved.
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+#-------------------------------------------------------------------------------
+
+##
+## Script to run the APEX
+## - requires BASH with associative arrays, bash of at least version 4
+## - for BASH examples with arrays see for instance: http://www.artificialworlds.net/blog/2012/10/17/bash-associative-array-examples/
+## - adding a new app means to add a command to APEX_APP_MAP and a description to APEX_APP_DESCR_MAP using same/unique key
+##
+## @package org.onap.policy.apex
+## @author Sven van der Meer <sven.van.der.meer@ericsson.com>
+## @version v0.7.0
+
+##
+## DO NOT CHANGE CODE BELOW, unless you know what you are doing
+##
+
+if [ -z $APEX_USER ]
+then
+ APEX_USER="apexuser"
+fi
+
+id $APEX_USER > /dev/null 2>& 1
+if [ "$?" -ne "0" ]
+then
+ echo 'cannot run apex, user "'$APEX_USER'" does not exit'
+ exit
+fi
+
+if [ $(whoami) != "$APEX_USER" ]
+then
+ echo 'Apex must be run as user "'$APEX_USER'"'
+ exit
+fi
+
+if [ -z $APEX_HOME ]
+then
+ APEX_HOME="/opt/onap/policy/apex-pdp"
+fi
+
+if [ ! -d $APEX_HOME ]
+then
+ echo
+ echo 'Apex directory "'$APEX_HOME'" not set or not a directory'
+ echo "Please set environment for 'APEX_HOME'"
+ exit
+fi
+
+if [ $(whoami) == "$APEX_USER" ]
+then
+ $APEX_HOME/bin/apexApps.sh engine $*
+else
+ su $APEX_USER -c "$APEX_HOME/bin/apexApps.sh engine $*"
+fi
diff --git a/packages/apex-pdp-package-full/src/main/package/bin/apexRESTEditor.bat b/packages/apex-pdp-package-full/src/main/package/bin/apexRESTEditor.bat
new file mode 100644
index 000000000..69ada95bf
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/bin/apexRESTEditor.bat
@@ -0,0 +1,52 @@
+:: ============LICENSE_START=======================================================
+:: Copyright (C) 2016-2018 Ericsson. All rights reserved.
+:: ================================================================================
+:: Licensed under the Apache License, Version 2.0 (the "License");
+:: you may not use this file except in compliance with the License.
+:: You may obtain a copy of the License at
+::
+:: http://www.apache.org/licenses/LICENSE-2.0
+::
+:: Unless required by applicable law or agreed to in writing, software
+:: distributed under the License is distributed on an "AS IS" BASIS,
+:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+:: See the License for the specific language governing permissions and
+:: limitations under the License.
+::
+:: SPDX-License-Identifier: Apache-2.0
+:: ============LICENSE_END=========================================================
+
+::
+:: Script to run the APEX REST Editor
+::
+:: @package org.onap.policy.apex
+:: @author Sven van der Meer <sven.van.der.meer@ericsson.com>
+:: @version v0.7.0
+
+::
+:: DO NOT CHANGE CODE BELOW, unless you know what you are doing
+::
+
+@echo off
+setlocal enableDelayedExpansion
+
+
+if defined APEX_HOME (
+ if exist "%APEX_HOME%\" (
+ set _dummy=dir
+ ) else (
+ echo[
+ echo Apex directory 'APEX_HOME' not a directory
+ echo Please set environment for 'APEX_HOME'
+ echo[
+ exit /b
+ )
+) else (
+ echo[
+ echo Apex directory 'APEX_HOME' not set
+ echo Please set environment for 'APEX_HOME'
+ echo[
+ exit /b
+)
+
+%APEX_HOME%\bin\apexApps.bat rest-editor %*
diff --git a/packages/apex-pdp-package-full/src/main/package/bin/apexRESTEditor.sh b/packages/apex-pdp-package-full/src/main/package/bin/apexRESTEditor.sh
new file mode 100755
index 000000000..3f2ae867b
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/bin/apexRESTEditor.sh
@@ -0,0 +1,51 @@
+#!/usr/bin/env bash
+
+#-------------------------------------------------------------------------------
+# ============LICENSE_START=======================================================
+# Copyright (C) 2016-2018 Ericsson. All rights reserved.
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+#-------------------------------------------------------------------------------
+
+##
+## Script to run the APEX REST Editor
+## - requires BASH with associative arrays, bash of at least version 4
+## - for BASH examples with arrays see for instance: http://www.artificialworlds.net/blog/2012/10/17/bash-associative-array-examples/
+## - adding a new app means to add a command to APEX_APP_MAP and a description to APEX_APP_DESCR_MAP using same/unique key
+##
+## @package org.onap.policy.apex
+## @author Sven van der Meer <sven.van.der.meer@ericsson.com>
+## @version v0.7.0
+
+##
+## DO NOT CHANGE CODE BELOW, unless you know what you are doing
+##
+
+
+if [ -z $APEX_HOME ]
+then
+ APEX_HOME="/opt/onap/policy/apex-pdp"
+fi
+
+if [ ! -d $APEX_HOME ]
+then
+ echo
+ echo 'Apex directory "'$APEX_HOME'" not set or not a directory'
+ echo "Please set environment for 'APEX_HOME'"
+ exit
+fi
+
+$APEX_HOME/bin/apexApps.sh rest-editor $*
diff --git a/packages/apex-pdp-package-full/src/main/package/control/control b/packages/apex-pdp-package-full/src/main/package/control/control
new file mode 100644
index 000000000..25226d89b
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/control/control
@@ -0,0 +1,27 @@
+#-------------------------------------------------------------------------------
+# ============LICENSE_START=======================================================
+# Copyright (C) 2016-2018 Ericsson. All rights reserved.
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+#-------------------------------------------------------------------------------
+Package: [[install.package.name]]
+Version: [[version]]
+Section: misc
+Priority: optional
+Architecture: all
+Maintainer: Liam Fallon <liam.fallon@ericsson.com>
+Description: Apex Microservice
+Distribution: development
diff --git a/packages/apex-pdp-package-full/src/main/package/control/postinst b/packages/apex-pdp-package-full/src/main/package/control/postinst
new file mode 100644
index 000000000..dab0fded7
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/control/postinst
@@ -0,0 +1,59 @@
+#! /bin/sh
+
+#-------------------------------------------------------------------------------
+# ============LICENSE_START=======================================================
+# Copyright (C) 2016-2018 Ericsson. All rights reserved.
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+#-------------------------------------------------------------------------------
+
+#
+# This script is called after package software is installed
+#
+
+echo "********************postinst****************"
+echo "arguments $*"
+echo "***********************************************"
+
+# Check for debian abort-remove case which calls postinst, in which we do nothing
+if [ "$1" = "abort-remove" ]
+then
+ exit 0
+fi
+
+# Check if a soft link for latest version of Apex already exists
+if [ -L "/opt/app/policy/apex-pdp" ]; then
+ rm /opt/app/policy/apex-pdp
+fi
+
+# Add soft link for latest version of Apex
+ln -s `ls /opt/app/policy/apex-pdp | grep -i '^apex-*' | sort | tail -1` /opt/app/policy/apex-pdp
+
+# Add Apex-specific directories and set ownership as the Apex admin user
+mkdir -p /var/log/onap/policy/apex-pdp
+chown -R apexuser:apexuser /var/log/onap/policy/apex-pdp
+
+# Ensure everything has the correct permissions
+find /opt/app -type d -perm 755
+find /opt/app -type f -perm 644
+chmod a+x /opt/app/policy/apex-pdp/apex/bin/*
+
+# Copy examples to Apex user area
+if [ -e /home/apexuser/examples ]
+then
+ rm -rf /home/apexuser/examples
+fi
+cp -pr /opt/app/policy/apex-pdp/apex/examples /home/apexuser
diff --git a/packages/apex-pdp-package-full/src/main/package/control/postrm b/packages/apex-pdp-package-full/src/main/package/control/postrm
new file mode 100644
index 000000000..f57fd70ba
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/control/postrm
@@ -0,0 +1,73 @@
+#! /bin/sh
+
+#-------------------------------------------------------------------------------
+# ============LICENSE_START=======================================================
+# Copyright (C) 2016-2018 Ericsson. All rights reserved.
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+#-------------------------------------------------------------------------------
+
+#
+# This script is called after package software is removed
+#
+
+echo "********************postrm*******************"
+echo "arguments $*"
+echo "*********************************************"
+
+# Check for debian upgrade case which calls postrm, in which we do nothing
+if [ "$1" = "upgrade" ]
+then
+ exit 0
+fi
+
+# Check if a soft link for apex exists, if so remove it
+if [ -L "/opt/app/policy/apex-pdp" ]; then
+ rm /opt/app/policy/apex-pdp
+fi
+
+DIRS_TO_DELETE="
+ /var/log/onap/policy/apex-pdp
+ /opt/app/policy/apex-pdp
+ "
+
+for DIR in $DIRS_TO_DELETE
+do
+ if [ -e $DIR ]
+ then
+ rm -rf $DIR
+ echo Directory $DIR removed
+ fi
+done
+
+if [ -e "/home/apexuser" ]
+then
+ echo "deleting home directory of user apexuser . . ."
+ rm -fr /home/apexuser
+fi
+
+if getent passwd "apexuser" >/dev/null 2>&1
+then
+ echo "deleting user apexuser . . ."
+ userdel apexuser
+fi
+
+if getent group "apexuser" >/dev/null 2>&1
+then
+ echo "deleting group apexuser . . ."
+ groupdel apexuser
+fi
+
diff --git a/packages/apex-pdp-package-full/src/main/package/control/preinst b/packages/apex-pdp-package-full/src/main/package/control/preinst
new file mode 100644
index 000000000..58257c5a2
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/control/preinst
@@ -0,0 +1,53 @@
+#! /bin/sh
+
+#-------------------------------------------------------------------------------
+# ============LICENSE_START=======================================================
+# Copyright (C) 2016-2018 Ericsson. All rights reserved.
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+#-------------------------------------------------------------------------------
+
+#
+# This script is called before package software is installed
+#
+
+echo "********************preinst*******************"
+echo "arguments $*"
+echo "**********************************************"
+
+# Check if Apex is running
+running_check=`ps -ef | egrep "org.onap.policy.apex.service.engine.main.ApexMain" | egrep -v grep`
+if [ ! -z "$running_check" -a "$running_check" != "" ]
+then
+ echo "Apex processes are running, stop Apex prior to package upgrade"
+ exit 1
+fi
+
+if ! getent group "apexuser" >/dev/null 2>&1
+then
+ echo "creating group apexuser . . ."
+ groupadd apexuser
+fi
+
+if ! getent passwd "apexuser" >/dev/null 2>&1
+then
+ echo "creating user apexuser . . ."
+ useradd -g apexuser apexuser
+fi
+
+# Create the Apex user home directory
+mkdir -p /home/apexuser
+chown -R apexuser:apexuser /home/apexuser
diff --git a/packages/apex-pdp-package-full/src/main/package/control/prerm b/packages/apex-pdp-package-full/src/main/package/control/prerm
new file mode 100644
index 000000000..3729af6a2
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/control/prerm
@@ -0,0 +1,38 @@
+#! /bin/sh
+
+#-------------------------------------------------------------------------------
+# ============LICENSE_START=======================================================
+# Copyright (C) 2016-2018 Ericsson. All rights reserved.
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+#-------------------------------------------------------------------------------
+
+#
+# This script is called before package software is removed
+#
+
+echo "**********************prerm********************"
+echo "arguments $*"
+echo "***********************************************"
+
+
+# Check if Apex is running
+running_check=`ps -ef | egrep "org.onap.policy.apex.service.engine.main.ApexMain" | egrep -v grep`
+if [ ! -z "$running_check" -a "$running_check" != "" ]
+then
+ echo "Apex processes are running, stop Apex prior to package removal"
+ exit 1
+fi
diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/AADM/Stdin2StdoutJsonEvent.json b/packages/apex-pdp-package-full/src/main/package/examples/config/AADM/Stdin2StdoutJsonEvent.json
new file mode 100644
index 000000000..c43f41353
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/examples/config/AADM/Stdin2StdoutJsonEvent.json
@@ -0,0 +1,43 @@
+{
+ "engineServiceParameters": {
+ "name": "AADMApexEngine",
+ "version": "0.0.1",
+ "id": 45,
+ "instanceCount": 4,
+ "deploymentPort": 12345,
+ "policyModelFileName": "examples/models/AADM/AADMPolicyModel.json",
+ "engineParameters": {
+ "executorParameters": {
+ "MVEL": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MVELExecutorParameters"
+ }
+ }
+ }
+ },
+ "eventOutputParameters": {
+ "FirstProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "standardIO": true
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ },
+ "eventInputParameters": {
+ "FirstConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "standardIO": true
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ }
+}
diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/AADM/Stdin2StdoutXmlEvent.json b/packages/apex-pdp-package-full/src/main/package/examples/config/AADM/Stdin2StdoutXmlEvent.json
new file mode 100644
index 000000000..294da2483
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/examples/config/AADM/Stdin2StdoutXmlEvent.json
@@ -0,0 +1,45 @@
+{
+ "engineServiceParameters": {
+ "name": "AADMApexEngine",
+ "version": "0.0.1",
+ "id": 45,
+ "instanceCount": 4,
+ "deploymentPort": 12345,
+ "policyModelFileName": "examples/models/AADM/AADMPolicyModel.json",
+ "engineParameters": {
+ "executorParameters": {
+ "MVEL": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MVELExecutorParameters"
+ }
+ }
+ }
+ },
+ "eventOutputParameters": {
+ "FirstProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "standardIO": true
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "XML",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.protocol.xml.XMLEventProtocolParameters"
+ }
+ }
+ },
+ "eventInputParameters": {
+ "FirstConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "standardIO": true
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "XML",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.protocol.xml.XMLEventProtocolParameters"
+ }
+ }
+ }
+}
diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/Adaptive/Stdin2StdoutAnomalyDetectionJsonEvent.json b/packages/apex-pdp-package-full/src/main/package/examples/config/Adaptive/Stdin2StdoutAnomalyDetectionJsonEvent.json
new file mode 100644
index 000000000..4da0bb969
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/examples/config/Adaptive/Stdin2StdoutAnomalyDetectionJsonEvent.json
@@ -0,0 +1,46 @@
+{
+ "engineServiceParameters": {
+ "name": "AdaptiveApexEngine",
+ "version": "0.0.1",
+ "id": 45,
+ "instanceCount": 4,
+ "deploymentPort": 12345,
+ "policyModelFileName": "examples/models/Adaptive/AnomalyDetectionPolicyModel.json",
+ "engineParameters": {
+ "executorParameters": {
+ "MVEL": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MVELExecutorParameters"
+ },
+ "JAVA": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.java.JavaExecutorParameters"
+ }
+ }
+ }
+ },
+ "eventOutputParameters": {
+ "FirstProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "standardIO": true
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ },
+ "eventInputParameters": {
+ "FirstConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "standardIO": true
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ }
+}
diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/Adaptive/Stdin2StdoutAutoLearnJsonEvent.json b/packages/apex-pdp-package-full/src/main/package/examples/config/Adaptive/Stdin2StdoutAutoLearnJsonEvent.json
new file mode 100644
index 000000000..5ae70f3e3
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/examples/config/Adaptive/Stdin2StdoutAutoLearnJsonEvent.json
@@ -0,0 +1,46 @@
+{
+ "engineServiceParameters": {
+ "name": "AdaptiveApexEngine",
+ "version": "0.0.1",
+ "id": 45,
+ "instanceCount": 4,
+ "deploymentPort": 12345,
+ "policyModelFileName": "examples/models/Adaptive/AutoLearnPolicyModel.json",
+ "engineParameters": {
+ "executorParameters": {
+ "MVEL": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MVELExecutorParameters"
+ },
+ "JAVA": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.java.JavaExecutorParameters"
+ }
+ }
+ }
+ },
+ "eventOutputParameters": {
+ "FirstProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "standardIO": true
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ },
+ "eventInputParameters": {
+ "FirstConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "standardIO": true
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ }
+}
diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/JMS/JMS2JMSJsonEvent.json b/packages/apex-pdp-package-full/src/main/package/examples/config/JMS/JMS2JMSJsonEvent.json
new file mode 100644
index 000000000..c8ea4fa85
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/examples/config/JMS/JMS2JMSJsonEvent.json
@@ -0,0 +1,59 @@
+{
+ "engineServiceParameters": {
+ "name": "MyApexEngine",
+ "version": "0.0.1",
+ "id": 45,
+ "instanceCount": 4,
+ "deploymentPort": 12553,
+ "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml",
+ "engineParameters": {
+ "executorParameters": {
+ "JAVASCRIPT": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
+ }
+ }
+ }
+ },
+ "eventOutputParameters": {
+ "aProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "JMS",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.jms.JMSCarrierTechnologyParameters",
+ "parameters": {
+ "initialContextFactory": "org.onap.policy.apex.apps.uservice.test.adapt.jms.TestInitialContextFactory",
+ "connectionFactory": "ConnectionFactory",
+ "providerURL": "remote://localhost:5445",
+ "securityPrincipal": "guest",
+ "securityCredentials": "IAmAGuest",
+ "producerTopic": "jms/topic/apexOut",
+ "objectMessageSending": "false"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JMSTEXT",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.protocol.jms.JMSTextEventProtocolParameters"
+ }
+ }
+ },
+ "eventInputParameters": {
+ "aConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "JMS",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.jms.JMSCarrierTechnologyParameters",
+ "parameters": {
+ "initialContextFactory": "org.onap.policy.apex.apps.uservice.test.adapt.jms.TestInitialContextFactory",
+ "connectionFactory": "ConnectionFactory",
+ "providerURL": "remote://localhost:5445",
+ "securityPrincipal": "guest",
+ "securityCredentials": "IAmAGuest",
+ "consumerTopic": "jms/topic/apexIn"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JMSTEXT",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.protocol.jms.JMSTextEventProtocolParameters"
+ }
+ }
+ }
+}
+
diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/JMS/JMS2JMSObjectEvent.json b/packages/apex-pdp-package-full/src/main/package/examples/config/JMS/JMS2JMSObjectEvent.json
new file mode 100644
index 000000000..13bc9380f
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/examples/config/JMS/JMS2JMSObjectEvent.json
@@ -0,0 +1,58 @@
+{
+ "engineServiceParameters": {
+ "name": "MyApexEngine",
+ "version": "0.0.1",
+ "id": 45,
+ "instanceCount": 4,
+ "deploymentPort": 12553,
+ "policyModelFileName": "examples/models/JMS/JMSSamplePolicyModel.json",
+ "engineParameters": {
+ "executorParameters": {
+ "JAVASCRIPT": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
+ }
+ }
+ }
+ },
+ "eventOutputParameters": {
+ "aProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "JMS",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.jms.JMSCarrierTechnologyParameters",
+ "parameters": {
+ "initialContextFactory": "org.onap.policy.apex.apps.uservice.test.adapt.jms.TestInitialContextFactory",
+ "connectionFactory": "ConnectionFactory",
+ "providerURL": "remote://localhost:5445",
+ "securityPrincipal": "guest",
+ "securityCredentials": "IAmAGuest",
+ "producerTopic": "jms/topic/apexOut"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JMSOBJECT",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.protocol.jms.JMSObjectEventProtocolParameters"
+ }
+ }
+ },
+ "eventInputParameters": {
+ "aConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "JMS",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.jms.JMSCarrierTechnologyParameters",
+ "parameters": {
+ "initialContextFactory": "org.onap.policy.apex.apps.uservice.test.adapt.jms.TestInitialContextFactory",
+ "connectionFactory": "ConnectionFactory",
+ "providerURL": "remote://localhost:5445",
+ "securityPrincipal": "guest",
+ "securityCredentials": "IAmAGuest",
+ "consumerTopic": "jms/topic/apexIn"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JMSOBJECT",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.protocol.jms.JMSObjectEventProtocolParameters"
+ }
+ }
+ }
+}
+
diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/MyFirstPolicy/1/MyFirstPolicyConfigFile2StdoutJsonEvent.json b/packages/apex-pdp-package-full/src/main/package/examples/config/MyFirstPolicy/1/MyFirstPolicyConfigFile2StdoutJsonEvent.json
new file mode 100644
index 000000000..fc81cd6a6
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/examples/config/MyFirstPolicy/1/MyFirstPolicyConfigFile2StdoutJsonEvent.json
@@ -0,0 +1,46 @@
+{
+ "engineServiceParameters": {
+ "name": "MyFirstPolicyApexEngine",
+ "version": "0.0.1",
+ "id": 103,
+ "instanceCount": 4,
+ "deploymentPort": 12345,
+ "policyModelFileName": "examples/models/MyFirstPolicy/1/MyFirstPolicyModel_0.0.1.json",
+ "engineParameters": {
+ "executorParameters": {
+ "MVEL": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MVELExecutorParameters"
+ },
+ "JAVASCRIPT": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
+ }
+ }
+ }
+ },
+ "eventOutputParameters": {
+ "FirstProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "standardIO": true
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ },
+ "eventInputParameters": {
+ "FirstConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "fileName": "examples/events/MyFirstPolicy/1/EventsIn.json.txt"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ }
+}
diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/MyFirstPolicy/1/MyFirstPolicyConfigStdin2StdoutJsonEvent.json b/packages/apex-pdp-package-full/src/main/package/examples/config/MyFirstPolicy/1/MyFirstPolicyConfigStdin2StdoutJsonEvent.json
new file mode 100644
index 000000000..27bd0a6a9
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/examples/config/MyFirstPolicy/1/MyFirstPolicyConfigStdin2StdoutJsonEvent.json
@@ -0,0 +1,46 @@
+{
+ "engineServiceParameters": {
+ "name": "MyFirstPolicyApexEngine",
+ "version": "0.0.1",
+ "id": 101,
+ "instanceCount": 4,
+ "deploymentPort": 12345,
+ "policyModelFileName": "examples/models/MyFirstPolicy/1/MyFirstPolicyModel_0.0.1.json",
+ "engineParameters": {
+ "executorParameters": {
+ "MVEL": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MVELExecutorParameters"
+ },
+ "JAVASCRIPT": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
+ }
+ }
+ }
+ },
+ "eventOutputParameters": {
+ "FirstProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "standardIO": true
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ },
+ "eventInputParameters": {
+ "FirstConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "standardIO": true
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ }
+}
diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/MyFirstPolicy/1/MyFirstPolicyConfigWs2WsServerJsonEvent.json b/packages/apex-pdp-package-full/src/main/package/examples/config/MyFirstPolicy/1/MyFirstPolicyConfigWs2WsServerJsonEvent.json
new file mode 100644
index 000000000..c4cf72171
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/examples/config/MyFirstPolicy/1/MyFirstPolicyConfigWs2WsServerJsonEvent.json
@@ -0,0 +1,50 @@
+{
+ "engineServiceParameters": {
+ "name": "MyFirstPolicyApexEngine",
+ "version": "0.0.1",
+ "id": 101,
+ "instanceCount": 4,
+ "deploymentPort": 12345,
+ "policyModelFileName": "examples/models/MyFirstPolicy/1/MyFirstPolicyModel_0.0.1.json",
+ "engineParameters": {
+ "executorParameters": {
+ "MVEL": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MVELExecutorParameters"
+ },
+ "JAVASCRIPT": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
+ }
+ }
+ }
+ },
+ "eventOutputParameters": {
+ "aProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "WEBSOCKET",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.websocket.WEBSOCKETCarrierTechnologyParameters",
+ "parameters": {
+ "wsClient": false,
+ "port": 4000
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ },
+ "eventInputParameters": {
+ "aConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "WEBSOCKET",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.websocket.WEBSOCKETCarrierTechnologyParameters",
+ "parameters": {
+ "wsClient": false,
+ "port": 3000
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ }
+}
diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/MyFirstPolicy/2/MyFirstPolicyConfigFile2StdoutJsonEvent.json b/packages/apex-pdp-package-full/src/main/package/examples/config/MyFirstPolicy/2/MyFirstPolicyConfigFile2StdoutJsonEvent.json
new file mode 100644
index 000000000..be8ae938a
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/examples/config/MyFirstPolicy/2/MyFirstPolicyConfigFile2StdoutJsonEvent.json
@@ -0,0 +1,46 @@
+{
+ "engineServiceParameters": {
+ "name": "MyFirstPolicyApexEngine",
+ "version": "0.0.1",
+ "id": 104,
+ "instanceCount": 4,
+ "deploymentPort": 12345,
+ "policyModelFileName": "examples/models/MyFirstPolicy/2/MyFirstPolicyModel_0.0.1.json",
+ "engineParameters": {
+ "executorParameters": {
+ "MVEL": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MVELExecutorParameters"
+ },
+ "JAVASCRIPT": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
+ }
+ }
+ }
+ },
+ "eventOutputParameters": {
+ "FirstProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "standardIO": true
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ },
+ "eventInputParameters": {
+ "FirstConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "fileName": "examples/events/MyFirstPolicy/2/EventsIn.json.txt"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ }
+}
diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/MyFirstPolicy/2/MyFirstPolicyConfigStdin2StdoutJsonEvent.json b/packages/apex-pdp-package-full/src/main/package/examples/config/MyFirstPolicy/2/MyFirstPolicyConfigStdin2StdoutJsonEvent.json
new file mode 100644
index 000000000..56e79b2f3
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/examples/config/MyFirstPolicy/2/MyFirstPolicyConfigStdin2StdoutJsonEvent.json
@@ -0,0 +1,46 @@
+{
+ "engineServiceParameters": {
+ "name": "MyFirstPolicyApexEngine",
+ "version": "0.0.1",
+ "id": 102,
+ "instanceCount": 4,
+ "deploymentPort": 12345,
+ "policyModelFileName": "examples/models/MyFirstPolicy/2/MyFirstPolicyModel_0.0.1.json",
+ "engineParameters": {
+ "executorParameters": {
+ "MVEL": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MVELExecutorParameters"
+ },
+ "JAVASCRIPT": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
+ }
+ }
+ }
+ },
+ "eventOutputParameters": {
+ "FirstProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "standardIO": true
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ },
+ "eventInputParameters": {
+ "FirstConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "standardIO": true
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ }
+}
diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/MyFirstPolicy/2/MyFirstPolicyConfigWs2WsServerJsonEvent.json b/packages/apex-pdp-package-full/src/main/package/examples/config/MyFirstPolicy/2/MyFirstPolicyConfigWs2WsServerJsonEvent.json
new file mode 100644
index 000000000..65612b6db
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/examples/config/MyFirstPolicy/2/MyFirstPolicyConfigWs2WsServerJsonEvent.json
@@ -0,0 +1,50 @@
+{
+ "engineServiceParameters": {
+ "name": "MyFirstPolicyApexEngine",
+ "version": "0.0.1",
+ "id": 102,
+ "instanceCount": 4,
+ "deploymentPort": 12345,
+ "policyModelFileName": "examples/models/MyFirstPolicy/2/MyFirstPolicyModel_0.0.1.json",
+ "engineParameters": {
+ "executorParameters": {
+ "MVEL": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MVELExecutorParameters"
+ },
+ "JAVASCRIPT": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
+ }
+ }
+ }
+ },
+ "eventOutputParameters": {
+ "aProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "WEBSOCKET",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.websocket.WEBSOCKETCarrierTechnologyParameters",
+ "parameters": {
+ "wsClient": false,
+ "port": 4000
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ },
+ "eventInputParameters": {
+ "aConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "WEBSOCKET",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.websocket.WEBSOCKETCarrierTechnologyParameters",
+ "parameters": {
+ "wsClient": false,
+ "port": 3000
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ }
+}
diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2FileJsonEvent.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2FileJsonEvent.json
new file mode 100644
index 000000000..bfd399263
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2FileJsonEvent.json
@@ -0,0 +1,43 @@
+{
+ "engineServiceParameters": {
+ "name": "MyApexEngine",
+ "version": "0.0.1",
+ "id": 45,
+ "instanceCount": 4,
+ "deploymentPort": 12545,
+ "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.json",
+ "engineParameters": {
+ "executorParameters": {
+ "JAVASCRIPT": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
+ }
+ }
+ }
+ },
+ "eventOutputParameters": {
+ "aProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "fileName": "examples/events/SampleDomain/EventsOut.json"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ },
+ "eventInputParameters": {
+ "aConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "fileName": "examples/events/SampleDomain/EventsIn.json"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ }
+}
diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2FileJsonEventAsyncMIMO.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2FileJsonEventAsyncMIMO.json
new file mode 100644
index 000000000..b8fe2f9ed
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2FileJsonEventAsyncMIMO.json
@@ -0,0 +1,87 @@
+{
+ "engineServiceParameters": {
+ "name": "MyApexEngine",
+ "version": "0.0.1",
+ "id": 45,
+ "instanceCount": 4,
+ "deploymentPort": 12545,
+ "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.json",
+ "engineParameters": {
+ "executorParameters": {
+ "JAVASCRIPT": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
+ }
+ }
+ }
+ },
+ "eventInputParameters": {
+ "aConsumer0": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "fileName": "examples/events/SampleDomain/EventsInMulti0.json"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ },
+ "aConsumer1": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "fileName": "examples/events/SampleDomain/EventsInMulti1.json"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ },
+ "aConsumer2": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "fileName": "examples/events/SampleDomain/EventsInMulti2.json"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ },
+ "eventOutputParameters": {
+ "aProducer0": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "fileName": "examples/events/SampleDomain/EventsOutMulti0.json"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ },
+ "aProducer1": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "fileName": "examples/events/SampleDomain/EventsOutMulti1.json"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ },
+ "aProducer2": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "fileName": "examples/events/SampleDomain/EventsOutMulti2.json"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ }
+}
diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2FileJsonEventAsyncMISO.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2FileJsonEventAsyncMISO.json
new file mode 100644
index 000000000..b02c5ee71
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2FileJsonEventAsyncMISO.json
@@ -0,0 +1,65 @@
+{
+ "engineServiceParameters": {
+ "name": "MyApexEngine",
+ "version": "0.0.1",
+ "id": 45,
+ "instanceCount": 4,
+ "deploymentPort": 12545,
+ "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.json",
+ "engineParameters": {
+ "executorParameters": {
+ "JAVASCRIPT": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
+ }
+ }
+ }
+ },
+ "eventInputParameters": {
+ "aConsumer0": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "fileName": "examples/events/SampleDomain/EventsInMulti0.json"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ },
+ "aConsumer1": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "fileName": "examples/events/SampleDomain/EventsInMulti1.json"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ },
+ "aConsumer2": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "fileName": "examples/events/SampleDomain/EventsInMulti2.json"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ },
+ "eventOutputParameters": {
+ "aProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "fileName": "examples/events/SampleDomain/EventsOutSingle.json"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ }
+}
diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2FileJsonEventAsyncSIMO.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2FileJsonEventAsyncSIMO.json
new file mode 100644
index 000000000..79ec1557c
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2FileJsonEventAsyncSIMO.json
@@ -0,0 +1,65 @@
+{
+ "engineServiceParameters": {
+ "name": "MyApexEngine",
+ "version": "0.0.1",
+ "id": 45,
+ "instanceCount": 4,
+ "deploymentPort": 12545,
+ "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.json",
+ "engineParameters": {
+ "executorParameters": {
+ "JAVASCRIPT": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
+ }
+ }
+ }
+ },
+ "eventInputParameters": {
+ "aConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "fileName": "examples/events/SampleDomain/EventsIn.json"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ },
+ "eventOutputParameters": {
+ "aProducer0": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "fileName": "examples/events/SampleDomain/EventsOutMulti0.json"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ },
+ "aProducer1": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "fileName": "examples/events/SampleDomain/EventsOutMulti1.json"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ },
+ "aProducer2": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "fileName": "examples/events/SampleDomain/EventsOutMulti2.json"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ }
+}
diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2FileJsonEventAsyncSISO.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2FileJsonEventAsyncSISO.json
new file mode 100644
index 000000000..3308d08e5
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2FileJsonEventAsyncSISO.json
@@ -0,0 +1,43 @@
+{
+ "engineServiceParameters": {
+ "name": "MyApexEngine",
+ "version": "0.0.1",
+ "id": 45,
+ "instanceCount": 4,
+ "deploymentPort": 12545,
+ "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.json",
+ "engineParameters": {
+ "executorParameters": {
+ "JAVASCRIPT": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
+ }
+ }
+ }
+ },
+ "eventOutputParameters": {
+ "aProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "fileName": "examples/events/SampleDomain/EventsOutSingle.json"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ },
+ "eventInputParameters": {
+ "aConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "fileName": "examples/events/SampleDomain/EventsIn.json"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ }
+}
diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2FileJsonEventSyncMIMO.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2FileJsonEventSyncMIMO.json
new file mode 100644
index 000000000..fea2f5319
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2FileJsonEventSyncMIMO.json
@@ -0,0 +1,105 @@
+{
+ "engineServiceParameters": {
+ "name": "MyApexEngine",
+ "version": "0.0.1",
+ "id": 45,
+ "instanceCount": 4,
+ "deploymentPort": 12545,
+ "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.json",
+ "engineParameters": {
+ "executorParameters": {
+ "JAVASCRIPT": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
+ }
+ }
+ }
+ },
+ "eventInputParameters": {
+ "aConsumer0": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "fileName": "examples/events/SampleDomain/EventsInMulti0.json"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "synchronousMode": true,
+ "synchronousPeer": "aProducer0",
+ "synchronousTimeout": 1000
+ },
+ "aConsumer1": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "fileName": "examples/events/SampleDomain/EventsInMulti1.json"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "synchronousMode": true,
+ "synchronousPeer": "aProducer1",
+ "synchronousTimeout": 1000
+ },
+ "aConsumer2": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "fileName": "examples/events/SampleDomain/EventsInMulti2.json"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "synchronousMode": true,
+ "synchronousPeer": "aProducer2",
+ "synchronousTimeout": 1000
+ }
+ },
+ "eventOutputParameters": {
+ "aProducer0": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "fileName": "examples/events/SampleDomain/EventsOutMulti0.json"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "synchronousMode": true,
+ "synchronousPeer": "aConsumer0",
+ "synchronousTimeout": 1000
+ },
+ "aProducer1": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "fileName": "examples/events/SampleDomain/EventsOutMulti1.json"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "synchronousMode": true,
+ "synchronousPeer": "aConsumer1",
+ "synchronousTimeout": 1000
+ },
+ "aProducer2": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "fileName": "examples/events/SampleDomain/EventsOutMulti2.json"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "synchronousMode": true,
+ "synchronousPeer": "aConsumer2",
+ "synchronousTimeout": 1000
+ }
+ }
+}
diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2FileJsonEventSyncSISO.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2FileJsonEventSyncSISO.json
new file mode 100644
index 000000000..7aac345cb
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2FileJsonEventSyncSISO.json
@@ -0,0 +1,49 @@
+{
+ "engineServiceParameters": {
+ "name": "MyApexEngine",
+ "version": "0.0.1",
+ "id": 45,
+ "instanceCount": 4,
+ "deploymentPort": 12545,
+ "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.json",
+ "engineParameters": {
+ "executorParameters": {
+ "JAVASCRIPT": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
+ }
+ }
+ }
+ },
+ "eventOutputParameters": {
+ "SyncProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "fileName": "examples/events/SampleDomain/EventsOutSingle.json"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "synchronousMode": true,
+ "synchronousPeer": "SyncConsumer",
+ "synchronousTimeout": 1000
+ }
+ },
+ "eventInputParameters": {
+ "SyncConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "fileName": "examples/events/SampleDomain/EventsIn.json"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "synchronousMode": true,
+ "synchronousPeer": "SyncProducer",
+ "synchronousTimeout": 1000
+ }
+ }
+}
diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2FileXmlEvent.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2FileXmlEvent.json
new file mode 100644
index 000000000..7c6cbb9e8
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2FileXmlEvent.json
@@ -0,0 +1,45 @@
+{
+ "engineServiceParameters": {
+ "name": "MyApexEngine",
+ "version": "0.0.1",
+ "id": 45,
+ "instanceCount": 4,
+ "deploymentPort": 12546,
+ "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml",
+ "engineParameters": {
+ "executorParameters": {
+ "JAVASCRIPT": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
+ }
+ }
+ }
+ },
+ "eventOutputParameters": {
+ "aProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "fileName": "examples/events/SampleDomain/EventsOut.xmlfile"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "XML",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.protocol.xml.XMLEventProtocolParameters"
+ }
+ }
+ },
+ "eventInputParameters": {
+ "aConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "fileName": "examples/events/SampleDomain/EventsIn.xmlfile"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "XML",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.protocol.xml.XMLEventProtocolParameters"
+ }
+ }
+ }
+}
diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2RESTJsonEventPost.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2RESTJsonEventPost.json
new file mode 100644
index 000000000..9578d77ce
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2RESTJsonEventPost.json
@@ -0,0 +1,44 @@
+{
+ "engineServiceParameters": {
+ "name": "MyApexEngine",
+ "version": "0.0.1",
+ "id": 45,
+ "instanceCount": 4,
+ "deploymentPort": 12561,
+ "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml",
+ "engineParameters": {
+ "executorParameters": {
+ "JAVASCRIPT": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
+ }
+ }
+ }
+ },
+ "eventOutputParameters": {
+ "FirstProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "RESTCLIENT",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RESTClientCarrierTechnologyParameters",
+ "parameters": {
+ "url": "http://localhost:32801/TestFile2Rest/apex/event/PostEvent"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ },
+ "eventInputParameters": {
+ "FirstConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "fileName": "examples/events/SampleDomain/EventsIn.json"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ }
+}
diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2RESTJsonEventPut.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2RESTJsonEventPut.json
new file mode 100644
index 000000000..db49ffb02
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2RESTJsonEventPut.json
@@ -0,0 +1,45 @@
+{
+ "engineServiceParameters": {
+ "name": "MyApexEngine",
+ "version": "0.0.1",
+ "id": 45,
+ "instanceCount": 4,
+ "deploymentPort": 12561,
+ "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml",
+ "engineParameters": {
+ "executorParameters": {
+ "JAVASCRIPT": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
+ }
+ }
+ }
+ },
+ "eventOutputParameters": {
+ "FirstProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "RESTCLIENT",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RESTClientCarrierTechnologyParameters",
+ "parameters": {
+ "url": "http://localhost:32801/TestFile2Rest/apex/event/PutEvent",
+ "httpMethod": "PUT"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ },
+ "eventInputParameters": {
+ "FirstConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "fileName": "examples/events/SampleDomain/EventsIn.json"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ }
+}
diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2StderrJsonEvent.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2StderrJsonEvent.json
new file mode 100644
index 000000000..429e9564f
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2StderrJsonEvent.json
@@ -0,0 +1,43 @@
+{
+ "engineServiceParameters": {
+ "name": "MyApexEngine",
+ "version": "0.0.1",
+ "id": 45,
+ "instanceCount": 4,
+ "deploymentPort": 12345,
+ "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml",
+ "engineParameters": {
+ "executorParameters": {
+ "JAVASCRIPT": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
+ }
+ }
+ }
+ },
+ "eventOutputParameters": {
+ "FirstProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "standardError": true
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ },
+ "eventInputParameters": {
+ "FirstConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "fileName": "examples/events/SampleDomain/EventsIn.json"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ }
+}
diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2StdoutJsonEvent.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2StdoutJsonEvent.json
new file mode 100644
index 000000000..593a27249
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2StdoutJsonEvent.json
@@ -0,0 +1,43 @@
+{
+ "engineServiceParameters": {
+ "name": "MyApexEngine",
+ "version": "0.0.1",
+ "id": 45,
+ "instanceCount": 4,
+ "deploymentPort": 12345,
+ "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml",
+ "engineParameters": {
+ "executorParameters": {
+ "JAVASCRIPT": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
+ }
+ }
+ }
+ },
+ "eventOutputParameters": {
+ "FirstProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "standardIO": true
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ },
+ "eventInputParameters": {
+ "FirstConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "fileName": "examples/events/SampleDomain/EventsIn.json"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ }
+}
diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2StdoutJsonEventJavascript.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2StdoutJsonEventJavascript.json
new file mode 100644
index 000000000..593a27249
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2StdoutJsonEventJavascript.json
@@ -0,0 +1,43 @@
+{
+ "engineServiceParameters": {
+ "name": "MyApexEngine",
+ "version": "0.0.1",
+ "id": 45,
+ "instanceCount": 4,
+ "deploymentPort": 12345,
+ "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml",
+ "engineParameters": {
+ "executorParameters": {
+ "JAVASCRIPT": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
+ }
+ }
+ }
+ },
+ "eventOutputParameters": {
+ "FirstProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "standardIO": true
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ },
+ "eventInputParameters": {
+ "FirstConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "fileName": "examples/events/SampleDomain/EventsIn.json"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ }
+}
diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2StdoutJsonEventMVEL.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2StdoutJsonEventMVEL.json
new file mode 100644
index 000000000..dcda3d859
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2StdoutJsonEventMVEL.json
@@ -0,0 +1,43 @@
+{
+ "engineServiceParameters": {
+ "name": "MyApexEngine",
+ "version": "0.0.1",
+ "id": 45,
+ "instanceCount": 4,
+ "deploymentPort": 12345,
+ "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelMVEL.json",
+ "engineParameters": {
+ "executorParameters": {
+ "MVEL": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MVELExecutorParameters"
+ }
+ }
+ }
+ },
+ "eventOutputParameters": {
+ "FirstProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "standardIO": true
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ },
+ "eventInputParameters": {
+ "FirstConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "fileName": "examples/events/SampleDomain/EventsIn.json"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ }
+}
diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2StdoutXmlEvent.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2StdoutXmlEvent.json
new file mode 100644
index 000000000..341961f51
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2StdoutXmlEvent.json
@@ -0,0 +1,45 @@
+{
+ "engineServiceParameters": {
+ "name": "MyApexEngine",
+ "version": "0.0.1",
+ "id": 45,
+ "instanceCount": 4,
+ "deploymentPort": 12345,
+ "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml",
+ "engineParameters": {
+ "executorParameters": {
+ "JAVASCRIPT": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
+ }
+ }
+ }
+ },
+ "eventOutputParameters": {
+ "FirstProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "standardIO": true
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "XML",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.protocol.xml.XMLEventProtocolParameters"
+ }
+ }
+ },
+ "eventInputParameters": {
+ "FirstConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "fileName": "examples/events/SampleDomain/EventsIn.xmlfile"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "XML",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.protocol.xml.XMLEventProtocolParameters"
+ }
+ }
+ }
+}
diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Kafka2FileJsonEvent.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Kafka2FileJsonEvent.json
new file mode 100644
index 000000000..e506f28c7
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Kafka2FileJsonEvent.json
@@ -0,0 +1,55 @@
+{
+ "engineServiceParameters": {
+ "name": "MyApexEngine",
+ "version": "0.0.1",
+ "id": 45,
+ "instanceCount": 4,
+ "deploymentPort": 12345,
+ "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml",
+ "engineParameters": {
+ "executorParameters": {
+ "JAVASCRIPT": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
+ }
+ }
+ }
+ },
+ "eventOutputParameters": {
+ "FirstProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "fileName": "examples/events/SampleDomain/EventsOut.json"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ },
+ "eventInputParameters": {
+ "FirstConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "KAFKA",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.kafka.KAFKACarrierTechnologyParameters",
+ "parameters": {
+ "bootstrapServers": "localhost:49092",
+ "groupId": "apex-group-id",
+ "enableAutoCommit": true,
+ "autoCommitTime": 1000,
+ "sessionTimeout": 30000,
+ "consumerPollTime": 100,
+ "consumerTopicList": [
+ "apex-in-0",
+ "apex-in-1"
+ ],
+ "keyDeserializer": "org.apache.kafka.common.serialization.StringDeserializer",
+ "valueDeserializer": "org.apache.kafka.common.serialization.StringDeserializer"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ }
+}
diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Kafka2KafkaJsonEvent.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Kafka2KafkaJsonEvent.json
new file mode 100644
index 000000000..70514d526
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Kafka2KafkaJsonEvent.json
@@ -0,0 +1,63 @@
+{
+ "engineServiceParameters": {
+ "name": "MyApexEngine",
+ "version": "0.0.1",
+ "id": 45,
+ "instanceCount": 4,
+ "deploymentPort": 12547,
+ "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml",
+ "engineParameters": {
+ "executorParameters": {
+ "JAVASCRIPT": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
+ }
+ }
+ }
+ },
+ "eventOutputParameters": {
+ "aProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "KAFKA",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.kafka.KAFKACarrierTechnologyParameters",
+ "parameters": {
+ "bootstrapServers": "localhost:39902",
+ "acks": "all",
+ "retries": 0,
+ "batchSize": 16384,
+ "lingerTime": 1,
+ "bufferMemory": 33554432,
+ "producerTopic": "apex-out-json",
+ "keySerializer": "org.apache.kafka.common.serialization.StringSerializer",
+ "valueSerializer": "org.apache.kafka.common.serialization.StringSerializer"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ },
+ "eventInputParameters": {
+ "aConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "KAFKA",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.kafka.KAFKACarrierTechnologyParameters",
+ "parameters": {
+ "bootstrapServers": "localhost:39902",
+ "groupId": "apex-group-id",
+ "enableAutoCommit": true,
+ "autoCommitTime": 1000,
+ "sessionTimeout": 30000,
+ "consumerPollTime": 100,
+ "consumerTopicList": [
+ "apex-in-json"
+ ],
+ "keyDeserializer": "org.apache.kafka.common.serialization.StringDeserializer",
+ "valueDeserializer": "org.apache.kafka.common.serialization.StringDeserializer"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ }
+}
diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Kafka2KafkaXmlEvent.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Kafka2KafkaXmlEvent.json
new file mode 100644
index 000000000..38946bd19
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Kafka2KafkaXmlEvent.json
@@ -0,0 +1,65 @@
+{
+ "engineServiceParameters": {
+ "name": "MyApexEngine",
+ "version": "0.0.1",
+ "id": 45,
+ "instanceCount": 3,
+ "deploymentPort": 12548,
+ "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml",
+ "engineParameters": {
+ "executorParameters": {
+ "JAVASCRIPT": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
+ }
+ }
+ }
+ },
+ "eventOutputParameters": {
+ "aProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "KAFKA",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.kafka.KAFKACarrierTechnologyParameters",
+ "parameters": {
+ "bootstrapServers": "localhost:39902",
+ "acks": "all",
+ "retries": 0,
+ "batchSize": 16384,
+ "lingerTime": 1,
+ "bufferMemory": 33554432,
+ "producerTopic": "apex-out-xml",
+ "keySerializer": "org.apache.kafka.common.serialization.StringSerializer",
+ "valueSerializer": "org.apache.kafka.common.serialization.StringSerializer"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "XML",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.protocol.xml.XMLEventProtocolParameters"
+ }
+ }
+ },
+ "eventInputParameters": {
+ "aConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "KAFKA",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.kafka.KAFKACarrierTechnologyParameters",
+ "parameters": {
+ "bootstrapServers": "localhost:39902",
+ "groupId": "apex-group-id",
+ "enableAutoCommit": true,
+ "autoCommitTime": 1000,
+ "sessionTimeout": 30000,
+ "consumerPollTime": 100,
+ "consumerTopicList": [
+ "apex-in-xml"
+ ],
+ "keyDeserializer": "org.apache.kafka.common.serialization.StringDeserializer",
+ "valueDeserializer": "org.apache.kafka.common.serialization.StringDeserializer"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "XML",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.protocol.xml.XMLEventProtocolParameters"
+ }
+ }
+ }
+}
diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Kafka2RESTJsonEventJava.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Kafka2RESTJsonEventJava.json
new file mode 100644
index 000000000..054b7bdd8
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Kafka2RESTJsonEventJava.json
@@ -0,0 +1,56 @@
+{
+ "engineServiceParameters": {
+ "name": "MyApexEngine",
+ "version": "0.0.1",
+ "id": 45,
+ "instanceCount": 4,
+ "deploymentPort": 12345,
+ "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVA.json",
+ "engineParameters": {
+ "executorParameters": {
+ "JAVA": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.java.JavaExecutorParameters"
+ }
+ }
+ }
+ },
+ "eventOutputParameters": {
+ "FirstProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "RESTCLIENT",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RESTClientCarrierTechnologyParameters",
+ "parameters": {
+ "url": "http://localhost:32801/TestFile2Rest/apex/event/PostEvent"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ },
+ "eventInputParameters": {
+ "TheKafkaConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "KAFKA",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.kafka.KAFKACarrierTechnologyParameters",
+ "parameters": {
+ "bootstrapServers": "localhost:49092",
+ "groupId": "apex-group-id",
+ "enableAutoCommit": true,
+ "autoCommitTime": 1000,
+ "sessionTimeout": 30000,
+ "consumerPollTime": 100,
+ "consumerTopicList": [
+ "apex-in-0",
+ "apex-in-1"
+ ],
+ "keyDeserializer": "org.apache.kafka.common.serialization.StringDeserializer",
+ "valueDeserializer": "org.apache.kafka.common.serialization.StringDeserializer"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ }
+}
diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/REST2FileJsonEvent.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/REST2FileJsonEvent.json
new file mode 100644
index 000000000..946b5725b
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/REST2FileJsonEvent.json
@@ -0,0 +1,44 @@
+{
+ "engineServiceParameters": {
+ "name": "MyApexEngine",
+ "version": "0.0.1",
+ "id": 45,
+ "instanceCount": 4,
+ "deploymentPort": 12561,
+ "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml",
+ "engineParameters": {
+ "executorParameters": {
+ "JAVASCRIPT": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
+ }
+ }
+ }
+ },
+ "eventInputParameters": {
+ "FirstConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "RESTCLIENT",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RESTClientCarrierTechnologyParameters",
+ "parameters": {
+ "url": "http://localhost:32801/TestRest2File/apex/event/GetEvent"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ },
+ "eventOutputParameters": {
+ "FirstProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "fileName": "examples/events/SampleDomain/EventsOut.json"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ }
+}
diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/REST2RESTJsonEvent.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/REST2RESTJsonEvent.json
new file mode 100644
index 000000000..f4d469f9c
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/REST2RESTJsonEvent.json
@@ -0,0 +1,45 @@
+{
+ "engineServiceParameters": {
+ "name": "MyApexEngine",
+ "version": "0.0.1",
+ "id": 45,
+ "instanceCount": 4,
+ "deploymentPort": 12561,
+ "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml",
+ "engineParameters": {
+ "executorParameters": {
+ "JAVASCRIPT": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
+ }
+ }
+ }
+ },
+ "eventInputParameters": {
+ "FirstConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "RESTCLIENT",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RESTClientCarrierTechnologyParameters",
+ "parameters": {
+ "url": "http://localhost:32801/TestRest2REST/apex/event/GetEvent"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ },
+ "eventOutputParameters": {
+ "FirstProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "RESTCLIENT",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RESTClientCarrierTechnologyParameters",
+ "parameters": {
+ "url": "http://localhost:32801/TestRest2REST/apex/event/PostEvent"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ }
+}
diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/REST2RESTONAPJsonEvent.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/REST2RESTONAPJsonEvent.json
new file mode 100644
index 000000000..ecfe9abf6
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/REST2RESTONAPJsonEvent.json
@@ -0,0 +1,45 @@
+{
+ "engineServiceParameters": {
+ "name": "MyApexEngine",
+ "version": "0.0.1",
+ "id": 45,
+ "instanceCount": 4,
+ "deploymentPort": 12561,
+ "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml",
+ "engineParameters": {
+ "executorParameters": {
+ "JAVASCRIPT": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
+ }
+ }
+ }
+ },
+ "eventInputParameters": {
+ "FirstConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "RESTCLIENT",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RESTClientCarrierTechnologyParameters",
+ "parameters": {
+ "url": "http://192.168.219.142:3904/events/apexDMaaP/apexCG/apexC?timeout=10000"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ },
+ "eventOutputParameters": {
+ "FirstProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "RESTCLIENT",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RESTClientCarrierTechnologyParameters",
+ "parameters": {
+ "url": "http://192.168.219.142:3904/events/apexDMaaPOut"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ }
+}
diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/RESTServerStandaloneJsonEvent.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/RESTServerStandaloneJsonEvent.json
new file mode 100644
index 000000000..496db9e2d
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/RESTServerStandaloneJsonEvent.json
@@ -0,0 +1,50 @@
+{
+ "engineServiceParameters": {
+ "name": "MyApexEngine",
+ "version": "0.0.1",
+ "id": 45,
+ "instanceCount": 4,
+ "deploymentPort": 12561,
+ "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml",
+ "engineParameters": {
+ "executorParameters": {
+ "JAVASCRIPT": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
+ }
+ }
+ }
+ },
+ "eventInputParameters": {
+ "FirstConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "RESTSERVER",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RESTServerCarrierTechnologyParameters",
+ "parameters": {
+ "standalone": true,
+ "host": "localhost",
+ "port": 23324
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "synchronousMode": true,
+ "synchronousPeer": "FirstProducer",
+ "synchronousTimeout": 500
+ }
+ },
+ "eventOutputParameters": {
+ "FirstProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "RESTSERVER",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RESTServerCarrierTechnologyParameters"
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "synchronousMode": true,
+ "synchronousPeer": "FirstConsumer",
+ "synchronousTimeout": 500
+ }
+ }
+}
diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/RESTServerStandaloneJsonEventMultiIn.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/RESTServerStandaloneJsonEventMultiIn.json
new file mode 100644
index 000000000..fe8081e20
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/RESTServerStandaloneJsonEventMultiIn.json
@@ -0,0 +1,79 @@
+{
+ "engineServiceParameters": {
+ "name": "MyApexEngine",
+ "version": "0.0.1",
+ "id": 45,
+ "instanceCount": 4,
+ "deploymentPort": 12561,
+ "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml",
+ "engineParameters": {
+ "executorParameters": {
+ "JAVASCRIPT": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
+ }
+ }
+ }
+ },
+ "eventInputParameters": {
+ "FirstConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "RESTSERVER",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RESTServerCarrierTechnologyParameters",
+ "parameters": {
+ "standalone": true,
+ "host": "localhost",
+ "port": 23324
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "synchronousMode": true,
+ "synchronousPeer": "FirstProducer",
+ "synchronousTimeout": 500
+ },
+ "SecondConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "RESTSERVER",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RESTServerCarrierTechnologyParameters",
+ "parameters": {
+ "standalone": true,
+ "host": "localhost",
+ "port": 23325
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "synchronousMode": true,
+ "synchronousPeer": "SecondProducer",
+ "synchronousTimeout": 500
+ }
+ },
+ "eventOutputParameters": {
+ "FirstProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "RESTSERVER",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RESTServerCarrierTechnologyParameters"
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "synchronousMode": true,
+ "synchronousPeer": "FirstConsumer",
+ "synchronousTimeout": 500
+ },
+ "SecondProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "RESTSERVER",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RESTServerCarrierTechnologyParameters"
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "synchronousMode": true,
+ "synchronousPeer": "SecondConsumer",
+ "synchronousTimeout": 500
+ }
+ }
+}
diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/RESTServerTomcatJsonEvent.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/RESTServerTomcatJsonEvent.json
new file mode 100644
index 000000000..03e29342d
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/RESTServerTomcatJsonEvent.json
@@ -0,0 +1,45 @@
+{
+ "engineServiceParameters": {
+ "name": "MyApexEngine",
+ "version": "0.0.1",
+ "id": 45,
+ "instanceCount": 4,
+ "deploymentPort": 12561,
+ "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml",
+ "engineParameters": {
+ "executorParameters": {
+ "JAVASCRIPT": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
+ }
+ }
+ }
+ },
+ "eventInputParameters": {
+ "FirstConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "RESTSERVER",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RESTServerCarrierTechnologyParameters"
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "synchronousMode": true,
+ "synchronousPeer": "FirstProducer",
+ "synchronousTimeout": 500
+ }
+ },
+ "eventOutputParameters": {
+ "FirstProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "RESTSERVER",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RESTServerCarrierTechnologyParameters"
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "synchronousMode": true,
+ "synchronousPeer": "FirstConsumer",
+ "synchronousTimeout": 500
+ }
+ }
+}
diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/RESTServerTomcatJsonEventMultiIn.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/RESTServerTomcatJsonEventMultiIn.json
new file mode 100644
index 000000000..aea0cbab5
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/RESTServerTomcatJsonEventMultiIn.json
@@ -0,0 +1,69 @@
+{
+ "engineServiceParameters": {
+ "name": "MyApexEngine",
+ "version": "0.0.1",
+ "id": 45,
+ "instanceCount": 4,
+ "deploymentPort": 12561,
+ "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml",
+ "engineParameters": {
+ "executorParameters": {
+ "JAVASCRIPT": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
+ }
+ }
+ }
+ },
+ "eventInputParameters": {
+ "FirstConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "RESTSERVER",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RESTServerCarrierTechnologyParameters"
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "synchronousMode": true,
+ "synchronousPeer": "FirstProducer",
+ "synchronousTimeout": 500
+ },
+ "SecondConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "RESTSERVER",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RESTServerCarrierTechnologyParameters"
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "synchronousMode": true,
+ "synchronousPeer": "SecondProducer",
+ "synchronousTimeout": 500
+ }
+ },
+ "eventOutputParameters": {
+ "FirstProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "RESTSERVER",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RESTServerCarrierTechnologyParameters"
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "synchronousMode": true,
+ "synchronousPeer": "FirstConsumer",
+ "synchronousTimeout": 500
+ },
+ "SecondProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "RESTSERVER",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RESTServerCarrierTechnologyParameters"
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ },
+ "synchronousMode": true,
+ "synchronousPeer": "SecondConsumer",
+ "synchronousTimeout": 500
+ }
+ }
+}
diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Stdin2RESTJsonEventJava.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Stdin2RESTJsonEventJava.json
new file mode 100644
index 000000000..f79adb708
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Stdin2RESTJsonEventJava.json
@@ -0,0 +1,44 @@
+{
+ "engineServiceParameters": {
+ "name": "MyApexEngine",
+ "version": "0.0.1",
+ "id": 45,
+ "instanceCount": 4,
+ "deploymentPort": 12345,
+ "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVA.json",
+ "engineParameters": {
+ "executorParameters": {
+ "JAVA": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.java.JavaExecutorParameters"
+ }
+ }
+ }
+ },
+ "eventOutputParameters": {
+ "FirstProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "RESTCLIENT",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RESTClientCarrierTechnologyParameters",
+ "parameters": {
+ "url": "http://localhost:32801/TestFile2Rest/apex/event/PostEvent"
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ },
+ "eventInputParameters": {
+ "TheFileConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "standardIO": true
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ }
+}
diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Stdin2StdoutJsonEventJRuby.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Stdin2StdoutJsonEventJRuby.json
new file mode 100644
index 000000000..060e083a3
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Stdin2StdoutJsonEventJRuby.json
@@ -0,0 +1,43 @@
+{
+ "engineServiceParameters": {
+ "name": "MyApexEngine",
+ "version": "0.0.1",
+ "id": 45,
+ "instanceCount": 4,
+ "deploymentPort": 12345,
+ "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJRUBY.json",
+ "engineParameters": {
+ "executorParameters": {
+ "JRUBY": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.jruby.JrubyExecutorParameters"
+ }
+ }
+ }
+ },
+ "eventOutputParameters": {
+ "FirstProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "standardIO": true
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ },
+ "eventInputParameters": {
+ "FirstConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "standardIO": true
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ }
+}
diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Stdin2StdoutJsonEventJava.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Stdin2StdoutJsonEventJava.json
new file mode 100644
index 000000000..b5c73eb23
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Stdin2StdoutJsonEventJava.json
@@ -0,0 +1,43 @@
+{
+ "engineServiceParameters": {
+ "name": "MyApexEngine",
+ "version": "0.0.1",
+ "id": 45,
+ "instanceCount": 4,
+ "deploymentPort": 12345,
+ "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVA.json",
+ "engineParameters": {
+ "executorParameters": {
+ "JAVA": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.java.JavaExecutorParameters"
+ }
+ }
+ }
+ },
+ "eventOutputParameters": {
+ "FirstProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "standardIO": true
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ },
+ "eventInputParameters": {
+ "FirstConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "standardIO": true
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ }
+}
diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Stdin2StdoutJsonEventJavascript.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Stdin2StdoutJsonEventJavascript.json
new file mode 100644
index 000000000..415a09481
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Stdin2StdoutJsonEventJavascript.json
@@ -0,0 +1,43 @@
+{
+ "engineServiceParameters": {
+ "name": "MyApexEngine",
+ "version": "0.0.1",
+ "id": 45,
+ "instanceCount": 4,
+ "deploymentPort": 12345,
+ "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.json",
+ "engineParameters": {
+ "executorParameters": {
+ "JAVASCRIPT": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
+ }
+ }
+ }
+ },
+ "eventOutputParameters": {
+ "FirstProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "standardIO": true
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ },
+ "eventInputParameters": {
+ "FirstConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "standardIO": true
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ }
+}
diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Stdin2StdoutJsonEventJython.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Stdin2StdoutJsonEventJython.json
new file mode 100644
index 000000000..a6095dcb3
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Stdin2StdoutJsonEventJython.json
@@ -0,0 +1,43 @@
+{
+ "engineServiceParameters": {
+ "name": "MyApexEngine",
+ "version": "0.0.1",
+ "id": 45,
+ "instanceCount": 4,
+ "deploymentPort": 12345,
+ "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJYTHON.json",
+ "engineParameters": {
+ "executorParameters": {
+ "JYTHON": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.jython.JythonExecutorParameters"
+ }
+ }
+ }
+ },
+ "eventOutputParameters": {
+ "FirstProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "standardIO": true
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ },
+ "eventInputParameters": {
+ "FirstConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "standardIO": true
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ }
+}
diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Stdin2StdoutJsonEventMVEL.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Stdin2StdoutJsonEventMVEL.json
new file mode 100644
index 000000000..b18157a19
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Stdin2StdoutJsonEventMVEL.json
@@ -0,0 +1,43 @@
+{
+ "engineServiceParameters": {
+ "name": "MyApexEngine",
+ "version": "0.0.1",
+ "id": 45,
+ "instanceCount": 4,
+ "deploymentPort": 12345,
+ "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelMVEL.json",
+ "engineParameters": {
+ "executorParameters": {
+ "MVEL": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MVELExecutorParameters"
+ }
+ }
+ }
+ },
+ "eventOutputParameters": {
+ "FirstProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "standardIO": true
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ },
+ "eventInputParameters": {
+ "FirstConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "standardIO": true
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ }
+}
diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Stdin2StdoutXmlEvent.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Stdin2StdoutXmlEvent.json
new file mode 100644
index 000000000..a1a35adcf
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Stdin2StdoutXmlEvent.json
@@ -0,0 +1,45 @@
+{
+ "engineServiceParameters": {
+ "name": "MyApexEngine",
+ "version": "0.0.1",
+ "id": 45,
+ "instanceCount": 4,
+ "deploymentPort": 12345,
+ "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml",
+ "engineParameters": {
+ "executorParameters": {
+ "JAVASCRIPT": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
+ }
+ }
+ }
+ },
+ "eventOutputParameters": {
+ "FirstProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "standardIO": true
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "XML",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.protocol.xml.XMLEventProtocolParameters"
+ }
+ }
+ },
+ "eventInputParameters": {
+ "FirstConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "FILE",
+ "parameters": {
+ "standardIO": true
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "XML",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.protocol.xml.XMLEventProtocolParameters"
+ }
+ }
+ }
+}
diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Ws2WsClientJsonEvent.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Ws2WsClientJsonEvent.json
new file mode 100644
index 000000000..d177fe8a6
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Ws2WsClientJsonEvent.json
@@ -0,0 +1,47 @@
+{
+ "engineServiceParameters": {
+ "name": "MyApexEngine",
+ "version": "0.0.1",
+ "id": 45,
+ "instanceCount": 4,
+ "deploymentPort": 12552,
+ "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml",
+ "engineParameters": {
+ "executorParameters": {
+ "JAVASCRIPT": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
+ }
+ }
+ }
+ },
+ "eventOutputParameters": {
+ "aProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "WEBSOCKET",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.websocket.WEBSOCKETCarrierTechnologyParameters",
+ "parameters": {
+ "host": "localhost",
+ "port": 42453
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ },
+ "eventInputParameters": {
+ "aConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "WEBSOCKET",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.websocket.WEBSOCKETCarrierTechnologyParameters",
+ "parameters": {
+ "host": "localhost",
+ "port": 42451
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ }
+}
diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Ws2WsClientXMLEvent.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Ws2WsClientXMLEvent.json
new file mode 100644
index 000000000..fb2426000
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Ws2WsClientXMLEvent.json
@@ -0,0 +1,49 @@
+{
+ "engineServiceParameters": {
+ "name": "MyApexEngine",
+ "version": "0.0.1",
+ "id": 45,
+ "instanceCount": 4,
+ "deploymentPort": 12553,
+ "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml",
+ "engineParameters": {
+ "executorParameters": {
+ "JAVASCRIPT": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
+ }
+ }
+ }
+ },
+ "eventOutputParameters": {
+ "aProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "WEBSOCKET",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.websocket.WEBSOCKETCarrierTechnologyParameters",
+ "parameters": {
+ "host": "localhost",
+ "port": 42453
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "XML",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.protocol.xml.XMLEventProtocolParameters"
+ }
+ }
+ },
+ "eventInputParameters": {
+ "aConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "WEBSOCKET",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.websocket.WEBSOCKETCarrierTechnologyParameters",
+ "parameters": {
+ "host": "localhost",
+ "port": 42451
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "XML",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.protocol.xml.XMLEventProtocolParameters"
+ }
+ }
+ }
+}
diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Ws2WsServerJsonEvent.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Ws2WsServerJsonEvent.json
new file mode 100644
index 000000000..a672a2f1a
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Ws2WsServerJsonEvent.json
@@ -0,0 +1,47 @@
+{
+ "engineServiceParameters": {
+ "name": "MyApexEngine",
+ "version": "0.0.1",
+ "id": 45,
+ "instanceCount": 4,
+ "deploymentPort": 12554,
+ "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml",
+ "engineParameters": {
+ "executorParameters": {
+ "JAVASCRIPT": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
+ }
+ }
+ }
+ },
+ "eventOutputParameters": {
+ "aProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "WEBSOCKET",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.websocket.WEBSOCKETCarrierTechnologyParameters",
+ "parameters": {
+ "wsClient": false,
+ "port": 42452
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ },
+ "eventInputParameters": {
+ "aConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "WEBSOCKET",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.websocket.WEBSOCKETCarrierTechnologyParameters",
+ "parameters": {
+ "wsClient": false,
+ "port": 42450
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "JSON"
+ }
+ }
+ }
+}
diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Ws2WsServerXMLEvent.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Ws2WsServerXMLEvent.json
new file mode 100644
index 000000000..65b2bd461
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Ws2WsServerXMLEvent.json
@@ -0,0 +1,49 @@
+{
+ "engineServiceParameters": {
+ "name": "MyApexEngine",
+ "version": "0.0.1",
+ "id": 45,
+ "instanceCount": 4,
+ "deploymentPort": 12555,
+ "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml",
+ "engineParameters": {
+ "executorParameters": {
+ "JAVASCRIPT": {
+ "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
+ }
+ }
+ }
+ },
+ "eventOutputParameters": {
+ "aProducer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "WEBSOCKET",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.websocket.WEBSOCKETCarrierTechnologyParameters",
+ "parameters": {
+ "wsClient": false,
+ "port": 42452
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "XML",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.protocol.xml.XMLEventProtocolParameters"
+ }
+ }
+ },
+ "eventInputParameters": {
+ "aConsumer": {
+ "carrierTechnologyParameters": {
+ "carrierTechnology": "WEBSOCKET",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.websocket.WEBSOCKETCarrierTechnologyParameters",
+ "parameters": {
+ "wsClient": false,
+ "port": 42450
+ }
+ },
+ "eventProtocolParameters": {
+ "eventProtocol": "XML",
+ "parameterClassName": "org.onap.policy.apex.plugins.event.protocol.xml.XMLEventProtocolParameters"
+ }
+ }
+ }
+}
diff --git a/packages/apex-pdp-package-full/src/main/package/examples/docker/MyFirstPolicy/1/MyFirstPolicyFile2StdoutJsonEvent.Dockerfile b/packages/apex-pdp-package-full/src/main/package/examples/docker/MyFirstPolicy/1/MyFirstPolicyFile2StdoutJsonEvent.Dockerfile
new file mode 100644
index 000000000..8d698c25a
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/examples/docker/MyFirstPolicy/1/MyFirstPolicyFile2StdoutJsonEvent.Dockerfile
@@ -0,0 +1,32 @@
+#-------------------------------------------------------------------------------
+# ============LICENSE_START=======================================================
+# Copyright (C) 2016-2018 Ericsson. All rights reserved.
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+#-------------------------------------------------------------------------------
+
+#
+# Docker file to build an image the MyFirstPolicyFile2StdoutJsonEvent example
+#
+# apex/myfirstpolicyfile2stdoutjsonevent:1
+
+FROM apex/base
+MAINTAINER John Keeney John.Keeney@ericsson.com
+
+EXPOSE 12345
+USER apexuser:apexuser
+ENTRYPOINT ["apexEngine.sh"]
+CMD ["-c", "examples/config/MyFirstPolicy/1/MyFirstPolicyConfigFile2StdoutJsonEvent.json"]
diff --git a/packages/apex-pdp-package-full/src/main/package/examples/docker/MyFirstPolicy/1/MyFirstPolicyStdin2StdoutJsonEvent.Dockerfile b/packages/apex-pdp-package-full/src/main/package/examples/docker/MyFirstPolicy/1/MyFirstPolicyStdin2StdoutJsonEvent.Dockerfile
new file mode 100644
index 000000000..afa2691ae
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/examples/docker/MyFirstPolicy/1/MyFirstPolicyStdin2StdoutJsonEvent.Dockerfile
@@ -0,0 +1,32 @@
+#-------------------------------------------------------------------------------
+# ============LICENSE_START=======================================================
+# Copyright (C) 2016-2018 Ericsson. All rights reserved.
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+#-------------------------------------------------------------------------------
+
+#
+# Docker file to build an image the MyFirstPolicyStdin2StdoutJsonEvent example
+#
+# apex/myfirstpolicystdin2stdoutjsonevent:1
+
+FROM apex/base
+MAINTAINER John Keeney John.Keeney@ericsson.com
+
+EXPOSE 12345
+USER apexuser:apexuser
+ENTRYPOINT ["apexEngine.sh"]
+CMD ["-c", "examples/config/MyFirstPolicy/1/MyFirstPolicyConfigStdin2StdoutJsonEvent.json"]
diff --git a/packages/apex-pdp-package-full/src/main/package/examples/docker/MyFirstPolicy/2/MyFirstPolicyFile2StdoutJsonEvent.Dockerfile b/packages/apex-pdp-package-full/src/main/package/examples/docker/MyFirstPolicy/2/MyFirstPolicyFile2StdoutJsonEvent.Dockerfile
new file mode 100644
index 000000000..88713d998
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/examples/docker/MyFirstPolicy/2/MyFirstPolicyFile2StdoutJsonEvent.Dockerfile
@@ -0,0 +1,32 @@
+#-------------------------------------------------------------------------------
+# ============LICENSE_START=======================================================
+# Copyright (C) 2016-2018 Ericsson. All rights reserved.
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+#-------------------------------------------------------------------------------
+
+#
+# Docker file to build an image the MyFirstPolicyFile2StdoutJsonEvent example
+#
+# apex/myfirstpolicyfile2stdoutjsonevent:2
+
+FROM apex/base
+MAINTAINER John Keeney John.Keeney@ericsson.com
+
+EXPOSE 12345
+USER apexuser:apexuser
+ENTRYPOINT ["apexEngine.sh"]
+CMD ["-c", "examples/config/MyFirstPolicy/2/MyFirstPolicyConfigFile2StdoutJsonEvent.json"]
diff --git a/packages/apex-pdp-package-full/src/main/package/examples/docker/MyFirstPolicy/2/MyFirstPolicyStdin2StdoutJsonEvent.Dockerfile b/packages/apex-pdp-package-full/src/main/package/examples/docker/MyFirstPolicy/2/MyFirstPolicyStdin2StdoutJsonEvent.Dockerfile
new file mode 100644
index 000000000..9a62b0eed
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/examples/docker/MyFirstPolicy/2/MyFirstPolicyStdin2StdoutJsonEvent.Dockerfile
@@ -0,0 +1,32 @@
+#-------------------------------------------------------------------------------
+# ============LICENSE_START=======================================================
+# Copyright (C) 2016-2018 Ericsson. All rights reserved.
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+#-------------------------------------------------------------------------------
+
+#
+# Docker file to build an image the MyFirstPolicyStdin2StdoutJsonEvent example
+#
+# apex/myfirstpolicystdin2stdoutjsonevent:2
+
+FROM apex/base
+MAINTAINER John Keeney John.Keeney@ericsson.com
+
+EXPOSE 12345
+USER apexuser:apexuser
+ENTRYPOINT ["apexEngine.sh"]
+CMD ["-c", "examples/config/MyFirstPolicy/2/MyFirstPolicyConfigStdin2StdoutJsonEvent.json"]
diff --git a/packages/apex-pdp-package-full/src/main/package/examples/docker/SampleDomain/File2StdoutJsonEventJavascript.Dockerfile b/packages/apex-pdp-package-full/src/main/package/examples/docker/SampleDomain/File2StdoutJsonEventJavascript.Dockerfile
new file mode 100644
index 000000000..52c75e471
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/examples/docker/SampleDomain/File2StdoutJsonEventJavascript.Dockerfile
@@ -0,0 +1,31 @@
+#-------------------------------------------------------------------------------
+# ============LICENSE_START=======================================================
+# Copyright (C) 2016-2018 Ericsson. All rights reserved.
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+#-------------------------------------------------------------------------------
+
+#
+# Docker file to build an image the File2StdoutJsonEventJavascript example
+#
+# apex/file2stdoutjsoneventjavascript
+FROM apex/base
+MAINTAINER John Keeney John.Keeney@ericsson.com
+
+EXPOSE 12345
+USER apexuser:apexuser
+ENTRYPOINT ["apexEngine.sh"]
+CMD ["-c", "examples/config/SampleDomain/File2StdoutJsonEventJavascript.json"]
diff --git a/packages/apex-pdp-package-full/src/main/package/examples/docker/SampleDomain/File2StdoutJsonEventMvel.Dockerfile b/packages/apex-pdp-package-full/src/main/package/examples/docker/SampleDomain/File2StdoutJsonEventMvel.Dockerfile
new file mode 100644
index 000000000..8d7b0af53
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/examples/docker/SampleDomain/File2StdoutJsonEventMvel.Dockerfile
@@ -0,0 +1,31 @@
+#-------------------------------------------------------------------------------
+# ============LICENSE_START=======================================================
+# Copyright (C) 2016-2018 Ericsson. All rights reserved.
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+#-------------------------------------------------------------------------------
+
+#
+# Docker file to build an image the File2StdoutJsonEventMVEL example
+#
+# apex/file2stdoutjsoneventmvel
+FROM apex/base
+MAINTAINER John Keeney John.Keeney@ericsson.com
+
+EXPOSE 12345
+USER apexuser:apexuser
+ENTRYPOINT ["apexEngine.sh"]
+CMD ["-c", "examples/config/SampleDomain/File2StdoutJsonEventMVEL.json"]
diff --git a/packages/apex-pdp-package-full/src/main/package/examples/docker/SampleDomain/Stdin2StdoutJsonEventJavascript.Dockerfile b/packages/apex-pdp-package-full/src/main/package/examples/docker/SampleDomain/Stdin2StdoutJsonEventJavascript.Dockerfile
new file mode 100644
index 000000000..385092398
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/examples/docker/SampleDomain/Stdin2StdoutJsonEventJavascript.Dockerfile
@@ -0,0 +1,31 @@
+#-------------------------------------------------------------------------------
+# ============LICENSE_START=======================================================
+# Copyright (C) 2016-2018 Ericsson. All rights reserved.
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+#-------------------------------------------------------------------------------
+
+#
+# Docker file to build an image the Stdin2StdoutJsonEventJavascript example
+#
+# apex/stdin2stdoutjsoneventjavascript
+FROM apex/base
+MAINTAINER John Keeney John.Keeney@ericsson.com
+
+EXPOSE 12345
+USER apexuser:apexuser
+ENTRYPOINT ["apexEngine.sh"]
+CMD ["-c", "examples/config/SampleDomain/Stdin2StdoutJsonEventJavascript.json"]
diff --git a/packages/apex-pdp-package-full/src/main/package/examples/docker/SampleDomain/Stdin2StdoutJsonEventMvel.Dockerfile b/packages/apex-pdp-package-full/src/main/package/examples/docker/SampleDomain/Stdin2StdoutJsonEventMvel.Dockerfile
new file mode 100644
index 000000000..d727a2dc4
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/examples/docker/SampleDomain/Stdin2StdoutJsonEventMvel.Dockerfile
@@ -0,0 +1,31 @@
+#-------------------------------------------------------------------------------
+# ============LICENSE_START=======================================================
+# Copyright (C) 2016-2018 Ericsson. All rights reserved.
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+#-------------------------------------------------------------------------------
+
+#
+# Docker file to build an image the Stdin2StdoutJsonEventMVEL example
+#
+# apex/stdin2stdoutjsoneventmvel
+FROM apex/base
+MAINTAINER John Keeney John.Keeney@ericsson.com
+
+EXPOSE 12345
+USER apexuser:apexuser
+ENTRYPOINT ["apexEngine.sh"]
+CMD ["-c", "examples/config/SampleDomain/Stdin2StdoutJsonEventMVEL.json"]
diff --git a/packages/apex-pdp-package-full/src/main/package/examples/docker/base/base.Dockerfile b/packages/apex-pdp-package-full/src/main/package/examples/docker/base/base.Dockerfile
new file mode 100644
index 000000000..4872f5546
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/examples/docker/base/base.Dockerfile
@@ -0,0 +1,48 @@
+#-------------------------------------------------------------------------------
+# ============LICENSE_START=======================================================
+# Copyright (C) 2016-2018 Ericsson. All rights reserved.
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+#-------------------------------------------------------------------------------
+
+#
+# Docker file to build an image that runs APEX on Java 8 in Ubuntu
+#
+# apex/base:0.6.0
+FROM ubuntu:16.04
+MAINTAINER John Keeney John.Keeney@ericsson.com
+
+RUN apt-get update && \
+ apt-get upgrade -y && \
+ apt-get install -y software-properties-common && \
+ add-apt-repository ppa:webupd8team/java -y && \
+ apt-get update && \
+ echo oracle-javax8-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections && \
+ apt-get install -y oracle-java8-installer && \
+ rm -rf /var/cache/oracle-jdk8-installer && \
+ apt-get clean
+
+RUN mkdir /packages
+COPY apex-pdp-package-full-2.0.0-SNAPSHOT.deb /packages
+RUN dpkg -i packages/apex-pdp-package-full-2.0.0-SNAPSHOT.deb && \
+ rm /packages/apex-pdp-package-full-2.0.0-SNAPSHOT.deb
+
+ENV PATH /opt/ericsson/apex/apex/bin:$PATH
+
+RUN apt-get clean
+
+RUN chown -R apexuser:apexuser /home/apexuser/*
+WORKDIR /home/apexuser
diff --git a/packages/apex-pdp-package-full/src/main/package/examples/models/JMS/JMSSamplePolicyModel.json b/packages/apex-pdp-package-full/src/main/package/examples/models/JMS/JMSSamplePolicyModel.json
new file mode 100644
index 000000000..d85630456
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/examples/models/JMS/JMSSamplePolicyModel.json
@@ -0,0 +1,456 @@
+{
+ "apexPolicyModel": {
+ "key": {
+ "name": "JMSTestModel",
+ "version": "0.0.1"
+ },
+ "keyInformation": {
+ "key": {
+ "name": "JMSTestModel_KeyInfo",
+ "version": "0.0.1"
+ },
+ "keyInfoMap": {
+ "entry": [
+ {
+ "key": {
+ "name": "JMSCopyInOutTask",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "JMSCopyInOutTask",
+ "version": "0.0.1"
+ },
+ "UUID": "b59815ef-fc5b-4e44-9f6e-2f6212bb7296",
+ "description": "Generated description for a concept called \"JMSCopyInOutTask\" with version \"null\" and UUID \"b59815ef-fc5b-4e44-9f6e-2f6212bb7296\""
+ }
+ },
+ {
+ "key": {
+ "name": "JMSTestModel",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "JMSTestModel",
+ "version": "0.0.1"
+ },
+ "UUID": "a731a845-f984-46a9-adf4-c6c7ca0baa0d",
+ "description": "Generated description for a concept called \"JMSTestModel\" with version \"null\" and UUID \"a731a845-f984-46a9-adf4-c6c7ca0baa0d\""
+ }
+ },
+ {
+ "key": {
+ "name": "JMSTestModel_Albums",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "JMSTestModel_Albums",
+ "version": "0.0.1"
+ },
+ "UUID": "b580c2e2-067e-452c-8410-d69344fa718c",
+ "description": "Generated description for concept referred to by key \"JMSTestModel_Albums:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "JMSTestModel_Events",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "JMSTestModel_Events",
+ "version": "0.0.1"
+ },
+ "UUID": "463f3fa6-2be3-4ded-a015-1f045ee8991e",
+ "description": "Generated description for concept referred to by key \"JMSTestModel_Events:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "JMSTestModel_KeyInfo",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "JMSTestModel_KeyInfo",
+ "version": "0.0.1"
+ },
+ "UUID": "b14d97fb-f215-4b70-9cd6-cbfb3ed085ee",
+ "description": "Generated description for concept referred to by key \"JMSTestModel_KeyInfo:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "JMSTestModel_Policies",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "JMSTestModel_Policies",
+ "version": "0.0.1"
+ },
+ "UUID": "9ae9047f-e0d8-42c4-b3a6-e32954ace3b6",
+ "description": "Generated description for concept referred to by key \"JMSTestModel_Policies:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "JMSTestModel_Schemas",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "JMSTestModel_Schemas",
+ "version": "0.0.1"
+ },
+ "UUID": "adc30c29-d4b9-4408-9213-6d86b051d59c",
+ "description": "Generated description for concept referred to by key \"JMSTestModel_Schemas:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "JMSTestModel_Tasks",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "JMSTestModel_Tasks",
+ "version": "0.0.1"
+ },
+ "UUID": "c3545f15-710c-4339-9a4e-e0eacffac52e",
+ "description": "Generated description for concept referred to by key \"JMSTestModel_Tasks:0.0.1\""
+ }
+ },
+ {
+ "key": {
+ "name": "JMSTestPolicy",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "JMSTestPolicy",
+ "version": "0.0.1"
+ },
+ "UUID": "fdda6a40-6767-45b0-8703-3b5b3bafaf19",
+ "description": "Generated description for a concept called \"JMSTestPolicy\" with version \"null\" and UUID \"fdda6a40-6767-45b0-8703-3b5b3bafaf19\""
+ }
+ },
+ {
+ "key": {
+ "name": "TestPingIncomingEvent",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "TestPingIncomingEvent",
+ "version": "0.0.1"
+ },
+ "UUID": "6cdd11f3-5fe8-4510-81b9-af3be303ebae",
+ "description": "Generated description for a concept called \"TestPingIncomingEvent\" with version \"null\" and UUID \"6cdd11f3-5fe8-4510-81b9-af3be303ebae\""
+ }
+ },
+ {
+ "key": {
+ "name": "TestPingOutgoingEvent",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "TestPingOutgoingEvent",
+ "version": "0.0.1"
+ },
+ "UUID": "dc04de01-2284-4461-9fe2-da58a2122a73",
+ "description": "Generated description for a concept called \"TestPingOutgoingEvent\" with version \"0.0.1\" and UUID \"dc04de01-2284-4461-9fe2-da58a2122a73\""
+ }
+ },
+ {
+ "key": {
+ "name": "TestPingType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "TestPingType",
+ "version": "0.0.1"
+ },
+ "UUID": "bdc2f70a-de52-4127-8012-b9593657da3c",
+ "description": "Generated description for a concept called \"TestPingType\" with version \"null\" and UUID \"bdc2f70a-de52-4127-8012-b9593657da3c\""
+ }
+ }
+ ]
+ }
+ },
+ "policies": {
+ "key": {
+ "name": "JMSTestModel_Policies",
+ "version": "0.0.1"
+ },
+ "policyMap": {
+ "entry": [
+ {
+ "key": {
+ "name": "JMSTestPolicy",
+ "version": "0.0.1"
+ },
+ "value": {
+ "policyKey": {
+ "name": "JMSTestPolicy",
+ "version": "0.0.1"
+ },
+ "template": "FREEFORM",
+ "state": {
+ "entry": [
+ {
+ "key": "TestJMSState",
+ "value": {
+ "stateKey": {
+ "parentKeyName": "JMSTestPolicy",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "NULL",
+ "localName": "TestJMSState"
+ },
+ "trigger": {
+ "name": "TestPingIncomingEvent",
+ "version": "0.0.1"
+ },
+ "stateOutputs": {
+ "entry": [
+ {
+ "key": "InOutOutputMapping",
+ "value": {
+ "key": {
+ "parentKeyName": "JMSTestPolicy",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "TestJMSState",
+ "localName": "InOutOutputMapping"
+ },
+ "outgoingEvent": {
+ "name": "TestPingOutgoingEvent",
+ "version": "0.0.1"
+ },
+ "nextState": {
+ "parentKeyName": "NULL",
+ "parentKeyVersion": "0.0.0",
+ "parentLocalName": "NULL",
+ "localName": "NULL"
+ }
+ }
+ }
+ ]
+ },
+ "contextAlbumReference": [],
+ "taskSelectionLogic": {
+ "key": "NULL",
+ "logicFlavour": "UNDEFINED",
+ "logic": ""
+ },
+ "stateFinalizerLogicMap": {
+ "entry": []
+ },
+ "defaultTask": {
+ "name": "JMSCopyInOutTask",
+ "version": "0.0.1"
+ },
+ "taskReferences": {
+ "entry": [
+ {
+ "key": {
+ "name": "JMSCopyInOutTask",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "parentKeyName": "JMSTestPolicy",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "TestJMSState",
+ "localName": "InOutTask"
+ },
+ "outputType": "DIRECT",
+ "output": {
+ "parentKeyName": "JMSTestPolicy",
+ "parentKeyVersion": "0.0.1",
+ "parentLocalName": "TestJMSState",
+ "localName": "InOutOutputMapping"
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+ },
+ "firstState": "TestJMSState"
+ }
+ }
+ ]
+ }
+ },
+ "tasks": {
+ "key": {
+ "name": "JMSTestModel_Tasks",
+ "version": "0.0.1"
+ },
+ "taskMap": {
+ "entry": [
+ {
+ "key": {
+ "name": "JMSCopyInOutTask",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "JMSCopyInOutTask",
+ "version": "0.0.1"
+ },
+ "inputFields": {
+ "entry": [
+ {
+ "key": "TestPing",
+ "value": {
+ "key": "TestPing",
+ "fieldSchemaKey": {
+ "name": "TestPingType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "outputFields": {
+ "entry": [
+ {
+ "key": "TestPing",
+ "value": {
+ "key": "TestPing",
+ "fieldSchemaKey": {
+ "name": "TestPingType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ },
+ "taskParameters": {
+ "entry": []
+ },
+ "contextAlbumReference": [],
+ "taskLogic": {
+ "key": "TaskLogic",
+ "logicFlavour": "JAVASCRIPT",
+ "logic": "var outFieldType = Java.type(\"org.onap.policy.apex.apps.uservice.test.adapt.jms.TestPing\");\nvar outValue = new outFieldType();\n\nvar inValue = executor.inFields.get(\"TestPing\");\n\nexecutor.logger.info(inValue);\n\noutValue.setPingTime(inValue.getPingTime());\noutValue.setPongTime(new Date().getTime());\noutValue.setName(inValue.getName() + \"_out\");\n\noutValue.setDescription(\ninValue.getDescription() +\n\". So Romeo would, were he not Romeo call'd,\" +\n\" retain that dear perfection which he owes, without that title.\");\n\nexecutor.logger.info(outValue);\nexecutor.outFields.put(\"TestPing\", outValue)\n\nvar returnValueType = Java.type(\"java.lang.Boolean\");\nvar returnValue = new returnValueType(true);"
+ }
+ }
+ }
+ ]
+ }
+ },
+ "events": {
+ "key": {
+ "name": "JMSTestModel_Events",
+ "version": "0.0.1"
+ },
+ "eventMap": {
+ "entry": [
+ {
+ "key": {
+ "name": "TestPingIncomingEvent",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "TestPingIncomingEvent",
+ "version": "0.0.1"
+ },
+ "nameSpace": "org.onap.policy.apex.apps.uservice.test.adapt.jms",
+ "source": "JMS",
+ "target": "Apex",
+ "parameter": {
+ "entry": [
+ {
+ "key": "TestPing",
+ "value": {
+ "key": "TestPing",
+ "fieldSchemaKey": {
+ "name": "TestPingType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ }
+ }
+ },
+ {
+ "key": {
+ "name": "TestPingOutgoingEvent",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "TestPingOutgoingEvent",
+ "version": "0.0.1"
+ },
+ "nameSpace": "org.onap.policy.apex.apps.uservice.test.adapt.jms",
+ "source": "Apex",
+ "target": "JMS",
+ "parameter": {
+ "entry": [
+ {
+ "key": "TestPing",
+ "value": {
+ "key": "TestPing",
+ "fieldSchemaKey": {
+ "name": "TestPingType",
+ "version": "0.0.1"
+ },
+ "optional": false
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+ }
+ },
+ "albums": {
+ "key": {
+ "name": "JMSTestModel_Albums",
+ "version": "0.0.1"
+ },
+ "albums": {
+ "entry": []
+ }
+ },
+ "schemas": {
+ "key": {
+ "name": "JMSTestModel_Schemas",
+ "version": "0.0.1"
+ },
+ "schemas": {
+ "entry": [
+ {
+ "key": {
+ "name": "TestPingType",
+ "version": "0.0.1"
+ },
+ "value": {
+ "key": {
+ "name": "TestPingType",
+ "version": "0.0.1"
+ },
+ "schemaFlavour": "Java",
+ "schemaDefinition": "org.onap.policy.apex.apps.uservice.test.adapt.jms.TestPing"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/packages/apex-pdp-package-full/src/main/package/tarball/assembly.xml b/packages/apex-pdp-package-full/src/main/package/tarball/assembly.xml
new file mode 100644
index 000000000..79ad9e11c
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/package/tarball/assembly.xml
@@ -0,0 +1,114 @@
+<!--
+ ============LICENSE_START=======================================================
+ Copyright (C) 2016-2018 Ericsson. All rights reserved.
+ ================================================================================
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+ SPDX-License-Identifier: Apache-2.0
+ ============LICENSE_END=========================================================
+-->
+<assembly>
+ <id>tarball</id>
+ <formats>
+ <format>tar.gz</format>
+ </formats>
+ <includeBaseDirectory>false</includeBaseDirectory>
+ <dependencySets>
+ <dependencySet>
+ <useProjectArtifact>true</useProjectArtifact>
+ <outputDirectory>/lib</outputDirectory>
+ <unpack>false</unpack>
+ <scope>runtime</scope>
+ <includes>
+ <include>*:jar</include>
+ </includes>
+ </dependencySet>
+ <dependencySet>
+ <useProjectArtifact>true</useProjectArtifact>
+ <outputDirectory>/war</outputDirectory>
+ <unpack>false</unpack>
+ <scope>runtime</scope>
+ <includes>
+ <include>*:war</include>
+ </includes>
+ </dependencySet>
+ </dependencySets>
+ <fileSets>
+ <fileSet>
+ <directory>${project.basedir}/src/main/package/bin</directory>
+ <includes>
+ <include>*</include>
+ </includes>
+ <outputDirectory>/bin</outputDirectory>
+ <fileMode>0755</fileMode>
+ <lineEnding>unix</lineEnding>
+ <excludes>
+ <exclude>*.formatted</exclude>
+ </excludes>
+ </fileSet>
+ <fileSet>
+ <directory>${project.basedir}/src/main/resources</directory>
+ <includes>
+ <include>**/*</include>
+ </includes>
+ <outputDirectory>/etc</outputDirectory>
+ <lineEnding>unix</lineEnding>
+ <excludes>
+ <exclude>*.formatted</exclude>
+ </excludes>
+ </fileSet>
+ <fileSet>
+ <directory>${project.basedir}/src/main/package/examples</directory>
+ <includes>
+ <include>**/*</include>
+ </includes>
+ <outputDirectory>/examples</outputDirectory>
+ <lineEnding>unix</lineEnding>
+ <excludes>
+ <exclude>*.formatted</exclude>
+ </excludes>
+ </fileSet>
+ <fileSet>
+ <directory>${project.build.directory}/etc</directory>
+ <includes>
+ <include>**/*</include>
+ </includes>
+ <outputDirectory>/etc</outputDirectory>
+ <lineEnding>unix</lineEnding>
+ <excludes>
+ <exclude>*.formatted</exclude>
+ </excludes>
+ </fileSet>
+ <fileSet>
+ <directory>${project.build.directory}/examples</directory>
+ <includes>
+ <include>**/*</include>
+ </includes>
+ <outputDirectory>/examples</outputDirectory>
+ <lineEnding>unix</lineEnding>
+ <excludes>
+ <exclude>*.formatted</exclude>
+ </excludes>
+ </fileSet>
+ <fileSet>
+ <directory>${project.build.directory}/lib</directory>
+ <includes>
+ <include>**/*</include>
+ </includes>
+ <outputDirectory>/lib</outputDirectory>
+ <excludes>
+ <exclude>*.formatted</exclude>
+ </excludes>
+ </fileSet>
+ </fileSets>
+</assembly>
diff --git a/packages/apex-pdp-package-full/src/main/resources/META-INF/persistence.xml b/packages/apex-pdp-package-full/src/main/resources/META-INF/persistence.xml
new file mode 100644
index 000000000..692a925e7
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/resources/META-INF/persistence.xml
@@ -0,0 +1,258 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ============LICENSE_START=======================================================
+ Copyright (C) 2016-2018 Ericsson. All rights reserved.
+ ================================================================================
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+ SPDX-License-Identifier: Apache-2.0
+ ============LICENSE_END=========================================================
+-->
+
+<persistence xmlns="http://java.sun.com/xml/ns/persistence" version="2.0">
+ <persistence-unit name="org.onap.policy.apex.core.model.eclipselink.runtime" transaction-type="RESOURCE_LOCAL">
+ <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
+
+ <class>org.onap.policy.apex.core.basicmodel.dao.converters.UUID2String</class>
+ <class>org.onap.policy.apex.core.basicmodel.concepts.AxArtifactKey</class>
+ <class>org.onap.policy.apex.core.basicmodel.concepts.AxConcept</class>
+ <class>org.onap.policy.apex.core.basicmodel.concepts.AxDataType</class>
+ <class>org.onap.policy.apex.core.basicmodel.concepts.AxKeyInfo</class>
+ <class>org.onap.policy.apex.core.basicmodel.concepts.AxKeyInformation</class>
+ <class>org.onap.policy.apex.core.basicmodel.concepts.AxModel</class>
+ <class>org.onap.policy.apex.core.basicmodel.concepts.TestEntity</class>
+ <class>org.onap.policy.apex.core.contextmodel.concepts.AxContextType</class>
+ <class>org.onap.policy.apex.core.contextmodel.concepts.AxContextItem</class>
+ <class>org.onap.policy.apex.core.contextmodel.concepts.AxContextItemTemplate</class>
+ <class>org.onap.policy.apex.core.contextmodel.concepts.AxContextScope</class>
+ <class>org.onap.policy.apex.core.contextmodel.concepts.AxContextType</class>
+ <class>org.onap.policy.apex.core.contextmodel.concepts.AxContextMap</class>
+ <class>org.onap.policy.apex.core.contextmodel.concepts.AxContext</class>
+ <class>org.onap.policy.apex.core.contextmodel.concepts.AxContextModel</class>
+ <class>org.onap.policy.apex.core.eventmodel.concepts.AxEventParameter</class>
+ <class>org.onap.policy.apex.core.eventmodel.concepts.AxEvent</class>
+ <class>org.onap.policy.apex.core.eventmodel.concepts.AxEvents</class>
+ <class>org.onap.policy.apex.core.eventmodel.concepts.AxEventModel</class>
+ <class>org.onap.policy.apex.core.policymodel.concepts.AxLogic</class>
+ <class>org.onap.policy.apex.core.policymodel.concepts.AxTaskParameter</class>
+ <class>org.onap.policy.apex.core.policymodel.concepts.AxTask</class>
+ <class>org.onap.policy.apex.core.policymodel.concepts.AxTasks</class>
+ <class>org.onap.policy.apex.core.policymodel.concepts.AxState</class>
+ <class>org.onap.policy.apex.core.policymodel.concepts.AxPolicy</class>
+ <class>org.onap.policy.apex.core.policymodel.concepts.AxPolicies</class>
+ <class>org.onap.policy.apex.core.policymodel.concepts.AxPolicyModel</class>
+ <class>org.onap.policy.apex.core.enginemodel.concepts.AxEngineStats</class>
+ <class>org.onap.policy.apex.core.enginemodel.concepts.AxEngineModel</class>
+ <class>org.onap.policy.apex.domains.aadm.concepts.ENodeBStatus</class>
+ <class>org.onap.policy.apex.domains.aadm.concepts.IMSIStatus</class>
+ <class>org.onap.policy.apex.domains.aadm.concepts.IPAddressStatus</class>
+ <class>org.onap.policy.apex.domains.adaptive.concepts.AnomalyDetection</class>
+ <class>org.onap.policy.apex.domains.adaptive.concepts.AutoLearn</class>
+ <class>org.onap.policy.apex.domains.vpn.concepts.VPNCustomer</class>
+ <class>org.onap.policy.apex.domains.vpn.concepts.VPNLink</class>
+ <class>org.onap.policy.apex.domains.vpn.concepts.VPNProblem</class>
+
+ <exclude-unlisted-classes>false</exclude-unlisted-classes>
+ <properties>
+ <property name="javax.persistence.target-database" value="PostgreSQL" />
+ <property name="javax.persistence.jdbc.driver" value="org.postgresql.Driver" />
+ <property name="javax.persistence.jdbc.url" value="jdbc:postgresql://localhost:5432/apex" />
+ <property name="javax.persistence.jdbc.user" value="postgres" />
+ <property name="javax.persistence.jdbc.password" value="postgres" />
+
+ <property name="eclipselink.ddl-generation" value="create-or-extend-tables" />
+ <property name="eclipselink.logging.level" value="INFO" />
+
+ </properties>
+ </persistence-unit>
+
+ <persistence-unit name="org.onap.policy.apex.core.model.eclipselink.test" transaction-type="RESOURCE_LOCAL">
+ <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
+
+ <class>org.onap.policy.apex.core.basicmodel.dao.converters.UUID2String</class>
+ <class>org.onap.policy.apex.core.basicmodel.concepts.AxArtifactKey</class>
+ <class>org.onap.policy.apex.core.basicmodel.concepts.AxConcept</class>
+ <class>org.onap.policy.apex.core.basicmodel.concepts.AxDataType</class>
+ <class>org.onap.policy.apex.core.basicmodel.concepts.AxKeyInfo</class>
+ <class>org.onap.policy.apex.core.basicmodel.concepts.AxKeyInformation</class>
+ <class>org.onap.policy.apex.core.basicmodel.concepts.AxModel</class>
+ <class>org.onap.policy.apex.core.basicmodel.concepts.TestEntity</class>
+ <class>org.onap.policy.apex.core.contextmodel.concepts.AxContextType</class>
+ <class>org.onap.policy.apex.core.contextmodel.concepts.AxContextItem</class>
+ <class>org.onap.policy.apex.core.contextmodel.concepts.AxContextItemTemplate</class>
+ <class>org.onap.policy.apex.core.contextmodel.concepts.AxContextScope</class>
+ <class>org.onap.policy.apex.core.contextmodel.concepts.AxContextType</class>
+ <class>org.onap.policy.apex.core.contextmodel.concepts.AxContextMap</class>
+ <class>org.onap.policy.apex.core.contextmodel.concepts.AxContext</class>
+ <class>org.onap.policy.apex.core.contextmodel.concepts.AxContextModel</class>
+ <class>org.onap.policy.apex.core.eventmodel.concepts.AxEventParameter</class>
+ <class>org.onap.policy.apex.core.eventmodel.concepts.AxEvent</class>
+ <class>org.onap.policy.apex.core.eventmodel.concepts.AxEvents</class>
+ <class>org.onap.policy.apex.core.eventmodel.concepts.AxEventModel</class>
+ <class>org.onap.policy.apex.core.policymodel.concepts.AxLogic</class>
+ <class>org.onap.policy.apex.core.policymodel.concepts.AxTaskParameter</class>
+ <class>org.onap.policy.apex.core.policymodel.concepts.AxTask</class>
+ <class>org.onap.policy.apex.core.policymodel.concepts.AxTasks</class>
+ <class>org.onap.policy.apex.core.policymodel.concepts.AxState</class>
+ <class>org.onap.policy.apex.core.policymodel.concepts.AxPolicy</class>
+ <class>org.onap.policy.apex.core.policymodel.concepts.AxPolicies</class>
+ <class>org.onap.policy.apex.core.policymodel.concepts.AxPolicyModel</class>
+ <class>org.onap.policy.apex.core.enginemodel.concepts.AxEngineStats</class>
+ <class>org.onap.policy.apex.core.enginemodel.concepts.AxEngineModel</class>
+ <class>org.onap.policy.apex.domains.aadm.concepts.ENodeBStatus</class>
+ <class>org.onap.policy.apex.domains.aadm.concepts.IMSIStatus</class>
+ <class>org.onap.policy.apex.domains.aadm.concepts.IPAddressStatus</class>
+ <class>org.onap.policy.apex.domains.adaptive.concepts.AnomalyDetection</class>
+ <class>org.onap.policy.apex.domains.adaptive.concepts.AutoLearn</class>
+ <class>org.onap.policy.apex.domains.vpn.concepts.VPNCustomer</class>
+ <class>org.onap.policy.apex.domains.vpn.concepts.VPNLink</class>
+ <class>org.onap.policy.apex.domains.vpn.concepts.VPNProblem</class>
+
+ <exclude-unlisted-classes>false</exclude-unlisted-classes>
+ <properties>
+ <property name="javax.persistence.target-database" value="PostgreSQL" />
+ <property name="javax.persistence.jdbc.driver" value="org.postgresql.Driver" />
+ <property name="javax.persistence.jdbc.url" value="jdbc:postgresql://localhost:5432/apex_test" />
+ <property name="javax.persistence.jdbc.user" value="postgres" />
+ <property name="javax.persistence.jdbc.password" value="postgres" />
+
+ <property name="eclipselink.ddl-generation" value="drop-and-create-tables" />
+ <property name="eclipselink.logging.level" value="INFO" />
+
+ </properties>
+ </persistence-unit>
+
+ <persistence-unit name="org.onap.policy.apex.core.model.hibernate.runtime">
+ <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
+
+ <class>org.onap.policy.apex.core.basicmodel.dao.converters.UUID2String</class>
+ <class>org.onap.policy.apex.core.basicmodel.concepts.AxArtifactKey</class>
+ <class>org.onap.policy.apex.core.basicmodel.concepts.AxConcept</class>
+ <class>org.onap.policy.apex.core.basicmodel.concepts.AxDataType</class>
+ <class>org.onap.policy.apex.core.basicmodel.concepts.AxKeyInfo</class>
+ <class>org.onap.policy.apex.core.basicmodel.concepts.AxKeyInformation</class>
+ <class>org.onap.policy.apex.core.basicmodel.concepts.AxModel</class>
+ <class>org.onap.policy.apex.core.basicmodel.concepts.TestEntity</class>
+ <class>org.onap.policy.apex.core.contextmodel.concepts.AxContextType</class>
+ <class>org.onap.policy.apex.core.contextmodel.concepts.AxContextItem</class>
+ <class>org.onap.policy.apex.core.contextmodel.concepts.AxContextItemTemplate</class>
+ <class>org.onap.policy.apex.core.contextmodel.concepts.AxContextScope</class>
+ <class>org.onap.policy.apex.core.contextmodel.concepts.AxContextType</class>
+ <class>org.onap.policy.apex.core.contextmodel.concepts.AxContextMap</class>
+ <class>org.onap.policy.apex.core.contextmodel.concepts.AxContext</class>
+ <class>org.onap.policy.apex.core.contextmodel.concepts.AxContextModel</class>
+ <class>org.onap.policy.apex.core.eventmodel.concepts.AxEventParameter</class>
+ <class>org.onap.policy.apex.core.eventmodel.concepts.AxEvent</class>
+ <class>org.onap.policy.apex.core.eventmodel.concepts.AxEvents</class>
+ <class>org.onap.policy.apex.core.eventmodel.concepts.AxEventModel</class>
+ <class>org.onap.policy.apex.core.policymodel.concepts.AxLogic</class>
+ <class>org.onap.policy.apex.core.policymodel.concepts.AxTaskParameter</class>
+ <class>org.onap.policy.apex.core.policymodel.concepts.AxTask</class>
+ <class>org.onap.policy.apex.core.policymodel.concepts.AxTasks</class>
+ <class>org.onap.policy.apex.core.policymodel.concepts.AxState</class>
+ <class>org.onap.policy.apex.core.policymodel.concepts.AxPolicy</class>
+ <class>org.onap.policy.apex.core.policymodel.concepts.AxPolicies</class>
+ <class>org.onap.policy.apex.core.policymodel.concepts.AxPolicyModel</class>
+ <class>org.onap.policy.apex.core.enginemodel.concepts.AxEngineStats</class>
+ <class>org.onap.policy.apex.core.enginemodel.concepts.AxEngineModel</class>
+ <class>org.onap.policy.apex.domains.aadm.concepts.ENodeBStatus</class>
+ <class>org.onap.policy.apex.domains.aadm.concepts.IMSIStatus</class>
+ <class>org.onap.policy.apex.domains.aadm.concepts.IPAddressStatus</class>
+ <class>org.onap.policy.apex.domains.adaptive.concepts.AnomalyDetection</class>
+ <class>org.onap.policy.apex.domains.adaptive.concepts.AutoLearn</class>
+ <class>org.onap.policy.apex.domains.vpn.concepts.VPNCustomer</class>
+ <class>org.onap.policy.apex.domains.vpn.concepts.VPNLink</class>
+ <class>org.onap.policy.apex.domains.vpn.concepts.VPNProblem</class>
+
+ <properties>
+ <property name="javax.persistence.target-database" value="PostgreSQL" />
+ <property name="javax.persistence.jdbc.driver" value="org.postgresql.Driver" />
+ <property name="javax.persistence.jdbc.url" value="jdbc:postgresql://localhost:5432/apex" />
+ <property name="javax.persistence.jdbc.user" value="postgres" />
+ <property name="javax.persistence.jdbc.password" value="postgres" />
+
+ <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQL94Dialect" />
+ <property name="hibernate.hbm2ddl.auto" value="update" />
+ <property name="hibernate.connection.provider_class" value="org.hibernate.connection.C3P0ConnectionProvider" />
+ <property name="hibernate.temp.use_jdbc_metadata_defaults" value="false" />
+ <property name="hibernate.c3p0.max_size" value="100" />
+ <property name="hibernate.c3p0.min_size" value="0" />
+ <property name="hibernate.c3p0.acquire_increment" value="1" />
+ <property name="hibernate.c3p0.idle_test_period" value="300" />
+ <property name="hibernate.c3p0.max_statements" value="0" />
+ <property name="hibernate.c3p0.timeout" value="100" />
+ </properties>
+ </persistence-unit>
+
+ <persistence-unit name="org.onap.policy.apex.core.model.hibernate.test">
+ <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
+
+ <class>org.onap.policy.apex.core.basicmodel.dao.converters.UUID2String</class>
+ <class>org.onap.policy.apex.core.basicmodel.concepts.AxArtifactKey</class>
+ <class>org.onap.policy.apex.core.basicmodel.concepts.AxConcept</class>
+ <class>org.onap.policy.apex.core.basicmodel.concepts.AxDataType</class>
+ <class>org.onap.policy.apex.core.basicmodel.concepts.AxKeyInfo</class>
+ <class>org.onap.policy.apex.core.basicmodel.concepts.AxKeyInformation</class>
+ <class>org.onap.policy.apex.core.basicmodel.concepts.AxModel</class>
+ <class>org.onap.policy.apex.core.basicmodel.concepts.TestEntity</class>
+ <class>org.onap.policy.apex.core.contextmodel.concepts.AxContextType</class>
+ <class>org.onap.policy.apex.core.contextmodel.concepts.AxContextItem</class>
+ <class>org.onap.policy.apex.core.contextmodel.concepts.AxContextItemTemplate</class>
+ <class>org.onap.policy.apex.core.contextmodel.concepts.AxContextScope</class>
+ <class>org.onap.policy.apex.core.contextmodel.concepts.AxContextType</class>
+ <class>org.onap.policy.apex.core.contextmodel.concepts.AxContextMap</class>
+ <class>org.onap.policy.apex.core.contextmodel.concepts.AxContext</class>
+ <class>org.onap.policy.apex.core.contextmodel.concepts.AxContextModel</class>
+ <class>org.onap.policy.apex.core.eventmodel.concepts.AxEventParameter</class>
+ <class>org.onap.policy.apex.core.eventmodel.concepts.AxEvent</class>
+ <class>org.onap.policy.apex.core.eventmodel.concepts.AxEvents</class>
+ <class>org.onap.policy.apex.core.eventmodel.concepts.AxEventModel</class>
+ <class>org.onap.policy.apex.core.policymodel.concepts.AxLogic</class>
+ <class>org.onap.policy.apex.core.policymodel.concepts.AxTaskParameter</class>
+ <class>org.onap.policy.apex.core.policymodel.concepts.AxTask</class>
+ <class>org.onap.policy.apex.core.policymodel.concepts.AxTasks</class>
+ <class>org.onap.policy.apex.core.policymodel.concepts.AxState</class>
+ <class>org.onap.policy.apex.core.policymodel.concepts.AxPolicy</class>
+ <class>org.onap.policy.apex.core.policymodel.concepts.AxPolicies</class>
+ <class>org.onap.policy.apex.core.policymodel.concepts.AxPolicyModel</class>
+ <class>org.onap.policy.apex.core.enginemodel.concepts.AxEngineStats</class>
+ <class>org.onap.policy.apex.core.enginemodel.concepts.AxEngineModel</class>
+ <class>org.onap.policy.apex.domains.aadm.concepts.ENodeBStatus</class>
+ <class>org.onap.policy.apex.domains.aadm.concepts.IMSIStatus</class>
+ <class>org.onap.policy.apex.domains.aadm.concepts.IPAddressStatus</class>
+ <class>org.onap.policy.apex.domains.adaptive.concepts.AnomalyDetection</class>
+ <class>org.onap.policy.apex.domains.adaptive.concepts.AutoLearn</class>
+ <class>org.onap.policy.apex.domains.vpn.concepts.VPNCustomer</class>
+ <class>org.onap.policy.apex.domains.vpn.concepts.VPNLink</class>
+ <class>org.onap.policy.apex.domains.vpn.concepts.VPNProblem</class>
+
+ <properties>
+ <property name="javax.persistence.target-database" value="PostgreSQL" />
+ <property name="javax.persistence.jdbc.driver" value="org.postgresql.Driver" />
+ <property name="javax.persistence.jdbc.url" value="jdbc:postgresql://localhost:5432/apex_test" />
+ <property name="javax.persistence.jdbc.user" value="postgres" />
+ <property name="javax.persistence.jdbc.password" value="postgres" />
+ <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQL94Dialect" />
+ <property name="hibernate.hbm2ddl.auto" value="create" />
+ <property name="hibernate.connection.provider_class" value="org.hibernate.connection.C3P0ConnectionProvider" />
+ <property name="hibernate.temp.use_jdbc_metadata_defaults" value="false" />
+ <property name="hibernate.c3p0.max_size" value="100" />
+ <property name="hibernate.c3p0.min_size" value="0" />
+ <property name="hibernate.c3p0.acquire_increment" value="1" />
+ <property name="hibernate.c3p0.idle_test_period" value="300" />
+ <property name="hibernate.c3p0.max_statements" value="0" />
+ <property name="hibernate.c3p0.timeout" value="100" />
+ </properties>
+ </persistence-unit>
+
+</persistence>
diff --git a/packages/apex-pdp-package-full/src/main/resources/hazelcast/hazelcast.xml b/packages/apex-pdp-package-full/src/main/resources/hazelcast/hazelcast.xml
new file mode 100644
index 000000000..f90c53c51
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/resources/hazelcast/hazelcast.xml
@@ -0,0 +1,222 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ============LICENSE_START=======================================================
+ Copyright (C) 2016-2018 Ericsson. All rights reserved.
+ ================================================================================
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+ SPDX-License-Identifier: Apache-2.0
+ ============LICENSE_END=========================================================
+-->
+<hazelcast xmlns="http://www.hazelcast.com/schema/config" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <group>
+ <name>HazelcastGroup3.0EVAL</name>
+ <password>password3.0EVAL</password>
+ </group>
+ <network>
+ <port auto-increment="true">5706</port>
+ <join>
+ <multicast enabled="false">
+ <multicast-group>224.2.2.10</multicast-group>
+ <multicast-port>54327</multicast-port>
+ </multicast>
+ <tcp-ip enabled="true">
+ <members>10.0.0.1</members>
+ <!-- members>192.168.219.141</members-->
+ </tcp-ip>
+ </join>
+ <interfaces enabled="false">
+ <!-- This value will allow hazelcast to run locally from the IDE -->
+ <interface>127.0.0.*</interface>
+ </interfaces>
+ </network>
+ <properties>
+ <property name="hazelcast.icmp.enabled">true</property>
+ <property name="hazelcast.logging.type">slf4j</property>
+ <!-- disable the hazelcast shutdown hook - prefer to control the shutdown
+ in code -->
+ <property name="hazelcast.shutdownhook.enabled">false</property>
+ <property name="hazelcast.graceful.shutdown.max.wait">60</property>
+ </properties>
+ <executor-service>
+ <pool-size>16</pool-size>
+ </executor-service>
+ <queue name="default">
+ <!-- Maximum size of the queue. Any integer between 0 and Integer.MAX_VALUE.
+ 0 means Integer.MAX_VALUE. Default is 0. -->
+ <max-size>100000</max-size>
+ <!-- Maximum number of seconds for each item to stay in the queue. Items
+ that are not consumed in <time-to-live-seconds> will automatically get evicted
+ from the queue. Any integer between 0 and Integer.MAX_VALUE. 0 means infinite.
+ Default is 0. -->
+ </queue>
+ <map name="default">
+ <!-- Number of backups. If 1 is set as the backup-count for example, then
+ all entries of the map will be copied to another JVM for fail-safety. Valid
+ numbers are 0 (no backup), 1, 2, 3. -->
+ <backup-count>1</backup-count>
+ <!-- Valid values are: NONE (no eviction), LRU (Least Recently Used), LFU
+ (Least Frequiently Used). NONE is the default. -->
+ <eviction-policy>NONE</eviction-policy>
+ <!-- Maximum size of the map. When max size is reached, map is evicted
+ based on the policy defined. Any integer between 0 and Integer.MAX_VALUE.
+ 0 means Integer.MAX_VALUE. Default is 0. -->
+ <max-size>0</max-size>
+ <!-- When max. size is reached, specified percentage of the map will be
+ evicted. Any integer between 0 and 100. If 25 is set for example, 25% of
+ the entries will get evicted. -->
+ <eviction-percentage>25</eviction-percentage>
+ </map>
+
+ <map name="CommonCache">
+
+
+ <!-- Number of async-backups. If 1 is set as the backup-count for example,
+ then all entries of the map will be copied to another JVM for fail-safety.
+ Valid numbers are 0 (no backup), 1, 2, 3. -->
+ <async-backup-count>1</async-backup-count>
+
+ <!-- Can we read the local backup entries? Default value is false for strong
+ consistency. Being able to read backup data will give you greater performance. -->
+ <read-backup-data>true</read-backup-data>
+ <!-- Valid values are: NONE (no eviction), LRU (Least Recently Used), LFU
+ (Least Frequiently Used). NONE is the default. -->
+ <eviction-policy>LRU</eviction-policy>
+ <!-- Maximum size of the map. When max size is reached, map is evicted
+ based on the policy defined. Any integer between 0 and Integer.MAX_VALUE.
+ 0 means Integer.MAX_VALUE. Default is 0. -->
+ <max-size>3000000</max-size>
+ <!-- When max. size is reached, specified percentage of the map will be
+ evicted. Any integer between 0 and 100. If 25 is set for example, 25% of
+ the entries will get evicted. -->
+ <eviction-percentage>5</eviction-percentage>
+
+ <!-- Maximum number of seconds for each entry to stay in the map. Entries
+ that are older than <time-to-live-seconds> and not updated for <time-to-live-seconds>
+ will get automatically evicted from the map. Any integer between 0 and Integer.MAX_VALUE.
+ 0 means infinite. Default is 0. -->
+ <time-to-live-seconds>7200</time-to-live-seconds>
+
+
+ </map>
+
+ <map name="CommonDataCache">
+
+
+ <!-- Number of async-backups. If 1 is set as the backup-count for example,
+ then all entries of the map will be copied to another JVM for fail-safety.
+ Valid numbers are 0 (no backup), 1, 2, 3. -->
+ <async-backup-count>1</async-backup-count>
+
+ <!-- Can we read the local backup entries? Default value is false for strong
+ consistency. Being able to read backup data will give you greater performance. -->
+ <read-backup-data>true</read-backup-data>
+ <!-- Valid values are: NONE (no eviction), LRU (Least Recently Used), LFU
+ (Least Frequiently Used). NONE is the default. -->
+ <eviction-policy>LRU</eviction-policy>
+ <!-- Maximum size of the map. When max size is reached, map is evicted
+ based on the policy defined. Any integer between 0 and Integer.MAX_VALUE.
+ 0 means Integer.MAX_VALUE. Default is 0. -->
+ <max-size>3000000</max-size>
+ <!-- When max. size is reached, specified percentage of the map will be
+ evicted. Any integer between 0 and 100. If 25 is set for example, 25% of
+ the entries will get evicted. -->
+ <eviction-percentage>5</eviction-percentage>
+
+ <!-- Maximum number of seconds for each entry to stay in the map. Entries
+ that are older than <time-to-live-seconds> and not updated for <time-to-live-seconds>
+ will get automatically evicted from the map. Any integer between 0 and Integer.MAX_VALUE.
+ 0 means infinite. Default is 0. -->
+ <time-to-live-seconds>7200</time-to-live-seconds>
+
+ </map>
+
+
+ <queue name="raw-distributer-queue">
+ <!-- Maximum size of the queue. Any integer between 0 and Integer.MAX_VALUE.
+ 0 means Integer.MAX_VALUE. Default is 0. -->
+ <max-size>100000</max-size>
+ </queue>
+ <map name="queue-map">
+
+ <!-- Number of backups. If 1 is set as the backup-count for example, then
+ all entries of the map will be copied to another JVM for fail-safety. Valid
+ numbers are 0 (no backup), 1, 2, 3. -->
+ <backup-count>0</backup-count>
+
+ </map>
+
+ <map name="TOPIC-TASK-MAP">
+
+ <async-backup-count>3</async-backup-count>
+
+ <read-backup-data>true</read-backup-data>
+ <!-- Valid values are: NONE (no eviction), LRU (Least Recently Used), LFU
+ (Least Frequiently Used). NONE is the default. -->
+ <eviction-policy>NONE</eviction-policy>
+ <!-- Maximum size of the map. When max size is reached, map is evicted
+ based on the policy defined. Any integer between 0 and Integer.MAX_VALUE.
+ 0 means Integer.MAX_VALUE. Default is 0. -->
+ <max-size>1000</max-size>
+ <!-- When max. size is reached, specified percentage of the map will be
+ evicted. Any integer between 0 and 100. If 25 is set for example, 25% of
+ the entries will get evicted. -->
+ <eviction-percentage>0</eviction-percentage>
+
+
+
+ <!-- Maximum number of seconds for each entry to stay in the map. Entries
+ that are older than <time-to-live-seconds> and not updated for <time-to-live-seconds>
+ will get automatically evicted from the map. Any integer between 0 and Integer.MAX_VALUE.
+ 0 means infinite. Default is 0. -->
+ <time-to-live-seconds>0</time-to-live-seconds>
+ </map>
+ <map name="TOPIC-REGISTRY">
+
+ <async-backup-count>3</async-backup-count>
+
+ <read-backup-data>true</read-backup-data>
+ <!-- Valid values are: NONE (no eviction), LRU (Least Recently Used), LFU
+ (Least Frequiently Used). NONE is the default. -->
+ <eviction-policy>NONE</eviction-policy>
+ <!-- Maximum size of the map. When max size is reached, map is evicted
+ based on the policy defined. Any integer between 0 and Integer.MAX_VALUE.
+ 0 means Integer.MAX_VALUE. Default is 0. -->
+ <max-size>1000</max-size>
+ <!-- When max. size is reached, specified percentage of the map will be
+ evicted. Any integer between 0 and 100. If 25 is set for example, 25% of
+ the entries will get evicted. -->
+ <eviction-percentage>0</eviction-percentage>
+
+ <!-- Maximum number of seconds for each entry to stay in the map. Entries
+ that are older than <time-to-live-seconds> and not updated for <time-to-live-seconds>
+ will get automatically evicted from the map. Any integer between 0 and Integer.MAX_VALUE.
+ 0 means infinite. Default is 0. -->
+ <time-to-live-seconds>0</time-to-live-seconds>
+ </map>
+ <queue name="Pooled-Topic-Request-Queue">
+ <!-- Maximum size of the queue.Any integer between 0 and Integer.MAX_VALUE.
+ 0 means Integer.MAX_VALUE. Default is 0. -->
+ <max-size>100000</max-size>
+ </queue>
+ <map name="Pooled-Topic-Request-Queue-Backup-map">
+
+ <!-- Number of backups. If 1 is set as the backup-count for example, then
+ all entries of the map will be copied to another JVM for fail-safety. Valid
+ numbers are 0 (no backup), 1, 2, 3. -->
+ <backup-count>1</backup-count>
+ <eviction-policy>NONE</eviction-policy>
+ <time-to-live-seconds>0</time-to-live-seconds>
+ </map>
+
+</hazelcast>
diff --git a/packages/apex-pdp-package-full/src/main/resources/infinispan/infinispan.xml b/packages/apex-pdp-package-full/src/main/resources/infinispan/infinispan.xml
new file mode 100644
index 000000000..fcb57ae8a
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/resources/infinispan/infinispan.xml
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ============LICENSE_START=======================================================
+ Copyright (C) 2016-2018 Ericsson. All rights reserved.
+ ================================================================================
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+ SPDX-License-Identifier: Apache-2.0
+ ============LICENSE_END=========================================================
+-->
+
+<infinispan xmlns="urn:infinispan:config:8.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="urn:infinispan:config:8.0 http://infinispan.org/schemas/infinispan-config-8.0.xsd">
+ <jgroups>
+ <stack-file name="apex" path="infinispan/jgroups-apex.xml" />
+ </jgroups>
+
+ <cache-container name="ApexCacheContainer" default-cache="default">
+ <transport cluster="apexCluster" stack="apex" />
+ <jmx />
+ <replicated-cache name="LargeContextMap_0.0.1" mode="SYNC" statistics="true">
+ <state-transfer enabled="true" />
+ </replicated-cache>
+ <replicated-cache name="TestContext_0.0.1" mode="SYNC">
+ <state-transfer enabled="true" />
+ </replicated-cache>
+ </cache-container>
+</infinispan>
diff --git a/packages/apex-pdp-package-full/src/main/resources/infinispan/jgroups-apex.xml b/packages/apex-pdp-package-full/src/main/resources/infinispan/jgroups-apex.xml
new file mode 100644
index 000000000..c97406abe
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/resources/infinispan/jgroups-apex.xml
@@ -0,0 +1,94 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ============LICENSE_START=======================================================
+ Copyright (C) 2016-2018 Ericsson. All rights reserved.
+ ================================================================================
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+ SPDX-License-Identifier: Apache-2.0
+ ============LICENSE_END=========================================================
+-->
+
+<!--
+ Fast configuration for local mode, ie. all members reside on the same host. Setting ip_ttl to 0 means that
+ no multicast packet will make it outside the local host.
+ Therefore, this configuration will NOT work to cluster members residing on different hosts !
+
+ Author: Bela Ban
+ Version: $Id: fast-local.xml,v 1.9 2009/12/18 14:50:00 belaban Exp $
+-->
+
+<config xmlns="urn:org:jgroups"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="urn:org:jgroups http://www.jgroups.org/schema/JGroups-3.4.xsd">
+ <UDP mcast_addr="239.1.1.1"
+ mcast_port="${jgroups.udp.mcast_port:45111}"
+ tos="8"
+ ucast_recv_buf_size="20000000"
+ ucast_send_buf_size="640000"
+ mcast_recv_buf_size="25000000"
+ mcast_send_buf_size="640000"
+ loopback="true"
+ max_bundle_size="64k"
+ bundler_type="sender-sends-with-timer"
+ ip_ttl="${jgroups.udp.ip_ttl:0}"
+ enable_diagnostics="true"
+ thread_naming_pattern="cl"
+
+ timer_type="new"
+ timer.min_threads="2"
+ timer.max_threads="4"
+ timer.keep_alive_time="3000"
+ timer.queue_max_size="1000"
+ timer.wheel_size="200"
+ timer.tick_time="50"
+
+ thread_pool.enabled="true"
+ thread_pool.min_threads="2"
+ thread_pool.max_threads="8"
+ thread_pool.keep_alive_time="5000"
+ thread_pool.queue_enabled="true"
+ thread_pool.queue_max_size="100000"
+ thread_pool.rejection_policy="discard"
+
+ oob_thread_pool.enabled="true"
+ oob_thread_pool.min_threads="1"
+ oob_thread_pool.max_threads="8"
+ oob_thread_pool.keep_alive_time="5000"
+ oob_thread_pool.queue_enabled="false"
+ oob_thread_pool.queue_max_size="100"
+ oob_thread_pool.rejection_policy="discard"/>
+
+ <PING timeout="2000"
+ num_initial_members="3"/>
+ <MERGE3/>
+ <FD_SOCK />
+ <FD_ALL />
+ <VERIFY_SUSPECT timeout="1500" />
+ <BARRIER />
+ <pbcast.NAKACK use_mcast_xmit="true"
+ retransmit_timeout="100,300,600,1200"
+ discard_delivered_msgs="true"/>
+ <UNICAST3 conn_expiry_timeout="0"/>
+ <pbcast.STABLE stability_delay="1000" desired_avg_gossip="50000"
+ max_bytes="1000000"/>
+ <pbcast.GMS print_local_addr="true" join_timeout="5000"
+ max_bundling_time="200"
+ view_bundling="true"/>
+ <FC max_credits="2M"
+ min_threshold="0.40"/>
+ <FRAG2 frag_size="60000" />
+ <pbcast.FLUSH />
+ <RELAY site="apex" bridge_props="xml/jgroups-tcp.xml" />
+
+</config>
diff --git a/packages/apex-pdp-package-full/src/main/resources/logback-default.xml b/packages/apex-pdp-package-full/src/main/resources/logback-default.xml
new file mode 100644
index 000000000..b96a37686
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/resources/logback-default.xml
@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ============LICENSE_START=======================================================
+ Copyright (C) 2016-2018 Ericsson. All rights reserved.
+ ================================================================================
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+ SPDX-License-Identifier: Apache-2.0
+ ============LICENSE_END=========================================================
+-->
+
+<configuration debug="false">
+ <statusListener class="ch.qos.logback.core.status.NopStatusListener" />
+
+ <contextName>Apex</contextName>
+ <property name="VAR_LOG" value="/var/log/onap/policy/apex-pdp/" />
+
+ <!-- USE FOR STD OUT ONLY -->
+ <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
+ <encoder>
+ <Pattern>%d %contextName [%t] %level %logger{36} - %msg%n</Pattern>
+ </encoder>
+ </appender>
+
+ <root level="info">
+ <appender-ref ref="STDOUT" />
+ </root>
+
+ <appender name="FILE" class="ch.qos.logback.core.FileAppender">
+ <file>${VAR_LOG}/apex.log</file>
+ <encoder>
+ <pattern>%d %-5relative [procId=${processId}] [%thread] %-5level
+ %logger{26} - %msg %n %ex{full}</pattern>
+ </encoder>
+ </appender>
+
+ <appender name="CTXT_FILE" class="ch.qos.logback.core.FileAppender">
+ <file>${VAR_LOG}/apex_ctxt.log</file>
+ <encoder>
+ <pattern>%d %-5relative [procId=${processId}] [%thread] %-5level
+ %logger{26} - %msg %n %ex{full}</pattern>
+ </encoder>
+ </appender>
+
+ <logger name="org.onap.policy.apex" level="info" additivity="false">
+ <appender-ref ref="STDOUT" />
+ <appender-ref ref="FILE" />
+ </logger>
+
+ <logger name="org.onap.policy.apex.core.context.monitoring" level="TRACE" additivity="false">
+ <appender-ref ref="CTXT_FILE" />
+ </logger>
+
+</configuration>
diff --git a/packages/apex-pdp-package-full/src/main/resources/logback-logic.xml b/packages/apex-pdp-package-full/src/main/resources/logback-logic.xml
new file mode 100644
index 000000000..23ce2b32b
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/resources/logback-logic.xml
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ============LICENSE_START=======================================================
+ Copyright (C) 2016-2018 Ericsson. All rights reserved.
+ ================================================================================
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+ SPDX-License-Identifier: Apache-2.0
+ ============LICENSE_END=========================================================
+-->
+
+<configuration debug="false">
+ <statusListener class="ch.qos.logback.core.status.NopStatusListener" />
+
+ <contextName>Apex</contextName>
+ <property name="VAR_LOG" value="/var/log/onap/policy/apex-pdp/" />
+
+ <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
+ <encoder>
+ <Pattern>%d %contextName [%t] %level %logger{36} - %msg%n</Pattern>
+ </encoder>
+ </appender>
+
+ <appender name="FILE" class="ch.qos.logback.core.FileAppender">
+ <file>${VAR_LOG}/apex.log</file>
+ <encoder>
+ <pattern>
+ %d %-5relative [procId=${processId}] [%thread] %-5level%logger{26} - %msg %n %ex{full}
+ </pattern>
+ </encoder>
+ </appender>
+
+ <appender name="POLICY_APPENDER_STDOUT" class="ch.qos.logback.core.ConsoleAppender">
+ <encoder>
+ <pattern>policy: %msg\n</pattern>
+ </encoder>
+ </appender>
+
+ <root level="error">
+ <appender-ref ref="STDOUT" />
+ </root>
+
+ <logger name="org.onap.policy.apex" level="debug" additivity="false">
+ <appender-ref ref="FILE" />
+ </logger>
+
+ <logger name="org.onap.policy.apex.executionlogging" level="info" additivity="false">
+ <appender-ref ref="POLICY_APPENDER_STDOUT" />
+ <appender-ref ref="FILE" />
+ </logger>
+</configuration>
diff --git a/packages/apex-pdp-package-full/src/main/resources/logback-server.xml b/packages/apex-pdp-package-full/src/main/resources/logback-server.xml
new file mode 100644
index 000000000..262c826d8
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/resources/logback-server.xml
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ============LICENSE_START=======================================================
+ Copyright (C) 2016-2018 Ericsson. All rights reserved.
+ ================================================================================
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+ SPDX-License-Identifier: Apache-2.0
+ ============LICENSE_END=========================================================
+-->
+
+<configuration debug="false">
+ <statusListener class="ch.qos.logback.core.status.NopStatusListener" />
+
+ <contextName>Apex</contextName>
+ <property name="VAR_LOG" value="/var/log/onap/policy/apex-pdp/" />
+
+ <appender name="FILE" class="ch.qos.logback.core.FileAppender">
+ <file>${VAR_LOG}/apex.log</file>
+ <encoder>
+ <pattern>
+ %d %-5relative [procId=${processId}] [%thread] %-5level%logger{26} - %msg %n %ex{full}
+ </pattern>
+ </encoder>
+ </appender>
+
+ <root level="debug">
+ <appender-ref ref="FILE" />
+ </root>
+
+ <logger name="org.onap.policy.apex.executionlogging" level="debug" additivity="false">
+ <appender-ref ref="FILE" />
+ </logger>
+</configuration> \ No newline at end of file
diff --git a/packages/apex-pdp-package-full/src/main/resources/logback.xml b/packages/apex-pdp-package-full/src/main/resources/logback.xml
new file mode 100644
index 000000000..42502b1ab
--- /dev/null
+++ b/packages/apex-pdp-package-full/src/main/resources/logback.xml
@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ============LICENSE_START=======================================================
+ Copyright (C) 2016-2018 Ericsson. All rights reserved.
+ ================================================================================
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+ SPDX-License-Identifier: Apache-2.0
+ ============LICENSE_END=========================================================
+-->
+
+<configuration debug="false">
+ <statusListener class="ch.qos.logback.core.status.NopStatusListener" />
+
+ <contextName>Apex</contextName>
+ <property name="VAR_LOG" value="/var/log/onap/policy/apex-pdp/" />
+
+ <!-- USE FOR STD OUT ONLY -->
+ <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
+ <encoder>
+ <Pattern>%d %contextName [%t] %level %logger{36} - %msg%n</Pattern>
+ </encoder>
+ </appender>
+
+ <root level="info">
+ <appender-ref ref="STDOUT" />
+ </root>
+
+ <appender name="FILE" class="ch.qos.logback.core.FileAppender">
+ <file>${VAR_LOG}/apex.log</file>
+ <encoder>
+ <pattern>%d %-5relative [procId=${processId}] [%thread] %-5level
+ %logger{26} - %msg %n %ex{full}</pattern>
+ </encoder>
+ </appender>
+
+ <appender name="CTXT_FILE" class="ch.qos.logback.core.FileAppender">
+ <file>${VAR_LOG}/apex_ctxt.log</file>
+ <encoder>
+ <pattern>%d %-5relative [procId=${processId}] [%thread] %-5level
+ %logger{26} - %msg %n %ex{full}</pattern>
+ </encoder>
+ </appender>
+
+ <logger name="org.onap.policy.apex" level="info" additivity="false">
+ <appender-ref ref="STDOUT" />
+ <appender-ref ref="FILE" />
+ </logger>
+
+ <logger name="org.onap.policy.apex.core.context.monitoring" level="TRACE" additivity="false">
+ <appender-ref ref="CTXT_FILE" />
+ </logger>
+
+</configuration>
diff --git a/packages/pom.xml b/packages/pom.xml
new file mode 100644
index 000000000..509fc7adc
--- /dev/null
+++ b/packages/pom.xml
@@ -0,0 +1,39 @@
+<!--
+ ============LICENSE_START=======================================================
+ Copyright (C) 2018 Ericsson. All rights reserved.
+ ================================================================================
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+ SPDX-License-Identifier: Apache-2.0
+ ============LICENSE_END=========================================================
+-->
+<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.policy.apex-pdp</groupId>
+ <artifactId>apex-pdp</artifactId>
+ <version>2.0.0-SNAPSHOT</version>
+ </parent>
+
+ <groupId>org.onap.policy.apex-pdp.packages</groupId>
+ <artifactId>packages</artifactId>
+ <packaging>pom</packaging>
+
+ <name>${project.artifactId}</name>
+ <description>[${project.parent.artifactId}] packaging</description>
+
+ <modules>
+ <module>apex-pdp-package-full</module>
+ </modules>
+</project> \ No newline at end of file