From f2715bc0f272e5e657ed8a82c0f4e520a7c7706d Mon Sep 17 00:00:00 2001 From: Jorge Hernandez Date: Wed, 6 Dec 2017 15:46:08 -0600 Subject: remove synchronized calls to avoid race conditions This is to prevent potential problems where multiple jar versions are updated one after the other. Change-Id: I78835b485e57125efb213cfdefba60351d815916 Issue-ID: POLICY-487 Signed-off-by: Jorge Hernandez --- .../main/resources/__closedLoopControlName__.drl | 26 ---------------------- 1 file changed, 26 deletions(-) diff --git a/controlloop/templates/archetype-cl-amsterdam/src/main/resources/archetype-resources/src/main/resources/__closedLoopControlName__.drl b/controlloop/templates/archetype-cl-amsterdam/src/main/resources/archetype-resources/src/main/resources/__closedLoopControlName__.drl index 07c7e2086..6d7ecdb89 100644 --- a/controlloop/templates/archetype-cl-amsterdam/src/main/resources/archetype-resources/src/main/resources/__closedLoopControlName__.drl +++ b/controlloop/templates/archetype-cl-amsterdam/src/main/resources/archetype-resources/src/main/resources/__closedLoopControlName__.drl @@ -135,32 +135,6 @@ rule "${policyName}.SETUP" Logger logger = LoggerFactory.getLogger(drools.getRule().getPackage()); logger.info("{}: {} : YAML=[{}]", params.getClosedLoopControlName(), drools.getRule().getName(), params.getControlLoopYaml()); - - String sqlDbUsername = PolicyEngine.manager.getEnvironmentProperty("sql.db.username"); - - String aaiUrl = PolicyEngine.manager.getEnvironmentProperty("aai.url"); - String aaiUsername = PolicyEngine.manager.getEnvironmentProperty("aai.username"); - String aaiPassword = PolicyEngine.manager.getEnvironmentProperty("aai.password"); - - String soUrl =PolicyEngine.manager.getEnvironmentProperty("so.url"); - String soUsername = PolicyEngine.manager.getEnvironmentProperty("so.username"); - String soPassword = PolicyEngine.manager.getEnvironmentProperty("so.password"); - - String vfcUrl =PolicyEngine.manager.getEnvironmentProperty("vfc.url"); - String vfcUsername = PolicyEngine.manager.getEnvironmentProperty("vfc.username"); - String vfcPassword = PolicyEngine.manager.getEnvironmentProperty("vfc.password"); - - String guardUrl = PolicyEngine.manager.getEnvironmentProperty("guard.url"); - String guardUsername = PolicyEngine.manager.getEnvironmentProperty("pdpx.username"); - String guardPassword = PolicyEngine.manager.getEnvironmentProperty("pdpx.password"); - String guardJdbcUrl = PolicyEngine.manager.getEnvironmentProperty("guard.jdbc.url"); - String guardDisabled = PolicyEngine.manager.getEnvironmentProperty("guard.disabled"); - - logger.info("{}: {} : AAI=[{}:{}]", params.getClosedLoopControlName(), drools.getRule().getName(), aaiUrl, aaiUsername); - logger.info("{}: {} : SO=[{}:{}]", params.getClosedLoopControlName(), drools.getRule().getName(), soUrl, soUsername); - logger.info("{}: {} : VFC=[{}:{}]", params.getClosedLoopControlName(), drools.getRule().getName(), vfcUrl, vfcUsername); - logger.info("{}: {} : GUARD=[{}:{}:{}:{}]", params.getClosedLoopControlName(), drools.getRule().getName(), guardUrl, guardUsername, guardJdbcUrl, guardDisabled); - logger.info("{}: {} : DB=[{}]", params.getClosedLoopControlName(), drools.getRule().getName(), sqlDbUsername); end /* -- cgit 1.2.3-korg