moved forwardingrulesmnaager to mdsal directory
[controller.git] / opendaylight / md-sal / forwardingrules-manager / src / main / java / org / opendaylight / controller / forwardingrulesmanager / consumer / impl / IForwardingRulesManager.java
diff --git a/opendaylight/md-sal/forwardingrules-manager/src/main/java/org/opendaylight/controller/forwardingrulesmanager/consumer/impl/IForwardingRulesManager.java b/opendaylight/md-sal/forwardingrules-manager/src/main/java/org/opendaylight/controller/forwardingrulesmanager/consumer/impl/IForwardingRulesManager.java
new file mode 100644 (file)
index 0000000..85ed8d4
--- /dev/null
@@ -0,0 +1,33 @@
+package org.opendaylight.controller.forwardingrulesmanager.consumer.impl;
+
+import java.util.List;
+
+import org.opendaylight.controller.sal.core.Node;
+import org.opendaylight.yangtools.yang.binding.DataObject;
+
+/**
+ * Interface that describes methods for accessing the flows database.
+ */
+public interface IForwardingRulesManager {
+
+    /**
+     * Returns the specifications of all the flows configured for all the
+     * switches on the current container
+     *
+     * @return the list of flow configurations present in the database
+     */
+    public List<DataObject> get();
+
+    /**
+     * Returns the specification of the flow configured for the given network
+     * node on the current container
+     *
+     * @param name
+     *            the flow name
+     * @param n
+     *            the network node identifier
+     * @return the {@code FlowConfig} object
+     */
+    public DataObject getWithName(String name, Node n);
+
+}