From 02477312f805d819b9b71ce91bcbebea98697fb5 Mon Sep 17 00:00:00 2001 From: Guangrong Fu Date: Fri, 3 Nov 2017 14:30:05 +0800 Subject: Modify the Service Addr Query Logic Change-Id: Ic8526936e03570422d70e37788f1db939a405acc Issue-ID: HOLMES-81 Signed-off-by: Guangrong Fu --- .../src/main/java/org/onap/holmes/dsa/dmaap/DmaapDsaActiveApp.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'dmaap-dsa/src/main/java') diff --git a/dmaap-dsa/src/main/java/org/onap/holmes/dsa/dmaap/DmaapDsaActiveApp.java b/dmaap-dsa/src/main/java/org/onap/holmes/dsa/dmaap/DmaapDsaActiveApp.java index 55838ae..a74910c 100644 --- a/dmaap-dsa/src/main/java/org/onap/holmes/dsa/dmaap/DmaapDsaActiveApp.java +++ b/dmaap-dsa/src/main/java/org/onap/holmes/dsa/dmaap/DmaapDsaActiveApp.java @@ -19,11 +19,9 @@ package org.onap.holmes.dsa.dmaap; import static jdk.nashorn.internal.runtime.regexp.joni.Config.log; import io.dropwizard.setup.Environment; -import java.io.IOException; import java.util.HashSet; import java.util.Set; import lombok.extern.slf4j.Slf4j; -import org.onap.holmes.common.api.entity.ServiceRegisterEntity; import org.onap.holmes.common.config.MicroServiceConfig; import org.onap.holmes.common.dropwizard.ioc.bundle.IOCApplication; import org.onap.holmes.common.exception.CorrelationException; @@ -48,7 +46,7 @@ public class DmaapDsaActiveApp extends IOCApplication { } private MicroServiceInfo createMicroServiceInfo() { - String[] serviceAddrInfo = MicroServiceConfig.getServiceAddrInfo(); + String[] serviceAddrInfo = MicroServiceConfig.getMicroServiceIpAndPort(); MicroServiceInfo msinfo = new MicroServiceInfo(); msinfo.setServiceName("holmes-dmaap-dsa"); msinfo.setVersion("v1"); -- cgit 1.2.3-korg