Code Review
/
openflowplugin.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "BUG-4177: Li - flowMod result ignores errors from device"
[openflowplugin.git]
/
openflowplugin-api
/
src
/
main
/
java
/
org
/
opendaylight
/
openflowplugin
/
api
/
openflow
/
statistics
/
StatisticsContext.java
diff --git
a/openflowplugin-api/src/main/java/org/opendaylight/openflowplugin/api/openflow/statistics/StatisticsContext.java
b/openflowplugin-api/src/main/java/org/opendaylight/openflowplugin/api/openflow/statistics/StatisticsContext.java
index 224b42cf5a45b65e2014e9760aa7755e14eb8587..89aa9ecd599cf5aad5fa0db67ae94c7ad7622ed1 100644
(file)
--- a/
openflowplugin-api/src/main/java/org/opendaylight/openflowplugin/api/openflow/statistics/StatisticsContext.java
+++ b/
openflowplugin-api/src/main/java/org/opendaylight/openflowplugin/api/openflow/statistics/StatisticsContext.java
@@
-8,10
+8,10
@@
package org.opendaylight.openflowplugin.api.openflow.statistics;
package org.opendaylight.openflowplugin.api.openflow.statistics;
+import com.google.common.base.Optional;
import com.google.common.util.concurrent.ListenableFuture;
import com.google.common.util.concurrent.ListenableFuture;
-import
javax.annotation.CheckForNull
;
+import
io.netty.util.Timeout
;
import org.opendaylight.openflowplugin.api.openflow.device.RequestContextStack;
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 <mbobak@cisco.com> on 27.2.2015.
@@
-20,6
+20,13
@@
public interface StatisticsContext extends RequestContextStack, AutoCloseable {
ListenableFuture<Boolean> gatherDynamicData();
ListenableFuture<Boolean> gatherDynamicData();
- ListenableFuture<Boolean> gatherDynamicData(@CheckForNull MultipartType multipartType);
+ /**
+ * @param pollTimeout handle to nearest scheduled statistics poll
+ */
+ void setPollTimeout(Timeout pollTimeout);
+ /**
+ * @return handle to currently scheduled statistics polling
+ */
+ Optional<Timeout> getPollTimeout();
}
}