Add 'TableStatistics' to SAL and Northbound Statistics API.
[controller.git] / opendaylight / protocol_plugins / openflow / src / main / java / org / opendaylight / controller / protocol_plugin / openflow / IOFStatisticsManager.java
index 18fe686dd5be1dbf98bbafea3841b9803e7fbd93..74dc84aec9613671bb24a17bfd38f788b5c8f35d 100644 (file)
@@ -22,9 +22,9 @@ public interface IOFStatisticsManager {
     /**
      * Return all the statistics for all the flows present on the specified switch
      *
-        * @param switchId the openflow datapath id
-        * @return      the list of openflow statistics
-        */
+     * @param switchId the openflow datapath id
+     * @return the list of openflow statistics
+     */
     List<OFStatistics> getOFFlowStatistics(Long switchId);
 
     /**
@@ -39,7 +39,7 @@ public interface IOFStatisticsManager {
     /**
      * Return the description statistics for the specified switch.
      *
-        * @param switchId the openflow datapath id
+     * @param switchId the openflow datapath id
      * @return the list of openflow statistics
      */
     List<OFStatistics> getOFDescStatistics(Long switchId);
@@ -47,7 +47,7 @@ public interface IOFStatisticsManager {
     /**
      * Returns the statistics for all the ports on the specified switch
      *
-        * @param switchId the openflow datapath id
+     * @param switchId the openflow datapath id
      * @return the list of openflow statistics
      */
     List<OFStatistics> getOFPortStatistics(Long switchId);
@@ -55,7 +55,7 @@ public interface IOFStatisticsManager {
     /**
      * Returns the statistics for the specified switch port
      *
-        * @param switchId the openflow datapath id
+     * @param switchId the openflow datapath id
      * @param portId the openflow switch port id
      * @return the list of openflow statistics
      */
@@ -64,7 +64,7 @@ public interface IOFStatisticsManager {
     /**
      * Returns the number of flows installed on the switch
      *
-        * @param switchId the openflow datapath id
+     * @param switchId the openflow datapath id
      * @return the number of flows installed on the switch
      */
     int getFlowsNumber(long switchId);
@@ -77,12 +77,12 @@ public interface IOFStatisticsManager {
      * @param switchId the openflow datapath id of the target switch
      * @param statType the openflow statistics type
      * @param target the target object. For flow statistics it is the OFMatch.
-     *                                  For port statistics, it is the port id. If null the query
-     *                                  will be performed for all the targets for the specified
-     *                                  statistics type. 
-     *                                  
+     *                                  For port statistics, it is the port id. If null the query
+     *                                  will be performed for all the targets for the specified
+     *                                  statistics type.
+     * 
      * @param timeout the timeout in milliseconds the system will wait for a response
-     *                   from the switch, before declaring failure 
+     *                  from the switch, before declaring failure
      * @return the list of openflow statistics
      */
     List<OFStatistics> queryStatistics(Long switchId,
@@ -97,4 +97,21 @@ public interface IOFStatisticsManager {
      */
     long getTransmitRate(Long switchId, Short port);
 
+    /**
+     * Returns the statistics for the specified switch table
+     *
+     * @param switchId the openflow datapath id
+     * @param tableId the openflow switch table id
+     * @return the list of openflow statistics
+     */
+    List<OFStatistics> getOFTableStatistics(Long switchId, Byte tableId);
+
+    /**
+     * Returns all the table statistics for the node specified
+     *
+     * @param switchId the openflow datapath id
+     * @return the list of openflow statistics
+     */
+    List<OFStatistics> getOFTableStatistics(Long switchId);
+
 }