Add 'TableStatistics' to SAL and Northbound Statistics API.
[controller.git] / opendaylight / sal / api / src / main / java / org / opendaylight / controller / sal / reader / IReadService.java
index 3a9f828d942fc294d01e93606802c86233894058..ae975f1a58d21c7d30b52f7e878b48db4db905f0 100644 (file)
@@ -13,6 +13,7 @@ import java.util.List;
 
 import org.opendaylight.controller.sal.core.Node;
 import org.opendaylight.controller.sal.core.NodeConnector;
+import org.opendaylight.controller.sal.core.NodeTable;
 import org.opendaylight.controller.sal.flowprogrammer.Flow;
 
 /**
@@ -88,6 +89,28 @@ public interface IReadService {
      */
     List<NodeConnectorStatistics> readNodeConnectors(Node node);
 
+    /**
+     * Read the Table statistics for the given node table
+     * @param table
+     */
+    NodeTableStatistics readNodeTable(NodeTable table);
+
+    /**
+     * Read the Table statistics for the given node
+     * This is not used. Querying all tables on a node is not currently a feature.
+     * @param table
+     */
+    List<NodeTableStatistics> readNodeTable(Node node);
+
+    /**
+     * Get the table statistics for the given node table
+     * This call results in a direct polling of the information from the node
+     * Caller will be blocked until the node replies or request times out
+     *
+     * @param table
+     */
+    NodeTableStatistics nonCachedReadNodeTable(NodeTable table);
+
     /**
      * Get the node connectors statistics information for the network node
      * This call results in a direct polling of the information from the node