aboutsummaryrefslogtreecommitdiffstats
path: root/controlloop/templates
diff options
context:
space:
mode:
authorJorge Hernandez <jh1730@att.com>2017-12-06 15:46:08 -0600
committerJorge Hernandez <jh1730@att.com>2017-12-08 22:09:14 +0000
commit379e02e7e500b4c022771e5a1f4bdd1566069a9b (patch)
treea45426bf7953b476da53c2c0aa24acba21501fc0 /controlloop/templates
parent7cdedcbc4074ea117ce6b489e3f7d5f9e31dc9b2 (diff)
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 <jh1730@att.com> (cherry picked from commit f2715bc0f272e5e657ed8a82c0f4e520a7c7706d)
Diffstat (limited to 'controlloop/templates')
-rw-r--r--controlloop/templates/archetype-cl-amsterdam/src/main/resources/archetype-resources/src/main/resources/__closedLoopControlName__.drl26
1 files changed, 0 insertions, 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
/*