summaryrefslogtreecommitdiffstats
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
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
-rw-r--r--engine-d/src/main/java/org/onap/holmes/engine/EngineDActiveApp.java4
-rw-r--r--pom.xml2
2 files changed, 5 insertions, 1 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;
diff --git a/pom.xml b/pom.xml
index bd69281..c3e52fe 100644
--- a/pom.xml
+++ b/pom.xml
@@ -129,7 +129,7 @@
<dependency>
<groupId>org.onap.msb.java-sdk</groupId>
<artifactId>msb-java-sdk</artifactId>
- <version>1.1.1</version>
+ <version>1.2.5</version>
<exclusions>
<exclusion>
<groupId>ch.qos.logback</groupId>