summaryrefslogtreecommitdiffstats
path: root/engine-d/src/main/java/org
diff options
context:
space:
mode:
authorGuangrong Fu <fu.guangrong@zte.com.cn>2017-10-31 17:28:25 +0800
committerGuangrong Fu <fu.guangrong@zte.com.cn>2017-10-31 17:28:25 +0800
commitf50d68bc58afc3a8f1174f289ddffade72b3d5aa (patch)
treef12513bc21ce79e6c2d61ba54094e68acc65aab7 /engine-d/src/main/java/org
parent954440d0acc132151df7f828e2c63606f2ba9cdf (diff)
Update the Config Logic
Change-Id: Ia4d2e088191dac56e74aff060cab3cbba23d73bf Issue-ID: HOLMES-81 Signed-off-by: Guangrong Fu <fu.guangrong@zte.com.cn>
Diffstat (limited to 'engine-d/src/main/java/org')
-rw-r--r--engine-d/src/main/java/org/onap/holmes/engine/EngineDActiveApp.java8
1 files changed, 4 insertions, 4 deletions
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<EngineDAppConfig> {
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() {