X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=opendaylight%2Fmd-sal%2Fforwardingrules-manager%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fforwardingrulesmanager%2Fconsumer%2Fimpl%2FIForwardingRulesManager.java;fp=opendaylight%2Fmd-sal%2Fforwardingrules-manager%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fforwardingrulesmanager%2Fconsumer%2Fimpl%2FIForwardingRulesManager.java;h=85ed8d48442eb276193bb69e9adcbcbfc57880a5;hb=602bf072ae42a32cc75aa80af43f9aac15bad15e;hp=0000000000000000000000000000000000000000;hpb=8b84c5a210d5bf688fde0eb0db1b7f21f78a4f0b;p=controller.git 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 index 0000000000..85ed8d4844 --- /dev/null +++ b/opendaylight/md-sal/forwardingrules-manager/src/main/java/org/opendaylight/controller/forwardingrulesmanager/consumer/impl/IForwardingRulesManager.java @@ -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 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); + +}