Merge "Topology manager - implementing TerminationPointChangeListener"
[openflowplugin.git] / openflowplugin-api / src / main / java / org / opendaylight / openflowplugin / api / openflow / device / DeviceContext.java
index d4f1e88c5eb770827b4662bb927dca7668c08f56..8301c075a8425448be91dec53f2dbbe0c70cb7ec 100644 (file)
@@ -8,6 +8,8 @@
 
 package org.opendaylight.openflowplugin.api.openflow.device;
 
+import org.opendaylight.controller.sal.binding.api.NotificationProviderService;
+
 import io.netty.util.Timeout;
 import java.math.BigInteger;
 import java.util.Map;
@@ -19,7 +21,7 @@ import org.opendaylight.openflowplugin.api.openflow.device.handlers.DeviceReplyP
 import org.opendaylight.openflowplugin.api.openflow.device.handlers.MessageHandler;
 import org.opendaylight.openflowplugin.api.openflow.device.handlers.OutstandingMessageExtractor;
 import org.opendaylight.openflowplugin.api.openflow.device.listener.OpenflowMessageListenerFacade;
-import org.opendaylight.openflowplugin.api.openflow.flow.registry.FlowRegistry;
+import org.opendaylight.openflowplugin.api.openflow.registry.flow.DeviceFlowRegistry;
 import org.opendaylight.openflowplugin.api.openflow.translator.TranslatorLibrarian;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.table.types.rev131026.TableFeatures;
 import org.opendaylight.yangtools.yang.binding.DataObject;
@@ -143,7 +145,7 @@ public interface DeviceContext extends OpenflowPluginTimer, MessageHandler, Tran
      * Method exposes flow registry used for storing flow ids identified by calculated flow hash.
      * @return
      */
-    FlowRegistry getFlowRegistry();
+    DeviceFlowRegistry getDeviceFlowRegistry();
 
     /**
      * store cancellable timeout handler of currently running barrier task
@@ -154,5 +156,12 @@ public interface DeviceContext extends OpenflowPluginTimer, MessageHandler, Tran
      * @return cancellable timeout handle of currently running barrier task
      */
     Timeout getBarrierTaskTimeout();
+
+    /**
+     * Sets notification service
+     * @param notificationService
+     */
+    void setNotificationService(NotificationProviderService notificationService);
+
 }