tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame] | 1 | package org.onlab.onos.net.flow; |
| 2 | |
tom | c1a38d3 | 2014-08-25 23:01:32 -0700 | [diff] [blame] | 3 | import org.onlab.onos.net.provider.Provider; |
tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame] | 4 | |
| 5 | /** |
| 6 | * Abstraction of a flow rule provider. |
| 7 | */ |
| 8 | public interface FlowRuleProvider extends Provider { |
tom | e33cc1a | 2014-08-25 21:59:41 -0700 | [diff] [blame] | 9 | |
tom | 8bb1606 | 2014-09-12 14:47:46 -0700 | [diff] [blame] | 10 | /** |
| 11 | * Instructs the provider to apply the specified flow rules to their |
| 12 | * respective devices. |
| 13 | * @param flowRules one or more flow rules |
| 14 | * throws SomeKindOfException that indicates which ones were applied and |
| 15 | * which ones failed |
| 16 | */ |
| 17 | void applyFlowRule(FlowRule... flowRules); |
| 18 | |
alshabib | 57044ba | 2014-09-16 15:58:01 -0700 | [diff] [blame] | 19 | /** |
| 20 | * Instructs the provider to remove the specified flow rules to their |
| 21 | * respective devices. |
| 22 | * @param flowRules one or more flow rules |
| 23 | * throws SomeKindOfException that indicates which ones were applied and |
| 24 | * which ones failed |
| 25 | */ |
| 26 | void removeFlowRule(FlowRule... flowRules); |
| 27 | |
tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame] | 28 | } |