Checkstyle enforcer
[controller.git] / opendaylight / statisticsmanager / api / src / main / java / org / opendaylight / controller / statisticsmanager / IStatisticsManager.java
index db7489d47073c8e0a3423819aeab84cb8ef8a490..a2ab07ac7b6bc7249f44ca1c66415c731faf738c 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
@@ -29,7 +31,7 @@ public interface IStatisticsManager {
      * If the context is the default container, the returned statistics are for all the flows installed on the node,
      * regardless of the container they belong to
      *
-     * @param node     the network node
+     * @param node  the network node
      * @return the list of flows installed on the network node
      */
     List<FlowOnNode> getFlows(Node node);
@@ -38,7 +40,7 @@ public interface IStatisticsManager {
      * Returns the statistics for the flows specified in the list
      *
      * @param flows
-     * @return the list of flows installed on the network node
+     * @return  the list of flows installed on the network node
      */
     Map<Node, List<FlowOnNode>> getFlowStatisticsForFlowList(
             List<FlowEntry> flows);
@@ -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);
 }