blob: 345568fe87297dfb7c2db577c595071f2b1f7d10 [file] [log] [blame]
Toshio Koidea5611ce2014-08-22 15:16:51 -07001package net.onrc.onos.core.flowmanager;
2
3import net.onrc.onos.api.flowmanager.FlowBatchId;
4import net.onrc.onos.api.flowmanager.FlowBatchOperation;
5import net.onrc.onos.api.flowmanager.FlowBatchState;
6
7interface 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 Koided6cbec32014-08-27 15:23:44 -070031 void flowBatchOperationStateChanged(FlowBatchId id,
Toshio Koidea5611ce2014-08-22 15:16:51 -070032 FlowBatchState oldState, FlowBatchState currentState);
33
34}