From 87c95be02a8a4d77e165dede90777e811b59dcae Mon Sep 17 00:00:00 2001 From: Ravindra Bakkamanthala Date: Tue, 23 May 2017 14:56:12 -0400 Subject: Commit includes ControlLoopPolicy API and bugfixes Change-Id: I3e18bb8b4c31a0d908bb0cff4c85e2a3fb450a63 Signed-off-by: Ravindra Bakkamanthala --- .../src/main/java/org/openecomp/policyEngine/MainClient.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'PolicyEngineClient/src/main/java/org/openecomp/policyEngine/MainClient.java') diff --git a/PolicyEngineClient/src/main/java/org/openecomp/policyEngine/MainClient.java b/PolicyEngineClient/src/main/java/org/openecomp/policyEngine/MainClient.java index eb6197041..d17f0c649 100644 --- a/PolicyEngineClient/src/main/java/org/openecomp/policyEngine/MainClient.java +++ b/PolicyEngineClient/src/main/java/org/openecomp/policyEngine/MainClient.java @@ -53,15 +53,15 @@ public class MainClient { PolicyEngine policyEngine; try { policyEngine = new PolicyEngine("config.properties"); - Map configAttributes = new HashMap(); + Map configAttributes = new HashMap<>(); configAttributes.put("java", "java"); configAttributes.put("peach", "Tar"); configAttributes.put("true", "false"); configAttributes.put("small", "testPass"); - Map eventAttributes = new HashMap(); + Map eventAttributes = new HashMap<>(); eventAttributes.put("true", "true"); eventAttributes.put("cpu", "91"); - Map decisionAttributes = new HashMap(); + Map decisionAttributes = new HashMap<>(); decisionAttributes.put("Key", "Value"); // Config Example @@ -102,11 +102,11 @@ public class MainClient { try { System.in.read(); } catch (IOException e) { - // + System.err.println("Exception Occured"+e); } } catch (PolicyEngineException e1) { - e1.printStackTrace(); + System.err.println("Exception Occured"+e1); } } -- cgit 1.2.3-korg