85ed8d48442eb276193bb69e9adcbcbfc57880a5
[controller.git] / opendaylight / md-sal / forwardingrules-manager / src / main / java / org / opendaylight / controller / forwardingrulesmanager / consumer / impl / IForwardingRulesManager.java
1 package org.opendaylight.controller.forwardingrulesmanager.consumer.impl;
2
3 import java.util.List;
4
5 import org.opendaylight.controller.sal.core.Node;
6 import org.opendaylight.yangtools.yang.binding.DataObject;
7
8 /**
9  * Interface that describes methods for accessing the flows database.
10  */
11 public interface IForwardingRulesManager {
12
13     /**
14      * Returns the specifications of all the flows configured for all the
15      * switches on the current container
16      *
17      * @return the list of flow configurations present in the database
18      */
19     public List<DataObject> get();
20
21     /**
22      * Returns the specification of the flow configured for the given network
23      * node on the current container
24      *
25      * @param name
26      *            the flow name
27      * @param n
28      *            the network node identifier
29      * @return the {@code FlowConfig} object
30      */
31     public DataObject getWithName(String name, Node n);
32
33 }