From d5395c84a9ca9baccdf52b551b3d75fbf37eb8bd Mon Sep 17 00:00:00 2001 From: Guangrong Fu Date: Sat, 16 Sep 2017 15:22:46 +0800 Subject: Get the MSB Info from DCAE Consul Change-Id: I4ce82070ac421c8b0c0e29c36ac3f7ab245e3aec Issue-ID: HOLMES-45 Signed-off-by: Guangrong Fu --- engine-d/src/main/java/org/onap/holmes/engine/EngineDActiveApp.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'engine-d/src') 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 5f2f3be..5bb3dbe 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 @@ -48,6 +48,7 @@ public class EngineDActiveApp extends IOCApplication { } private MicroServiceInfo createMicroServiceInfo() { + String[] serviceAddrInfo = MicroServiceConfig.getServiceAddrInfo(); MicroServiceInfo msinfo = new MicroServiceInfo(); msinfo.setServiceName("holmes-engine-mgmt"); msinfo.setVersion("v1"); @@ -56,8 +57,8 @@ public class EngineDActiveApp extends IOCApplication { msinfo.setVisualRange("0|1"); Set nodes = new HashSet<>(); Node node = new Node(); - node.setIp(MicroServiceConfig.getServiceIp()); - node.setPort("9102"); + node.setIp(serviceAddrInfo[0]); + node.setPort(serviceAddrInfo[1]); nodes.add(node); msinfo.setNodes(nodes); return msinfo; -- cgit 1.2.3-korg