tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame] | 1 | package org.onlab.onos.net.flow; |
2 | |||||
alshabib | a7f7ca8 | 2014-09-22 11:41:23 -0700 | [diff] [blame] | 3 | import org.onlab.onos.net.DeviceId; |
tom | c1a38d3 | 2014-08-25 23:01:32 -0700 | [diff] [blame] | 4 | import org.onlab.onos.net.provider.ProviderService; |
tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame] | 5 | |
6 | /** | ||||
tom | 8bb1606 | 2014-09-12 14:47:46 -0700 | [diff] [blame] | 7 | * Service through which flow rule providers can inject information into |
tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame] | 8 | * the core. |
9 | */ | ||||
tom | d735672 | 2014-08-26 01:07:39 -0700 | [diff] [blame] | 10 | public interface FlowRuleProviderService extends ProviderService<FlowRuleProvider> { |
tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame] | 11 | |
12 | /** | ||||
tom | 8bb1606 | 2014-09-12 14:47:46 -0700 | [diff] [blame] | 13 | * Signals that a flow rule that was previously installed has been removed. |
tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame] | 14 | * |
tom | 8bb1606 | 2014-09-12 14:47:46 -0700 | [diff] [blame] | 15 | * @param flowRule information about the removed flow |
tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame] | 16 | */ |
tom | 8bb1606 | 2014-09-12 14:47:46 -0700 | [diff] [blame] | 17 | void flowRemoved(FlowRule flowRule); |
tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame] | 18 | |
19 | /** | ||||
alshabib | 5c370ff | 2014-09-18 10:12:14 -0700 | [diff] [blame] | 20 | * Pushes the collection of flow entries currently applied on the given |
21 | * device. | ||||
22 | * | ||||
tom | c104d28 | 2014-09-19 10:57:55 -0700 | [diff] [blame] | 23 | * @param flowRules collection of flow rules |
alshabib | 5c370ff | 2014-09-18 10:12:14 -0700 | [diff] [blame] | 24 | */ |
alshabib | a7f7ca8 | 2014-09-22 11:41:23 -0700 | [diff] [blame] | 25 | void pushFlowMetrics(DeviceId deviceId, Iterable<FlowRule> flowRules); |
alshabib | 5c370ff | 2014-09-18 10:12:14 -0700 | [diff] [blame] | 26 | |
alshabib | 219ebaa | 2014-09-22 15:41:24 -0700 | [diff] [blame] | 27 | |
28 | |||||
tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame] | 29 | } |