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=a849ab8ca17b75e561577e4fc38ca449215adea8;hb=3e5ddaee6984869b67dda89b7f8e1932a2b27045;hp=1cd481e42fd401f463803d0f761bb2e578365a29;hpb=9d2cccba20f32fe54e4ccf1f433f68b5cee95bd5;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..a849ab8 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 @@ -1,12 +1,12 @@ /** - * Copyright 2017 ZTE Corporation. - * + * Copyright 2017-2020 ZTE Corporation. + *

* Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * + *

+ * http://www.apache.org/licenses/LICENSE-2.0 + *

* Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -16,16 +16,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 +30,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]));