Adding package module
Change-Id: I2513f00a3f49d4428470c173a717ccb9fbc49de5
Issue-ID: POLICY-863
Signed-off-by: waqas.ikram <waqas.ikram@ericsson.com>
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 0000000..692a925
--- /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 0000000..f90c53c
--- /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 0000000..fcb57ae
--- /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 0000000..c97406a
--- /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 0000000..b96a376
--- /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 0000000..23ce2b3
--- /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 0000000..262c826
--- /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 0000000..42502b1
--- /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>