summaryrefslogtreecommitdiffstats
path: root/engine-d
diff options
context:
space:
mode:
authortang peng <tang.peng5@zte.com.cn>2020-09-24 15:19:06 +0800
committertang peng <tang.peng5@zte.com.cn>2020-09-24 15:19:06 +0800
commit1c568079fd4e19220b32dee953fa10c43806294e (patch)
treecf3276e12157ff6552f7b686fb867354635d89cd /engine-d
parent9fc669ec1c40c399bc2908a4b3444ae0e3d6538d (diff)
Fixed an Issue on API Calling via MSB
Issue-ID: HOLMES-365 Signed-off-by: tang peng <tang.peng5@zte.com.cn> Change-Id: I169d030261bdf63ffe5c395aeaa02ebb61230cc0
Diffstat (limited to 'engine-d')
-rw-r--r--engine-d/src/main/java/org/onap/holmes/engine/EngineDActiveApp.java4
1 files changed, 4 insertions, 0 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 49627fa..7f49621 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
@@ -71,17 +71,21 @@ public class EngineDActiveApp extends IOCApplication<EngineDAppConfig> {
msinfo.setServiceName("holmes-engine-mgmt");
msinfo.setVersion("v1");
msinfo.setUrl("/api/holmes-engine-mgmt/v1");
+ msinfo.setPath("/api/holmes-engine-mgmt/v1");
msinfo.setProtocol("REST");
msinfo.setVisualRange("0|1");
+ msinfo.setLb_policy("round-robin");
msinfo.setEnable_ssl(HttpsUtils.isHttpsEnabled());
Set<Node> nodes = new HashSet<>();
Node node = new Node();
node.setIp(serviceAddrInfo[0]);
node.setPort("9102");
+ /* Following codes will cause an unregistration from MSB (due to MSB malfunction), comment them for now
node.setCheckType("HTTP");
node.setCheckUrl(String.format(msbAddrTemplate, serviceAddrInfo[0], "9102"));
node.setCheckTimeOut("60s");
node.setCheckInterval("60s");
+ */
nodes.add(node);
msinfo.setNodes(nodes);
return msinfo;