Release Artifact 1.3.1
[holmes/common.git] / holmes-actions / src / main / java / org / onap / holmes / common / utils / MSBRegisterUtil.java
index 1cd481e..a849ab8 100644 (file)
@@ -1,12 +1,12 @@
 /**\r
- * Copyright 2017 ZTE Corporation.\r
- *\r
+ * Copyright 2017-2020 ZTE Corporation.\r
+ * <p>\r
  * Licensed under the Apache License, Version 2.0 (the "License");\r
  * you may not use this file except in compliance with the License.\r
  * You may obtain a copy of the License at\r
- *\r
- *     http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
+ * <p>\r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ * <p>\r
  * Unless required by applicable law or agreed to in writing, software\r
  * distributed under the License is distributed on an "AS IS" BASIS,\r
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
 \r
 package org.onap.holmes.common.utils;\r
 \r
-import static jdk.nashorn.internal.runtime.regexp.joni.Config.log;\r
-\r
-import com.eclipsesource.jaxrs.consumer.ConsumerFactory;\r
-import java.io.IOException;\r
 import lombok.extern.slf4j.Slf4j;\r
 import org.jvnet.hk2.annotations.Service;\r
-import org.onap.holmes.common.api.entity.ServiceRegisterEntity;\r
 import org.onap.holmes.common.config.MicroServiceConfig;\r
 import org.onap.holmes.common.exception.CorrelationException;\r
-import org.onap.holmes.common.msb.MicroserviceBusRest;\r
 import org.onap.msb.sdk.discovery.common.RouteException;\r
 import org.onap.msb.sdk.discovery.entity.MicroServiceFullInfo;\r
 import org.onap.msb.sdk.discovery.entity.MicroServiceInfo;\r
@@ -36,7 +30,7 @@ import org.onap.msb.sdk.httpclient.msb.MSBServiceClient;
 public class MSBRegisterUtil {\r
 \r
     public void register2Msb(MicroServiceInfo msinfo) throws CorrelationException {\r
-        String[] msbAddrInfo = MicroServiceConfig.getMsbAddrInfo();\r
+        String[] msbAddrInfo = MicroServiceConfig.getMsbIpAndPort();\r
         MSBServiceClient msbClient = new MSBServiceClient(msbAddrInfo[0],\r
                 Integer.parseInt(msbAddrInfo[1]));\r
 \r