Pavlin Radoslavov | 6b79f2b | 2013-10-26 21:31:10 -0700 | [diff] [blame] | 1 | package net.onrc.onos.ofcontroller.flowmanager; |
| 2 | |
| 3 | import net.onrc.onos.ofcontroller.topology.TopologyElement; |
Pavlin Radoslavov | b750684 | 2013-10-29 17:46:54 -0700 | [diff] [blame] | 4 | import net.onrc.onos.ofcontroller.util.FlowEntry; |
Pavlin Radoslavov | 6b79f2b | 2013-10-26 21:31:10 -0700 | [diff] [blame] | 5 | import net.onrc.onos.ofcontroller.util.FlowPath; |
| 6 | |
| 7 | /** |
Pavlin Radoslavov | 9a85902 | 2013-10-30 10:08:24 -0700 | [diff] [blame] | 8 | * Interface for providing Flow Event Handler Service to other modules. |
Pavlin Radoslavov | 6b79f2b | 2013-10-26 21:31:10 -0700 | [diff] [blame] | 9 | */ |
Pavlin Radoslavov | 9a85902 | 2013-10-30 10:08:24 -0700 | [diff] [blame] | 10 | public interface IFlowEventHandlerService { |
Pavlin Radoslavov | 6b79f2b | 2013-10-26 21:31:10 -0700 | [diff] [blame] | 11 | /** |
| 12 | * Receive a notification that a Flow is added. |
| 13 | * |
Pavlin Radoslavov | b750684 | 2013-10-29 17:46:54 -0700 | [diff] [blame] | 14 | * @param flowPath the Flow that is added. |
Pavlin Radoslavov | 6b79f2b | 2013-10-26 21:31:10 -0700 | [diff] [blame] | 15 | */ |
| 16 | void notificationRecvFlowAdded(FlowPath flowPath); |
| 17 | |
| 18 | /** |
| 19 | * Receive a notification that a Flow is removed. |
| 20 | * |
Pavlin Radoslavov | b750684 | 2013-10-29 17:46:54 -0700 | [diff] [blame] | 21 | * @param flowPath the Flow that is removed. |
Pavlin Radoslavov | 6b79f2b | 2013-10-26 21:31:10 -0700 | [diff] [blame] | 22 | */ |
| 23 | void notificationRecvFlowRemoved(FlowPath flowPath); |
| 24 | |
| 25 | /** |
| 26 | * Receive a notification that a Flow is updated. |
| 27 | * |
Pavlin Radoslavov | b750684 | 2013-10-29 17:46:54 -0700 | [diff] [blame] | 28 | * @param flowPath the Flow that is updated. |
Pavlin Radoslavov | 6b79f2b | 2013-10-26 21:31:10 -0700 | [diff] [blame] | 29 | */ |
| 30 | void notificationRecvFlowUpdated(FlowPath flowPath); |
| 31 | |
| 32 | /** |
Pavlin Radoslavov | b750684 | 2013-10-29 17:46:54 -0700 | [diff] [blame] | 33 | * Receive a notification that a FlowEntry is added. |
| 34 | * |
| 35 | * @param flowEntry the FlowEntry that is added. |
| 36 | */ |
| 37 | void notificationRecvFlowEntryAdded(FlowEntry flowEntry); |
| 38 | |
| 39 | /** |
| 40 | * Receive a notification that a FlowEntry is removed. |
| 41 | * |
| 42 | * @param flowEntry the FlowEntry that is removed. |
| 43 | */ |
| 44 | void notificationRecvFlowEntryRemoved(FlowEntry flowEntry); |
| 45 | |
| 46 | /** |
| 47 | * Receive a notification that a FlowEntry is updated. |
| 48 | * |
| 49 | * @param flowEntry the FlowEntry that is updated. |
| 50 | */ |
| 51 | void notificationRecvFlowEntryUpdated(FlowEntry flowEntry); |
| 52 | |
| 53 | /** |
Pavlin Radoslavov | 6b79f2b | 2013-10-26 21:31:10 -0700 | [diff] [blame] | 54 | * Receive a notification that a Topology Element is added. |
| 55 | * |
| 56 | * @param topologyElement the Topology Element that is added. |
| 57 | */ |
| 58 | void notificationRecvTopologyElementAdded(TopologyElement topologyElement); |
| 59 | |
| 60 | /** |
| 61 | * Receive a notification that a Topology Element is removed. |
| 62 | * |
| 63 | * @param topologyElement the Topology Element that is removed. |
| 64 | */ |
| 65 | void notificationRecvTopologyElementRemoved(TopologyElement topologyElement); |
| 66 | |
| 67 | /** |
| 68 | * Receive a notification that a Topology Element is updated. |
| 69 | * |
| 70 | * @param topologyElement the Topology Element that is updated. |
| 71 | */ |
| 72 | void notificationRecvTopologyElementUpdated(TopologyElement topologyElement); |
| 73 | } |