Merge "BUG-5602: OFP-Li implements a YANG notification which notifies its application...
[openflowplugin.git] / openflowplugin-api / src / main / java / org / opendaylight / openflowplugin / api / openflow / statistics / StatisticsManager.java
index 7b59eb0d79294c53d49ce22e6c6f285e896ebaf0..e1588be274db166ca8e3adf085dd9f251afd417e 100644 (file)
@@ -8,14 +8,20 @@
 
 package org.opendaylight.openflowplugin.api.openflow.statistics;
 
-import org.opendaylight.openflowplugin.api.openflow.device.handlers.DeviceContextClosedHandler;
-import org.opendaylight.openflowplugin.api.openflow.device.handlers.DeviceDisconnectedHandler;
+import org.opendaylight.openflowplugin.api.openflow.device.handlers.DeviceTerminationPhaseHandler;
 import org.opendaylight.openflowplugin.api.openflow.device.handlers.DeviceInitializationPhaseHandler;
-import org.opendaylight.openflowplugin.api.openflow.device.handlers.DeviceInitializator;
+import org.opendaylight.openflowplugin.api.openflow.device.handlers.DeviceLifecycleSupervisor;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeId;
 
 /**
  * Created by Martin Bobak <mbobak@cisco.com> on 26.2.2015.
  */
-public interface StatisticsManager extends DeviceInitializator, DeviceInitializationPhaseHandler, DeviceContextClosedHandler {
+public interface StatisticsManager extends DeviceLifecycleSupervisor, DeviceInitializationPhaseHandler,
+        DeviceTerminationPhaseHandler, AutoCloseable {
 
+    void startScheduling(NodeId nodeId);
+    void stopScheduling(NodeId nodeId);
+
+    @Override
+    void close();
 }