X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=holmes-actions%2Fsrc%2Fmain%2Fjava%2Forg%2Fopeno%2Fholmes%2Fcommon%2Futils%2FMSBRegisterUtil.java;h=e18a15ccf02586af6b597dd60ab49551c9415eea;hb=e9d903e5f0c762e11d443994eac2ced51afbe3e3;hp=176107ec9b66f7409a942043214487744bc16c96;hpb=2fb0505f89dd407b4fb0ae73a096f6f11e43457d;p=holmes%2Fcommon.git diff --git a/holmes-actions/src/main/java/org/openo/holmes/common/utils/MSBRegisterUtil.java b/holmes-actions/src/main/java/org/openo/holmes/common/utils/MSBRegisterUtil.java index 176107e..e18a15c 100644 --- a/holmes-actions/src/main/java/org/openo/holmes/common/utils/MSBRegisterUtil.java +++ b/holmes-actions/src/main/java/org/openo/holmes/common/utils/MSBRegisterUtil.java @@ -19,7 +19,6 @@ package org.openo.holmes.common.utils; import com.eclipsesource.jaxrs.consumer.ConsumerFactory; import java.io.IOException; import lombok.extern.slf4j.Slf4j; -import org.apache.http.client.methods.HttpRequestBase; import org.glassfish.jersey.client.ClientConfig; import org.jvnet.hk2.annotations.Service; import org.openo.holmes.common.api.entity.ServiceRegisterEntity; @@ -52,6 +51,8 @@ public class MSBRegisterUtil { private boolean inner_register(ServiceRegisterEntity entity) { ClientConfig config = new ClientConfig(); try { + log.info("msbServerAddr:" + MicroServiceConfig.getMsbServerAddr()); + log.info("entity:" + entity); MicroserviceBusRest resourceserviceproxy = ConsumerFactory.createConsumer( MicroServiceConfig.getMsbServerAddr(), config, MicroserviceBusRest.class); resourceserviceproxy.registerServce("false", entity);