OpenFLow plugin & SAL API documentation
[controller.git] / opendaylight / sal / api / src / main / java / org / opendaylight / controller / sal / reader / IPluginInReadService.java
index 1b950d7cf592df1a78fc775d3a4c390a274d4efa..e9efd382da09c35274c25cc613b6dd1c92fc8c5b 100644 (file)
@@ -17,70 +17,119 @@ import org.opendaylight.controller.sal.core.NodeTable;
 import org.opendaylight.controller.sal.flowprogrammer.Flow;
 
 /**
- * @file   IPluginInReadService.java
- *
- * @brief  Hardware view interface to be implemented by protocol plugins
- *
- *
- *
+ * The interface defines hardware view read methods to be implemented by protocol plugins
  */
 public interface IPluginInReadService {
 
     /**
-     * Returns the hardware image for the specified flow on the specified network node
+     * Returns the hardware image for the specified flow on the specified
+     * network node
+     *
      * @param node
+     *            the network node
      * @param flow
-     * @return
+     *            the target flow
+     * @param cached
+     *            specify if entry has to be queried from the cached hardware
+     *            information maintained locally or directly from the network
+     *            node.
+     * @return The FlowOnNode object containing the information present in
+     *         hardware for the passed flow on the specified network node
      */
     public FlowOnNode readFlow(Node node, Flow flow, boolean cached);
 
     /**
-     * Returns the hardware view of all the flow installed on the specified network node
+     * Returns the hardware view of all the flow installed on the specified
+     * network node
+     *
      * @param node
-     * @return
+     *            the network node
+     * @param cached
+     *            specify if entries have to be queried from the cached hardware
+     *            information maintained locally or directly from the network
+     *            node.
+     * @return The list of FlowOnNode objects containing the information present
+     *         in hardware on the specified network node for all its flows
      */
     public List<FlowOnNode> readAllFlow(Node node, boolean cached);
 
     /**
-     * Returns the description of the network node as provided by the node itself
+     * Returns the description of the network node as provided by the node
+     * itself
+     *
      * @param node
-     * @return
+     *            the network node
+     * @param cached
+     *            specify if entry has to be queried from the cached hardware
+     *            information maintained locally or directly from the network
+     *            node.
+     * @return The NodeDescription object containing the description information
+     *         for the specified network node
      */
     public NodeDescription readDescription(Node node, boolean cached);
 
     /**
      * Returns the hardware view of the specified network node connector
-     * @param node
-     * @return
+     *
+     * @param connector
+     *            the target nodeConnector
+     * @param cached
+     *            specify if entry has to be queried from the cached hardware
+     *            information maintained locally or directly from the
+     *            corresponding network node.
+     * @return The NodeConnectorStatistics object containing the statistics
+     *         present in hardware for the corresponding network node port
      */
     public NodeConnectorStatistics readNodeConnector(NodeConnector connector,
             boolean cached);
 
     /**
-     * Returns the hardware info for all the node connectors on the specified network node
+     * Returns the hardware info for all the node connectors on the specified
+     * network node
+     *
      * @param node
-     * @return
+     *            the target node
+     * @param cached
+     *            specify if entries have to be queried from the cached hardware
+     *            information maintained locally or directly from the
+     *            corresponding network node.
+     * @return The list of NodeConnectorStatistics objects containing the
+     *         statistics present in hardware for all the network node ports
      */
     public List<NodeConnectorStatistics> readAllNodeConnector(Node node,
             boolean cached);
 
     /**
      * Returns the table statistics for the node
-     * @param node
-     * @return
+     * @param table
+     *            the target network node table
+     * @param cached
+     *            specify if entry has to be queried from the cached hardware
+     *            information maintained locally or directly from
+     *            the corresponding network node.
+     * @return The NodeTableStatistics object containing the statistics present
+     *         in hardware for the corresponding network node table
      */
     public NodeTableStatistics readNodeTable(NodeTable table, boolean cached);
 
     /**
      * Returns all the table statistics for the node
+     *
      * @param node
-     * @return
+     *            the target node
+     * @param cached
+     *            specify if entries have to be queried from the cached hardware
+     *            information maintained locally or directly from the
+     *            corresponding network node.
+     * @return The list of NodeTableStatistics objects containing the statistics
+     *         present in hardware for all the network node tables
      */
     public List<NodeTableStatistics> readAllNodeTable(Node node, boolean cached);
 
     /**
      * Returns the averaged transmit rate for the specified node connector
      * @param connector
+     *            the target nodeConnector
      * @return tx rate [bps]
      */
     public long getTransmitRate(NodeConnector connector);