code cleanup
[openflowplugin.git] / openflowplugin-api / src / main / java / org / opendaylight / openflowplugin / api / openflow / device / DeviceManager.java
index 196ba7c1d3dcc33fd44b34ed1244b30797c2d1d6..3407c26c9b914d1e0a506fa116fdec6911b5961a 100644 (file)
@@ -8,43 +8,38 @@
 
 package org.opendaylight.openflowplugin.api.openflow.device;
 
+import org.opendaylight.controller.md.sal.binding.api.NotificationPublishService;
+import org.opendaylight.controller.md.sal.binding.api.NotificationService;
 import org.opendaylight.openflowplugin.api.openflow.device.handlers.DeviceConnectedHandler;
-import org.opendaylight.openflowplugin.api.openflow.device.handlers.DeviceContextReadyHandler;
-import org.opendaylight.yangtools.yang.binding.DataObject;
+import org.opendaylight.openflowplugin.api.openflow.device.handlers.DeviceContextClosedHandler;
+import org.opendaylight.openflowplugin.api.openflow.device.handlers.DeviceInitializationPhaseHandler;
+import org.opendaylight.openflowplugin.api.openflow.device.handlers.DeviceInitializator;
+import org.opendaylight.openflowplugin.api.openflow.translator.TranslatorLibrarian;
 
 /**
  * This interface is responsible for instantiating DeviceContext and
  * registering transaction chain for each DeviceContext. Each device
  * has its own device context managed by this manager.
- * <p/>
- * <p/>
- * Created by Martin Bobak <mbobak@cisco.com> on 25.2.2015.
+ * Created by Martin Bobak &lt;mbobak@cisco.com&gt; on 25.2.2015.
  */
-public interface DeviceManager extends DeviceConnectedHandler {
-
-
-    /**
-     * Method allows to send message that will be using RequestContext
-     * wrapped by this context.
-     *
-     * @param dataObject
-     */
-    void sendMessage(DataObject dataObject, RequestContext requestContext);
+public interface DeviceManager extends DeviceConnectedHandler,
+        TranslatorLibrarian,
+        DeviceInitializator,
+        DeviceInitializationPhaseHandler, DeviceContextClosedHandler {
 
     /**
-     * Method allows to send rpc request that will be using RequestContext
-     * wrapped by this context.
+     * Sets notification receiving service
      *
-     * @param dataObject
+     * @param notificationService
      */
-    Xid sendRequest(DataObject dataObject, RequestContext requestContext);
+    void setNotificationService(NotificationService notificationService);
 
     /**
-     * Method registers handler responsible for handling operations related to connected device after
-     * request context is created.
+     * Sets notification publish service
      *
-     * @param deviceContextReadyHandler
+     * @param notificationPublishService
      */
-    public void addRequestContextReadyHandler(DeviceContextReadyHandler deviceContextReadyHandler);
+    void setNotificationPublishService(NotificationPublishService notificationPublishService);
 
 }
+