Toshio Koide | a5611ce | 2014-08-22 15:16:51 -0700 | [diff] [blame] | 1 | package net.onrc.onos.core.flowmanager; |
| 2 | |
| 3 | import net.onrc.onos.api.flowmanager.FlowBatchId; |
| 4 | import net.onrc.onos.api.flowmanager.FlowBatchOperation; |
| 5 | import net.onrc.onos.api.flowmanager.FlowBatchState; |
| 6 | |
| 7 | interface FlowBatchMapEventListener { |
| 8 | /** |
| 9 | * Invoked when a {@link FlowBatchOperation} object is added. |
| 10 | * |
| 11 | * @param id the ID of the {@link FlowBatchOperation}. |
| 12 | * @param flowOp the {@link FlowBatchOperation} object. |
| 13 | */ |
| 14 | void flowBatchOperationAdded(FlowBatchId id, FlowBatchOperation flowOp); |
| 15 | |
| 16 | /** |
| 17 | * Invoked when a {@link FlowBatchOperation} object is removed. |
| 18 | * |
| 19 | * @param id the ID of the {@link FlowBatchOperation}. |
| 20 | */ |
| 21 | void flowBatchOperationRemoved(FlowBatchId id); |
| 22 | |
| 23 | /** |
| 24 | * Invoked when a {@link FlowBatchState} of a {@link FlowBatchOperation} |
| 25 | * object is changed. |
| 26 | * |
| 27 | * @param id the ID of the {@link FlowBatchOperation} |
| 28 | * @param oldState the old state of the {@link FlowBatchOperation} |
| 29 | * @param currentState the current state of the {@link FlowBatchOperation} |
| 30 | */ |
Toshio Koide | d6cbec3 | 2014-08-27 15:23:44 -0700 | [diff] [blame] | 31 | void flowBatchOperationStateChanged(FlowBatchId id, |
Toshio Koide | a5611ce | 2014-08-22 15:16:51 -0700 | [diff] [blame] | 32 | FlowBatchState oldState, FlowBatchState currentState); |
| 33 | |
| 34 | } |