diff options
author | Guangrong Fu <fu.guangrong@zte.com.cn> | 2017-09-16 15:23:32 +0800 |
---|---|---|
committer | Guangrong Fu <fu.guangrong@zte.com.cn> | 2017-09-16 15:23:32 +0800 |
commit | 10dfe5f992c439d8113c09eee15750b82253a415 (patch) | |
tree | b3b06f25288e5cd3bd7e03442e097687bc492c2f /rulemgt/src/main/java/org/onap | |
parent | cbdb774e3a496bd235bd3be7417dc4be3f3abb3d (diff) |
Get the MSB Info from DCAE Consul
Change-Id: I2b4b3c520bbe4682bf4cf9b9cba42d005a175110
Issue-ID: HOLMES-45
Signed-off-by: Guangrong Fu <fu.guangrong@zte.com.cn>
Diffstat (limited to 'rulemgt/src/main/java/org/onap')
-rw-r--r-- | rulemgt/src/main/java/org/onap/holmes/rulemgt/RuleActiveApp.java | 5 |
1 files changed, 3 insertions, 2 deletions
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 0ee539b..003c7fb 100644 --- a/rulemgt/src/main/java/org/onap/holmes/rulemgt/RuleActiveApp.java +++ b/rulemgt/src/main/java/org/onap/holmes/rulemgt/RuleActiveApp.java @@ -55,6 +55,7 @@ public class RuleActiveApp extends IOCApplication<RuleAppConfig> { } private MicroServiceInfo createMicroServiceInfo() { + String[] serviceAddrInfo = MicroServiceConfig.getServiceAddrInfo(); MicroServiceInfo msinfo = new MicroServiceInfo(); msinfo.setServiceName("holmes-rule-mgmt"); msinfo.setVersion("v1"); @@ -63,8 +64,8 @@ public class RuleActiveApp extends IOCApplication<RuleAppConfig> { msinfo.setVisualRange("0|1"); Set<Node> nodes = new HashSet<>(); Node node = new Node(); - node.setIp(MicroServiceConfig.getServiceIp()); - node.setPort("9101"); + node.setIp(serviceAddrInfo[0]); + node.setPort(serviceAddrInfo[1]); nodes.add(node); msinfo.setNodes(nodes); return msinfo; |