From f50d68bc58afc3a8f1174f289ddffade72b3d5aa Mon Sep 17 00:00:00 2001 From: Guangrong Fu Date: Tue, 31 Oct 2017 17:28:25 +0800 Subject: Update the Config Logic Change-Id: Ia4d2e088191dac56e74aff060cab3cbba23d73bf Issue-ID: HOLMES-81 Signed-off-by: Guangrong Fu --- .../src/main/java/org/onap/holmes/engine/EngineDActiveApp.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'engine-d/src/main/java/org') diff --git a/engine-d/src/main/java/org/onap/holmes/engine/EngineDActiveApp.java b/engine-d/src/main/java/org/onap/holmes/engine/EngineDActiveApp.java index 73c35bc..ef45d85 100644 --- a/engine-d/src/main/java/org/onap/holmes/engine/EngineDActiveApp.java +++ b/engine-d/src/main/java/org/onap/holmes/engine/EngineDActiveApp.java @@ -43,15 +43,15 @@ public class EngineDActiveApp extends IOCApplication { environment.jersey().register(new EngineResources()); - ScheduledExecutorService service = Executors.newSingleThreadScheduledExecutor(); - service.scheduleAtFixedRate(new DcaeConfigurationPolling("holmes-rule-mgmt"), 0, - DcaeConfigurationPolling.POLLING_PERIOD, TimeUnit.MILLISECONDS); - try { new MSBRegisterUtil().register2Msb(createMicroServiceInfo()); } catch (CorrelationException e) { log.warn(e.getMessage(), e); } + + ScheduledExecutorService service = Executors.newSingleThreadScheduledExecutor(); + service.scheduleAtFixedRate(new DcaeConfigurationPolling("holmes-engine-mgmt"), 0, + DcaeConfigurationPolling.POLLING_PERIOD, TimeUnit.MILLISECONDS); } private MicroServiceInfo createMicroServiceInfo() { -- cgit 1.2.3-korg