From: Shiwei Tian Date: Mon, 16 Oct 2017 02:37:55 +0000 (+0800) Subject: modify bug X-Git-Tag: v1.0.0~8 X-Git-Url: https://gerrit.onap.org/r/gitweb?p=holmes%2Fdsa.git;a=commitdiff_plain;h=bca100aebd44842fc640f2005d6da22c7ee4a4ff modify bug Issue-ID: HOLMES-71 Change-Id: I96553e6c47ee77f2b3559d8413edd724afa1865b Signed-off-by: Shiwei Tian --- diff --git a/dmaap-dsa/src/main/java/org/onap/holmes/dsa/dmaappolling/Subscriber.java b/dmaap-dsa/src/main/java/org/onap/holmes/dsa/dmaappolling/Subscriber.java index eea1533..55b7558 100644 --- a/dmaap-dsa/src/main/java/org/onap/holmes/dsa/dmaappolling/Subscriber.java +++ b/dmaap-dsa/src/main/java/org/onap/holmes/dsa/dmaappolling/Subscriber.java @@ -57,13 +57,18 @@ public class Subscriber { private boolean secure; private String topic; private String url; - private String consumerGroup = "g0"; - private String consumer = "u1"; + private String consumerGroup = "homlesGrounp1"; + private String consumer = "homlesGrounp1"; private String authInfo; private String authExpDate; public List subscribe() throws CorrelationException { - List response = getDMaaPData(); + List response; + try { + response = getDMaaPData(); + } catch (Exception e) { + throw new CorrelationException("Failed to connect to DMapp.", e); + } try { return extractVesAlarm(response); } catch (Exception e) {