Add 'TableStatistics' to SAL and Northbound Statistics API.
[controller.git] / opendaylight / statisticsmanager / api / src / main / java / org / opendaylight / controller / statisticsmanager / IStatisticsManager.java
index db7489d47073c8e0a3423819aeab84cb8ef8a490..98977f6e91d15b6eee512d941365133cdb387697 100644 (file)
@@ -15,9 +15,11 @@ import java.util.Map;
 import org.opendaylight.controller.forwardingrulesmanager.FlowEntry;
 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.reader.FlowOnNode;
 import org.opendaylight.controller.sal.reader.NodeConnectorStatistics;
 import org.opendaylight.controller.sal.reader.NodeDescription;
+import org.opendaylight.controller.sal.reader.NodeTableStatistics;
 
 /**
  * Interface which defines the available methods for retrieving
@@ -79,4 +81,20 @@ public interface IStatisticsManager {
      * @return
      */
     List<NodeConnectorStatistics> getNodeConnectorStatistics(Node node);
+
+    /**
+     * Returns the statistics for the specified table of the node
+     *
+     * @param nodeTable
+     * @return
+     */
+    NodeTableStatistics getNodeTableStatistics(NodeTable nodeTable);
+
+    /**
+     * Returns the statistics for all the tables of the node
+     *
+     * @param nodeTable
+     * @return
+     */
+    List <NodeTableStatistics> getNodeTableStatistics(Node node);
 }