summaryrefslogtreecommitdiffstats
path: root/dmaap-dsa/src/main/java
diff options
context:
space:
mode:
authortang peng <tang.peng5@zte.com.cn>2017-11-03 06:55:54 +0000
committerGerrit Code Review <gerrit@onap.org>2017-11-03 06:55:54 +0000
commit7e5cc9fbd300bd2f72b202237a23971556c307df (patch)
treeb6a43027f2d41f9b02ef2cd445017c1145ae82b4 /dmaap-dsa/src/main/java
parentc9187d54a9edcf5ea808dba765be0dcc1d81c525 (diff)
parent02477312f805d819b9b71ce91bcbebea98697fb5 (diff)
Merge "Modify the Service Addr Query Logic"
Diffstat (limited to 'dmaap-dsa/src/main/java')
-rw-r--r--dmaap-dsa/src/main/java/org/onap/holmes/dsa/dmaap/DmaapDsaActiveApp.java4
1 files changed, 1 insertions, 3 deletions
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<DmaapDsaConfig> {
}
private MicroServiceInfo createMicroServiceInfo() {
- String[] serviceAddrInfo = MicroServiceConfig.getServiceAddrInfo();
+ String[] serviceAddrInfo = MicroServiceConfig.getMicroServiceIpAndPort();
MicroServiceInfo msinfo = new MicroServiceInfo();
msinfo.setServiceName("holmes-dmaap-dsa");
msinfo.setVersion("v1");