Merge "Bug 3328: Set icmpv4-match into OF10 match."
[openflowplugin.git] / openflowplugin-api / src / main / java / org / opendaylight / openflowplugin / api / openflow / statistics / StatisticsContext.java
index eeb55c65be50cab5e1bf5096ed169991681ad75d..6620fe4d055b8a62a2c6e6e5dedec878836e1de1 100644 (file)
@@ -8,15 +8,18 @@
 
 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 javax.annotation.CheckForNull;
+import org.opendaylight.openflowplugin.api.openflow.device.RequestContextStack;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.types.rev130731.MultipartType;
 
 /**
- * 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);
+    public ListenableFuture<Boolean> gatherDynamicData();
+
+    ListenableFuture<Boolean> gatherDynamicData(@CheckForNull MultipartType multipartType);
 
-    void setRequestContext(RequestContext requestContext);
 }