summaryrefslogtreecommitdiffstats
path: root/engine-d/src/main/java
diff options
context:
space:
mode:
authorGuangrong Fu <fu.guangrong@zte.com.cn>2017-09-16 15:22:46 +0800
committerGuangrong Fu <fu.guangrong@zte.com.cn>2017-09-16 15:22:46 +0800
commitd5395c84a9ca9baccdf52b551b3d75fbf37eb8bd (patch)
treeeb1041730c44f9c3332009dc45a1f943658b5ee3 /engine-d/src/main/java
parentc196f6fc8b716f76072e0acaa0324e18f687a660 (diff)
Get the MSB Info from DCAE Consul
Change-Id: I4ce82070ac421c8b0c0e29c36ac3f7ab245e3aec Issue-ID: HOLMES-45 Signed-off-by: Guangrong Fu <fu.guangrong@zte.com.cn>
Diffstat (limited to 'engine-d/src/main/java')
-rw-r--r--engine-d/src/main/java/org/onap/holmes/engine/EngineDActiveApp.java5
1 files changed, 3 insertions, 2 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 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<EngineDAppConfig> {
}
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<EngineDAppConfig> {
msinfo.setVisualRange("0|1");
Set<Node> 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;