Refactoring of 'extractIpv4Mask' method
[openflowplugin.git] / openflowplugin-api / src / main / java / org / opendaylight / openflowplugin / api / openflow / statistics / StatisticsContext.java
index eeb55c65be50cab5e1bf5096ed169991681ad75d..29f775f12894a396a742a23148875b2d70816326 100644 (file)
@@ -8,15 +8,19 @@
 
 package org.opendaylight.openflowplugin.api.openflow.statistics;
 
-import org.opendaylight.openflowplugin.api.openflow.device.DeviceContext;
-import org.opendaylight.openflowplugin.api.openflow.device.RequestContext;
+import com.google.common.util.concurrent.ListenableFuture;
+import io.netty.util.Timeout;
+import org.opendaylight.openflowplugin.api.openflow.device.RequestContextStack;
 
 /**
- * Created by Martin Bobak <mbobak@cisco.com> on 27.2.2015.
+ * Created by Martin Bobak &lt;mbobak@cisco.com&gt; on 27.2.2015.
  */
-public interface StatisticsContext {
+public interface StatisticsContext extends RequestContextStack, AutoCloseable {
 
-    void setDeviceContext(DeviceContext deviceContext);
+    ListenableFuture<Boolean> gatherDynamicData();
 
-    void setRequestContext(RequestContext requestContext);
+    /**
+     * @param pollTimeout handle to nearest scheduled statistics poll
+     */
+    void setPollTimeout(Timeout pollTimeout);
 }