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 | 2004fa0 | 2014-01-07 14:46:42 -0800 | [diff] [blame^] | 5 | import net.onrc.onos.ofcontroller.util.FlowId; |
Pavlin Radoslavov | 6b79f2b | 2013-10-26 21:31:10 -0700 | [diff] [blame] | 6 | import net.onrc.onos.ofcontroller.util.FlowPath; |
| 7 | |
| 8 | /** |
Pavlin Radoslavov | 9a85902 | 2013-10-30 10:08:24 -0700 | [diff] [blame] | 9 | * Interface for providing Flow Event Handler Service to other modules. |
Pavlin Radoslavov | 6b79f2b | 2013-10-26 21:31:10 -0700 | [diff] [blame] | 10 | */ |
Pavlin Radoslavov | 9a85902 | 2013-10-30 10:08:24 -0700 | [diff] [blame] | 11 | public interface IFlowEventHandlerService { |
Pavlin Radoslavov | 6b79f2b | 2013-10-26 21:31:10 -0700 | [diff] [blame] | 12 | /** |
| 13 | * Receive a notification that a Flow is added. |
| 14 | * |
Pavlin Radoslavov | b750684 | 2013-10-29 17:46:54 -0700 | [diff] [blame] | 15 | * @param flowPath the Flow that is added. |
Pavlin Radoslavov | 6b79f2b | 2013-10-26 21:31:10 -0700 | [diff] [blame] | 16 | */ |
| 17 | void notificationRecvFlowAdded(FlowPath flowPath); |
| 18 | |
| 19 | /** |
| 20 | * Receive a notification that a Flow is removed. |
| 21 | * |
Pavlin Radoslavov | b750684 | 2013-10-29 17:46:54 -0700 | [diff] [blame] | 22 | * @param flowPath the Flow that is removed. |
Pavlin Radoslavov | 6b79f2b | 2013-10-26 21:31:10 -0700 | [diff] [blame] | 23 | */ |
| 24 | void notificationRecvFlowRemoved(FlowPath flowPath); |
| 25 | |
| 26 | /** |
| 27 | * Receive a notification that a Flow is updated. |
| 28 | * |
Pavlin Radoslavov | b750684 | 2013-10-29 17:46:54 -0700 | [diff] [blame] | 29 | * @param flowPath the Flow that is updated. |
Pavlin Radoslavov | 6b79f2b | 2013-10-26 21:31:10 -0700 | [diff] [blame] | 30 | */ |
| 31 | void notificationRecvFlowUpdated(FlowPath flowPath); |
| 32 | |
| 33 | /** |
Pavlin Radoslavov | b750684 | 2013-10-29 17:46:54 -0700 | [diff] [blame] | 34 | * Receive a notification that a FlowEntry is added. |
| 35 | * |
| 36 | * @param flowEntry the FlowEntry that is added. |
| 37 | */ |
| 38 | void notificationRecvFlowEntryAdded(FlowEntry flowEntry); |
| 39 | |
| 40 | /** |
| 41 | * Receive a notification that a FlowEntry is removed. |
| 42 | * |
| 43 | * @param flowEntry the FlowEntry that is removed. |
| 44 | */ |
| 45 | void notificationRecvFlowEntryRemoved(FlowEntry flowEntry); |
| 46 | |
| 47 | /** |
| 48 | * Receive a notification that a FlowEntry is updated. |
| 49 | * |
| 50 | * @param flowEntry the FlowEntry that is updated. |
| 51 | */ |
| 52 | void notificationRecvFlowEntryUpdated(FlowEntry flowEntry); |
| 53 | |
| 54 | /** |
Pavlin Radoslavov | 2004fa0 | 2014-01-07 14:46:42 -0800 | [diff] [blame^] | 55 | * Receive a notification that a FlowId is added. |
| 56 | * |
| 57 | * @param flowId the FlowId that is added. |
| 58 | */ |
| 59 | void notificationRecvFlowIdAdded(FlowId flowId); |
| 60 | |
| 61 | /** |
| 62 | * Receive a notification that a FlowId is removed. |
| 63 | * |
| 64 | * @param flowId the FlowId that is removed. |
| 65 | */ |
| 66 | void notificationRecvFlowIdRemoved(FlowId flowId); |
| 67 | |
| 68 | /** |
| 69 | * Receive a notification that a FlowId is updated. |
| 70 | * |
| 71 | * @param flowId the FlowId that is updated. |
| 72 | */ |
| 73 | void notificationRecvFlowIdUpdated(FlowId flowId); |
| 74 | |
| 75 | /** |
Pavlin Radoslavov | 6b79f2b | 2013-10-26 21:31:10 -0700 | [diff] [blame] | 76 | * Receive a notification that a Topology Element is added. |
| 77 | * |
| 78 | * @param topologyElement the Topology Element that is added. |
| 79 | */ |
| 80 | void notificationRecvTopologyElementAdded(TopologyElement topologyElement); |
| 81 | |
| 82 | /** |
| 83 | * Receive a notification that a Topology Element is removed. |
| 84 | * |
| 85 | * @param topologyElement the Topology Element that is removed. |
| 86 | */ |
| 87 | void notificationRecvTopologyElementRemoved(TopologyElement topologyElement); |
| 88 | |
| 89 | /** |
| 90 | * Receive a notification that a Topology Element is updated. |
| 91 | * |
| 92 | * @param topologyElement the Topology Element that is updated. |
| 93 | */ |
| 94 | void notificationRecvTopologyElementUpdated(TopologyElement topologyElement); |
| 95 | } |