From: Gaurav Agrawal Date: Mon, 18 Sep 2017 09:24:37 +0000 (+0530) Subject: Replace deprecated APIs with newer one X-Git-Tag: 1.0.4~7^2~227^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=b36a9d940c2a865af5b43cad9822f05492235f75;p=ccsdk%2Fsli.git Replace deprecated APIs with newer one Replace following deprecated API 1) NotificationProviderService replaced with NotificationPublishService Change-Id: I3d5117e63083ce77553feb3d3f6d6265576da646 Issue-Id: CCSDK-93 Signed-off-by: Gaurav Agrawal --- diff --git a/dataChange/provider/src/main/java/org/onap/ccsdk/sli/northbound/DataChangeProvider.java b/dataChange/provider/src/main/java/org/onap/ccsdk/sli/northbound/DataChangeProvider.java index 0977fa0b7..2b45cc7d7 100644 --- a/dataChange/provider/src/main/java/org/onap/ccsdk/sli/northbound/DataChangeProvider.java +++ b/dataChange/provider/src/main/java/org/onap/ccsdk/sli/northbound/DataChangeProvider.java @@ -28,6 +28,7 @@ import java.util.concurrent.Future; import org.onap.ccsdk.sli.core.sli.provider.MdsalHelper; import org.opendaylight.controller.md.sal.binding.api.DataBroker; +import org.opendaylight.controller.md.sal.binding.api.NotificationPublishService; import org.opendaylight.controller.sal.binding.api.BindingAwareBroker; import org.opendaylight.controller.sal.binding.api.NotificationProviderService; import org.opendaylight.controller.sal.binding.api.RpcProviderRegistry; @@ -58,21 +59,21 @@ public class DataChangeProvider implements AutoCloseable, DataChangeService { private final ExecutorService executor; protected DataBroker dataBroker; - protected NotificationProviderService notificationService; + protected NotificationPublishService notificationService; protected RpcProviderRegistry rpcRegistry; protected BindingAwareBroker.RpcRegistration rpcRegistration; private final DataChangeClient dataChangeClient; public DataChangeProvider(final DataBroker dataBroker, - final NotificationProviderService notificationProviderService, + final NotificationPublishService notificationPublishService, final RpcProviderRegistry rpcProviderRegistry, final DataChangeClient dataChangeClient) { this.LOG.info( "Creating provider for {}", APPLICATION_NAME); executor = Executors.newFixedThreadPool(1); this.dataBroker = dataBroker; - this.notificationService = notificationProviderService; + this.notificationService = notificationPublishService; this.rpcRegistry = rpcProviderRegistry; this.dataChangeClient = dataChangeClient; initialize(); diff --git a/dataChange/provider/src/main/resources/org/opendaylight/blueprint/datachange-blueprint.xml b/dataChange/provider/src/main/resources/org/opendaylight/blueprint/datachange-blueprint.xml index b826b0113..03293015b 100644 --- a/dataChange/provider/src/main/resources/org/opendaylight/blueprint/datachange-blueprint.xml +++ b/dataChange/provider/src/main/resources/org/opendaylight/blueprint/datachange-blueprint.xml @@ -15,7 +15,7 @@ odl:type="default" />