X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=holmes-actions%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Fholmes%2Fcommon%2Futils%2FMSBRegisterUtil.java;h=877a8240376225376efae46dc9f7cfea438a3c0b;hb=refs%2Fchanges%2F73%2F21973%2F1;hp=1cd481e42fd401f463803d0f761bb2e578365a29;hpb=c8e4878d4f519e63a81bd30b30fcba0a0b398eb5;p=holmes%2Fcommon.git diff --git a/holmes-actions/src/main/java/org/onap/holmes/common/utils/MSBRegisterUtil.java b/holmes-actions/src/main/java/org/onap/holmes/common/utils/MSBRegisterUtil.java index 1cd481e..877a824 100644 --- a/holmes-actions/src/main/java/org/onap/holmes/common/utils/MSBRegisterUtil.java +++ b/holmes-actions/src/main/java/org/onap/holmes/common/utils/MSBRegisterUtil.java @@ -18,14 +18,10 @@ package org.onap.holmes.common.utils; import static jdk.nashorn.internal.runtime.regexp.joni.Config.log; -import com.eclipsesource.jaxrs.consumer.ConsumerFactory; -import java.io.IOException; import lombok.extern.slf4j.Slf4j; import org.jvnet.hk2.annotations.Service; -import org.onap.holmes.common.api.entity.ServiceRegisterEntity; import org.onap.holmes.common.config.MicroServiceConfig; import org.onap.holmes.common.exception.CorrelationException; -import org.onap.holmes.common.msb.MicroserviceBusRest; import org.onap.msb.sdk.discovery.common.RouteException; import org.onap.msb.sdk.discovery.entity.MicroServiceFullInfo; import org.onap.msb.sdk.discovery.entity.MicroServiceInfo; @@ -36,7 +32,7 @@ import org.onap.msb.sdk.httpclient.msb.MSBServiceClient; public class MSBRegisterUtil { public void register2Msb(MicroServiceInfo msinfo) throws CorrelationException { - String[] msbAddrInfo = MicroServiceConfig.getMsbAddrInfo(); + String[] msbAddrInfo = MicroServiceConfig.getMsbIpAndPort(); MSBServiceClient msbClient = new MSBServiceClient(msbAddrInfo[0], Integer.parseInt(msbAddrInfo[1]));