diff options
author | 2021-05-21 21:20:02 +0530 | |
---|---|---|
committer | 2021-05-31 11:45:04 +0530 | |
commit | ee67930973552a69830c30e6b3b1915091af8ebb (patch) | |
tree | a90b90d12815c47f2201ea583161d3816189b34c /components/slice-analysis-ms/src/main/java/org/onap/slice/analysis/ms/dmaap | |
parent | 3424dd5d1a261fda473ef46666a316c7f32e3de3 (diff) |
Code cleanup
Issue-ID: DCAEGEN2-2504
Signed-off-by: denilson.l65 <denilson.l65@wipro.com>
Change-Id: Ife119bb0e084a5ef0e3199a70523876c4e258f67
Diffstat (limited to 'components/slice-analysis-ms/src/main/java/org/onap/slice/analysis/ms/dmaap')
3 files changed, 8 insertions, 4 deletions
diff --git a/components/slice-analysis-ms/src/main/java/org/onap/slice/analysis/ms/dmaap/NotificationCallback.java b/components/slice-analysis-ms/src/main/java/org/onap/slice/analysis/ms/dmaap/NotificationCallback.java index ce1ebd6f..8841236c 100644 --- a/components/slice-analysis-ms/src/main/java/org/onap/slice/analysis/ms/dmaap/NotificationCallback.java +++ b/components/slice-analysis-ms/src/main/java/org/onap/slice/analysis/ms/dmaap/NotificationCallback.java @@ -21,6 +21,10 @@ package org.onap.slice.analysis.ms.dmaap; +/** + * Interface for NotificationCallback + * + */ public interface NotificationCallback { public abstract void activateCallBack(String msg); diff --git a/components/slice-analysis-ms/src/main/java/org/onap/slice/analysis/ms/dmaap/NotificationProducer.java b/components/slice-analysis-ms/src/main/java/org/onap/slice/analysis/ms/dmaap/NotificationProducer.java index 03e1c238..ce362019 100644 --- a/components/slice-analysis-ms/src/main/java/org/onap/slice/analysis/ms/dmaap/NotificationProducer.java +++ b/components/slice-analysis-ms/src/main/java/org/onap/slice/analysis/ms/dmaap/NotificationProducer.java @@ -2,7 +2,7 @@ * ============LICENSE_START======================================================= * slice-analysis-ms * ================================================================================ - * Copyright (C) 2020 Wipro Limited. + * Copyright (C) 2020-2021 Wipro Limited. * ============================================================================== * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -32,7 +32,6 @@ public class NotificationProducer { private CambriaBatchingPublisher cambriaBatchingPublisher; - /** * Parameterized constructor. */ @@ -45,9 +44,7 @@ public class NotificationProducer { * sends notification to dmaap. */ public int sendNotification(String msg) throws IOException { - return cambriaBatchingPublisher.send("", msg); - } } diff --git a/components/slice-analysis-ms/src/main/java/org/onap/slice/analysis/ms/dmaap/PmNotificationCallback.java b/components/slice-analysis-ms/src/main/java/org/onap/slice/analysis/ms/dmaap/PmNotificationCallback.java index 963165d2..c8deccd1 100644 --- a/components/slice-analysis-ms/src/main/java/org/onap/slice/analysis/ms/dmaap/PmNotificationCallback.java +++ b/components/slice-analysis-ms/src/main/java/org/onap/slice/analysis/ms/dmaap/PmNotificationCallback.java @@ -34,6 +34,9 @@ public class PmNotificationCallback implements NotificationCallback { private static Logger log = LoggerFactory.getLogger(PmNotificationCallback.class); + /** + * Triggers on handleNofitication method + */ @Override public void activateCallBack(String msg) { handleNotification(msg); |