Added method for getting non-cached flow statistics
[controller.git] / opendaylight / statisticsmanager / api / src / main / java / org / opendaylight / controller / statisticsmanager / IStatisticsManager.java
index 8267e4d0299334a534a9844d759392a1e763d15f..c717ccf20818b02e39d638cda0a3634e8affae4e 100644 (file)
@@ -39,6 +39,17 @@ public interface IStatisticsManager {
      */
     List<FlowOnNode> getFlows(Node node);
 
+    /**
+     * Same as the getFlows method.
+     * The only difference is that this method does not return cached flows.
+     * It will always make a request to the node to get all the flows for that node.
+     * If the request times out or gets an error, we revert to getting the cached flows.
+     * @see IStatisticsManager#getFlows
+     * @param node
+     * @return List of flows installed on the network node.
+     */
+    List<FlowOnNode> getFlowsNoCache(Node node);
+
     /**
      * Returns the statistics for the flows specified in the list
      *