From dc1ca539c703529dbf1e05158d261b530804ef73 Mon Sep 17 00:00:00 2001 From: Guangrong Fu Date: Sat, 4 Nov 2017 12:45:14 +0800 Subject: Fix the DCAE integration Bugs Change-Id: I75a339af90c21dc574d375eb1720aaa0b9a1846e Issue-ID: HOLMES-81 Signed-off-by: Guangrong Fu --- rulemgt/src/main/java/org/onap/holmes/rulemgt/RuleActiveApp.java | 3 ++- .../java/org/onap/holmes/rulemgt/dcae/DcaeConfigurationPolling.java | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'rulemgt/src') diff --git a/rulemgt/src/main/java/org/onap/holmes/rulemgt/RuleActiveApp.java b/rulemgt/src/main/java/org/onap/holmes/rulemgt/RuleActiveApp.java index 7738366..6409794 100644 --- a/rulemgt/src/main/java/org/onap/holmes/rulemgt/RuleActiveApp.java +++ b/rulemgt/src/main/java/org/onap/holmes/rulemgt/RuleActiveApp.java @@ -56,7 +56,8 @@ public class RuleActiveApp extends IOCApplication { } ScheduledExecutorService service = Executors.newSingleThreadScheduledExecutor(); - service.scheduleAtFixedRate(new DcaeConfigurationPolling("holmes-rule-mgmt"), 0, + service.scheduleAtFixedRate( + new DcaeConfigurationPolling(MicroServiceConfig.getEnv(MicroServiceConfig.HOSTNAME)), 0, DcaeConfigurationPolling.POLLING_PERIOD, TimeUnit.MILLISECONDS); } diff --git a/rulemgt/src/main/java/org/onap/holmes/rulemgt/dcae/DcaeConfigurationPolling.java b/rulemgt/src/main/java/org/onap/holmes/rulemgt/dcae/DcaeConfigurationPolling.java index 4aa98ee..ec6e075 100644 --- a/rulemgt/src/main/java/org/onap/holmes/rulemgt/dcae/DcaeConfigurationPolling.java +++ b/rulemgt/src/main/java/org/onap/holmes/rulemgt/dcae/DcaeConfigurationPolling.java @@ -40,7 +40,7 @@ public class DcaeConfigurationPolling implements Runnable { private String hostname; - private String url = "http://127.0.0.1/api/holmes-rule-mgmt/v1/rule"; + private String url = "http://127.0.0.1:9101/api/holmes-rule-mgmt/v1/rule"; public DcaeConfigurationPolling(String hostname) { this.hostname = hostname; -- cgit 1.2.3-korg