summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortang peng <tang.peng5@zte.com.cn>2017-09-16 07:28:37 +0000
committerGerrit Code Review <gerrit@onap.org>2017-09-16 07:28:37 +0000
commit7679c72d932dd610931a3b82697d84c09cb2f1dd (patch)
treeb2c20b71410512576fc84a3f305d30de7110765a
parentb13688c86db0f66c75ceba5d4c856214d75d0f14 (diff)
parent10dfe5f992c439d8113c09eee15750b82253a415 (diff)
Merge "Get the MSB Info from DCAE Consul"
-rw-r--r--rulemgt/src/main/java/org/onap/holmes/rulemgt/RuleActiveApp.java5
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;