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 | 909da3c | 2014-01-09 04:04:33 -0800 | [diff] [blame] | 4 | import net.onrc.onos.ofcontroller.util.Dpid; |
Pavlin Radoslavov | b750684 | 2013-10-29 17:46:54 -0700 | [diff] [blame] | 5 | import net.onrc.onos.ofcontroller.util.FlowEntry; |
Pavlin Radoslavov | 909da3c | 2014-01-09 04:04:33 -0800 | [diff] [blame] | 6 | import net.onrc.onos.ofcontroller.util.FlowEntryId; |
Pavlin Radoslavov | 2004fa0 | 2014-01-07 14:46:42 -0800 | [diff] [blame] | 7 | import net.onrc.onos.ofcontroller.util.FlowId; |
Pavlin Radoslavov | 6b79f2b | 2013-10-26 21:31:10 -0700 | [diff] [blame] | 8 | import net.onrc.onos.ofcontroller.util.FlowPath; |
| 9 | |
| 10 | /** |
Pavlin Radoslavov | 9a85902 | 2013-10-30 10:08:24 -0700 | [diff] [blame] | 11 | * Interface for providing Flow Event Handler Service to other modules. |
Pavlin Radoslavov | 6b79f2b | 2013-10-26 21:31:10 -0700 | [diff] [blame] | 12 | */ |
Pavlin Radoslavov | 9a85902 | 2013-10-30 10:08:24 -0700 | [diff] [blame] | 13 | public interface IFlowEventHandlerService { |
Pavlin Radoslavov | 6b79f2b | 2013-10-26 21:31:10 -0700 | [diff] [blame] | 14 | /** |
| 15 | * Receive a notification that a Flow is added. |
| 16 | * |
Pavlin Radoslavov | b750684 | 2013-10-29 17:46:54 -0700 | [diff] [blame] | 17 | * @param flowPath the Flow that is added. |
Pavlin Radoslavov | 6b79f2b | 2013-10-26 21:31:10 -0700 | [diff] [blame] | 18 | */ |
| 19 | void notificationRecvFlowAdded(FlowPath flowPath); |
| 20 | |
| 21 | /** |
| 22 | * Receive a notification that a Flow is removed. |
| 23 | * |
Pavlin Radoslavov | b750684 | 2013-10-29 17:46:54 -0700 | [diff] [blame] | 24 | * @param flowPath the Flow that is removed. |
Pavlin Radoslavov | 6b79f2b | 2013-10-26 21:31:10 -0700 | [diff] [blame] | 25 | */ |
| 26 | void notificationRecvFlowRemoved(FlowPath flowPath); |
| 27 | |
| 28 | /** |
| 29 | * Receive a notification that a Flow is updated. |
| 30 | * |
Pavlin Radoslavov | b750684 | 2013-10-29 17:46:54 -0700 | [diff] [blame] | 31 | * @param flowPath the Flow that is updated. |
Pavlin Radoslavov | 6b79f2b | 2013-10-26 21:31:10 -0700 | [diff] [blame] | 32 | */ |
| 33 | void notificationRecvFlowUpdated(FlowPath flowPath); |
| 34 | |
| 35 | /** |
Pavlin Radoslavov | b750684 | 2013-10-29 17:46:54 -0700 | [diff] [blame] | 36 | * Receive a notification that a FlowEntry is added. |
| 37 | * |
| 38 | * @param flowEntry the FlowEntry that is added. |
| 39 | */ |
| 40 | void notificationRecvFlowEntryAdded(FlowEntry flowEntry); |
| 41 | |
| 42 | /** |
| 43 | * Receive a notification that a FlowEntry is removed. |
| 44 | * |
| 45 | * @param flowEntry the FlowEntry that is removed. |
| 46 | */ |
| 47 | void notificationRecvFlowEntryRemoved(FlowEntry flowEntry); |
| 48 | |
| 49 | /** |
| 50 | * Receive a notification that a FlowEntry is updated. |
| 51 | * |
| 52 | * @param flowEntry the FlowEntry that is updated. |
| 53 | */ |
| 54 | void notificationRecvFlowEntryUpdated(FlowEntry flowEntry); |
| 55 | |
| 56 | /** |
Pavlin Radoslavov | 2004fa0 | 2014-01-07 14:46:42 -0800 | [diff] [blame] | 57 | * Receive a notification that a FlowId is added. |
| 58 | * |
| 59 | * @param flowId the FlowId that is added. |
Pavlin Radoslavov | 2194d11 | 2014-01-10 13:36:00 -0800 | [diff] [blame] | 60 | * @param dpid the Source Switch Dpid for the corresponding Flow. |
Pavlin Radoslavov | 2004fa0 | 2014-01-07 14:46:42 -0800 | [diff] [blame] | 61 | */ |
Pavlin Radoslavov | 2194d11 | 2014-01-10 13:36:00 -0800 | [diff] [blame] | 62 | void notificationRecvFlowIdAdded(FlowId flowId, Dpid dpid); |
Pavlin Radoslavov | 2004fa0 | 2014-01-07 14:46:42 -0800 | [diff] [blame] | 63 | |
| 64 | /** |
| 65 | * Receive a notification that a FlowId is removed. |
| 66 | * |
| 67 | * @param flowId the FlowId that is removed. |
Pavlin Radoslavov | 2194d11 | 2014-01-10 13:36:00 -0800 | [diff] [blame] | 68 | * @param dpid the Source Switch Dpid for the corresponding Flow. |
Pavlin Radoslavov | 2004fa0 | 2014-01-07 14:46:42 -0800 | [diff] [blame] | 69 | */ |
Pavlin Radoslavov | 2194d11 | 2014-01-10 13:36:00 -0800 | [diff] [blame] | 70 | void notificationRecvFlowIdRemoved(FlowId flowId, Dpid dpid); |
Pavlin Radoslavov | 2004fa0 | 2014-01-07 14:46:42 -0800 | [diff] [blame] | 71 | |
| 72 | /** |
| 73 | * Receive a notification that a FlowId is updated. |
| 74 | * |
| 75 | * @param flowId the FlowId that is updated. |
Pavlin Radoslavov | 2194d11 | 2014-01-10 13:36:00 -0800 | [diff] [blame] | 76 | * @param dpid the Source Switch Dpid for the corresponding Flow. |
Pavlin Radoslavov | 2004fa0 | 2014-01-07 14:46:42 -0800 | [diff] [blame] | 77 | */ |
Pavlin Radoslavov | 2194d11 | 2014-01-10 13:36:00 -0800 | [diff] [blame] | 78 | void notificationRecvFlowIdUpdated(FlowId flowId, Dpid dpid); |
Pavlin Radoslavov | 2004fa0 | 2014-01-07 14:46:42 -0800 | [diff] [blame] | 79 | |
| 80 | /** |
Pavlin Radoslavov | 909da3c | 2014-01-09 04:04:33 -0800 | [diff] [blame] | 81 | * Receive a notification that a FlowEntryId is added. |
| 82 | * |
| 83 | * @param flowEntryId the FlowEntryId that is added. |
| 84 | * @param dpid the Switch Dpid for the corresponding Flow Entry. |
| 85 | */ |
| 86 | void notificationRecvFlowEntryIdAdded(FlowEntryId flowEntryId, Dpid dpid); |
| 87 | |
| 88 | /** |
| 89 | * Receive a notification that a FlowEntryId is removed. |
| 90 | * |
| 91 | * @param flowEntryId the FlowEntryId that is removed. |
| 92 | * @param dpid the Switch Dpid for the corresponding Flow Entry. |
| 93 | */ |
| 94 | void notificationRecvFlowEntryIdRemoved(FlowEntryId flowEntryId, |
| 95 | Dpid dpid); |
| 96 | |
| 97 | /** |
| 98 | * Receive a notification that a FlowEntryId is updated. |
| 99 | * |
| 100 | * @param flowEntryId the FlowEntryId that is updated. |
| 101 | * @param dpid the Switch Dpid for the corresponding Flow Entry. |
| 102 | */ |
| 103 | void notificationRecvFlowEntryIdUpdated(FlowEntryId flowEntryId, |
| 104 | Dpid dpid); |
| 105 | |
| 106 | /** |
Pavlin Radoslavov | 6b79f2b | 2013-10-26 21:31:10 -0700 | [diff] [blame] | 107 | * Receive a notification that a Topology Element is added. |
| 108 | * |
| 109 | * @param topologyElement the Topology Element that is added. |
| 110 | */ |
| 111 | void notificationRecvTopologyElementAdded(TopologyElement topologyElement); |
| 112 | |
| 113 | /** |
| 114 | * Receive a notification that a Topology Element is removed. |
| 115 | * |
| 116 | * @param topologyElement the Topology Element that is removed. |
| 117 | */ |
| 118 | void notificationRecvTopologyElementRemoved(TopologyElement topologyElement); |
| 119 | |
| 120 | /** |
| 121 | * Receive a notification that a Topology Element is updated. |
| 122 | * |
| 123 | * @param topologyElement the Topology Element that is updated. |
| 124 | */ |
| 125 | void notificationRecvTopologyElementUpdated(TopologyElement topologyElement); |
| 126 | } |