diff options
author | 2017-09-27 17:53:42 +0000 | |
---|---|---|
committer | 2017-09-27 17:53:42 +0000 | |
commit | 78c21e39873301cd41c72fe6f271454fd0c7f0a6 (patch) | |
tree | bab293390de01295ecab10bf95a02430033288f7 /BRMSGateway | |
parent | 48c2c3f0300eb9e2a221e6a19f51f4544c2f73ba (diff) | |
parent | 3be65a6cb5f880fe35c42a8fa83c2dfa1a44b5c4 (diff) |
Merge "New controller support from BRMSGW"
Diffstat (limited to 'BRMSGateway')
-rw-r--r-- | BRMSGateway/config.properties | 8 | ||||
-rw-r--r-- | BRMSGateway/dependency.json | 131 | ||||
-rw-r--r-- | BRMSGateway/src/main/java/org/onap/policy/brmsInterface/BRMSPush.java | 5 | ||||
-rw-r--r-- | BRMSGateway/src/test/resources/config.properties | 2 |
4 files changed, 108 insertions, 38 deletions
diff --git a/BRMSGateway/config.properties b/BRMSGateway/config.properties index fa5f9199e..b17804bd5 100644 --- a/BRMSGateway/config.properties +++ b/BRMSGateway/config.properties @@ -47,13 +47,11 @@ repositoryPassword=admin123 policyKeyID = controller ## GroupNames can be comma separated values. -groupNames = default, vFW , vDNS +groupNames = default, amsterdam default.groupID = org.onap.policy-engine default.artifactID = drlPDPGroup -vFW.groupID= org.onap.policy-engine.drools.vFW -vFW.artifactID= policy-vFW-rules -vDNS.groupID= org.onap.policy-engine.drools.vDNS -vDNS.artifactID= policy-vDNS-rules +amsterdam.groupID= org.onap.policy-engine.drools.amsterdam +amsterdam.artifactID= policy-amsterdam-rules #Integrity Monitor values #database driver for Integrity Monitor diff --git a/BRMSGateway/dependency.json b/BRMSGateway/dependency.json index a883cc9da..f758db096 100644 --- a/BRMSGateway/dependency.json +++ b/BRMSGateway/dependency.json @@ -1,33 +1,102 @@ { - "dependencies": { - "default": [{ - "groupId": "org.onap.policy.drools-applications", - "artifactId": "demo", - "version": "1.1.0-SNAPSHOT" - }, { - "groupId": "org.onap.policy.drools-applications", - "artifactId": "events", - "version": "1.1.0-SNAPSHOT" - }, { - "groupId": "org.onap.policy.drools-applications", - "artifactId": "rest", - "version": "1.1.0-SNAPSHOT" - }, { - "groupId": "org.onap.policy.drools-applications", - "artifactId": "appc", - "version": "1.1.0-SNAPSHOT" - }, { - "groupId": "org.onap.policy.drools-applications", - "artifactId": "aai", - "version": "1.1.0-SNAPSHOT" - }, { - "groupId": "org.onap.policy.drools-applications", - "artifactId": "mso", - "version": "1.1.0-SNAPSHOT" - }, { - "groupId": "org.onap.policy.drools-applications", - "artifactId": "trafficgenerator", - "version": "1.1.0-SNAPSHOT" - }] - } + "dependencies": { + "default": [{ + "groupId": "org.onap.policy.drools-applications", + "artifactId": "demo", + "version": "1.1.0-SNAPSHOT" + }, { + "groupId": "org.onap.policy.drools-applications", + "artifactId": "events", + "version": "1.1.0-SNAPSHOT" + }, { + "groupId": "org.onap.policy.drools-applications", + "artifactId": "rest", + "version": "1.1.0-SNAPSHOT" + }, { + "groupId": "org.onap.policy.drools-applications", + "artifactId": "appc", + "version": "1.1.0-SNAPSHOT" + }, { + "groupId": "org.onap.policy.drools-applications", + "artifactId": "aai", + "version": "1.1.0-SNAPSHOT" + }, { + "groupId": "org.onap.policy.drools-applications", + "artifactId": "mso", + "version": "1.1.0-SNAPSHOT" + }, { + "groupId": "org.onap.policy.drools-applications", + "artifactId": "trafficgenerator", + "version": "1.1.0-SNAPSHOT" + }], + "amsterdam": [{ + "groupId": "org.onap.policy.drools-applications", + "artifactId": "events", + "version": "1.1.0-SNAPSHOT" + }, { + "groupId": "org.onap.policy.drools-applications", + "artifactId": "appc", + "version": "1.1.0-SNAPSHOT" + }, { + "groupId": "org.onap.policy.drools-applications", + "artifactId": "appclcm", + "version": "1.1.0-SNAPSHOT" + }, { + "groupId": "org.onap.policy.drools-applications", + "artifactId": "vfc", + "version": "1.1.0-SNAPSHOT" + }, { + "groupId": "org.onap.policy.drools-applications", + "artifactId": "so", + "version": "1.1.0-SNAPSHOT" + }, { + "groupId": "org.onap.policy.drools-applications", + "artifactId": "aai", + "version": "1.1.0-SNAPSHOT" + }, { + "groupId": "org.onap.policy.drools-applications", + "artifactId": "sdc", + "version": "1.1.0-SNAPSHOT" + }, { + "groupId": "org.onap.policy.drools-applications", + "artifactId": "trafficgenerator", + "version": "1.1.0-SNAPSHOT" + }, { + "groupId": "org.onap.policy.drools-applications", + "artifactId": "eventmanager", + "version": "1.1.0-SNAPSHOT" + }, { + "groupId": "org.onap.policy.drools-applications", + "artifactId": "guard", + "version": "1.1.0-SNAPSHOT" + }, { + "groupId": "org.onap.policy.drools-applications", + "artifactId": "actorServiceProvider", + "version": "1.1.0-SNAPSHOT" + }, { + "groupId": "org.onap.policy.drools-applications", + "artifactId": "actor.appc", + "version": "1.1.0-SNAPSHOT" + }, { + "groupId": "org.onap.policy.drools-applications", + "artifactId": "actor.appclcm", + "version": "1.1.0-SNAPSHOT" + }, { + "groupId": "org.onap.policy.drools-applications", + "artifactId": "actor.so", + "version": "1.1.0-SNAPSHOT" + }, { + "groupId": "org.onap.policy.drools-applications", + "artifactId": "actor.vfc", + "version": "1.1.0-SNAPSHOT" + }, { + "groupId": "org.onap.policy.drools-applications", + "artifactId": "policy-yaml", + "version": "1.1.0-SNAPSHOT" + }, { + "groupId": "com.att.research.xacml", + "artifactId": "xacml-pdp", + "version": "1.0.0" + }] + } }
\ No newline at end of file diff --git a/BRMSGateway/src/main/java/org/onap/policy/brmsInterface/BRMSPush.java b/BRMSGateway/src/main/java/org/onap/policy/brmsInterface/BRMSPush.java index 6e8588acb..266e090a2 100644 --- a/BRMSGateway/src/main/java/org/onap/policy/brmsInterface/BRMSPush.java +++ b/BRMSGateway/src/main/java/org/onap/policy/brmsInterface/BRMSPush.java @@ -109,6 +109,7 @@ public class BRMSPush { private static final String[] GOALS = { "clean", "deploy" }; private static final String DEFAULT_VERSION = "1.1.0-SNAPSHOT"; private static final String DEPENDENCY_FILE = "dependency.json"; + private static final String BRMSPERSISTENCE = "brmsEclipselink.persistencexml"; private static Map<String, String> modifiedGroups = new HashMap<>(); private static IntegrityMonitor im; @@ -188,8 +189,10 @@ public class BRMSPush { } catch (Exception e) { LOGGER.error("Error starting BackUpMonitor: " + e); } - if(!config.containsKey(PersistenceUnitProperties.ECLIPSELINK_PERSISTENCE_XML)){ + if(!config.containsKey(BRMSPERSISTENCE)){ config.setProperty(PersistenceUnitProperties.ECLIPSELINK_PERSISTENCE_XML, "META-INF/persistenceBRMS.xml"); + } else { + config.setProperty(PersistenceUnitProperties.ECLIPSELINK_PERSISTENCE_XML, config.getProperty(BRMSPERSISTENCE,"META-INF/persistenceBRMS.xml")); } EntityManagerFactory emf = Persistence.createEntityManagerFactory("BRMSGW", config); em = emf.createEntityManager(); diff --git a/BRMSGateway/src/test/resources/config.properties b/BRMSGateway/src/test/resources/config.properties index 4f9e01305..8c46ec277 100644 --- a/BRMSGateway/src/test/resources/config.properties +++ b/BRMSGateway/src/test/resources/config.properties @@ -65,7 +65,7 @@ javax.persistence.jdbc.user=sa #database password for Integrity Monitor javax.persistence.jdbc.password= #persistence xml -eclipselink.persistencexml=META-INF/persistenceBRMStest.xml +brmsEclipselink.persistencexml=META-INF/persistenceBRMStest.xml #resource name RESOURCE_NAME=site_1.brmsgw_1 #***Properties for IntegrityMonitor integration defined in IntegrityMonitorProperties.java*** |