Improve cleanup after device disconnected event
[openflowplugin.git] / openflowplugin-api / src / main / java / org / opendaylight / openflowplugin / api / openflow / statistics / StatisticsManager.java
index e16cec91303922b8bbe2b5e6a3ea4388e413e7f5..0cb22a5160f891ead028016059dadab12465e6ec 100644 (file)
@@ -8,16 +8,13 @@
 
 package org.opendaylight.openflowplugin.api.openflow.statistics;
 
+import org.opendaylight.openflowplugin.api.openflow.OFPManager;
 import org.opendaylight.openflowplugin.api.openflow.device.DeviceInfo;
-import org.opendaylight.openflowplugin.api.openflow.device.handlers.DeviceInitializationPhaseHandler;
-import org.opendaylight.openflowplugin.api.openflow.device.handlers.DeviceLifecycleSupervisor;
-import org.opendaylight.openflowplugin.api.openflow.device.handlers.DeviceTerminationPhaseHandler;
 
 /**
  * Manager to start or stop scheduling statistics
  */
-public interface StatisticsManager extends DeviceLifecycleSupervisor, DeviceInitializationPhaseHandler,
-        DeviceTerminationPhaseHandler, AutoCloseable {
+public interface StatisticsManager extends OFPManager {
 
     /**
      * Start scheduling statistic gathering for given device info
@@ -34,6 +31,6 @@ public interface StatisticsManager extends DeviceLifecycleSupervisor, DeviceInit
     @Override
     void close();
 
-    void setIsStatisticsPollingOff(boolean isStatisticsPollingOff);
+    void setIsStatisticsPollingOn(boolean isStatisticsPollingOn);
 
 }