blob: e9d66c34b927eaec96a36426a68bbf695ef68208 [file] [log] [blame]
Toshio Koideb8cea262014-08-12 18:45:46 -07001package net.onrc.onos.core.flowmanager;
2
Toshio Koidefc5acc72014-08-12 18:45:46 -07003import net.onrc.onos.api.flowmanager.FlowBatchHandle;
4import net.onrc.onos.api.flowmanager.FlowBatchId;
5import net.onrc.onos.api.flowmanager.FlowBatchOperation;
6import net.onrc.onos.api.flowmanager.FlowBatchState;
7
Toshio Koideb8cea262014-08-12 18:45:46 -07008/**
9 * Manages the set of flow operations throughout the ONOS instances.
10 */
11public class FlowOperationMap {
Toshio Koidefc5acc72014-08-12 18:45:46 -070012 public FlowBatchHandle putOperation(FlowBatchOperation ops) {
13 FlowBatchId id = getUniqueBatchOperationId();
14 if (id == null) {
15 return null;
16 }
17 if (putBatchOperation(id, ops)) {
18 return null;
19 }
20
21 return new FlowBatchHandle(this, id);
22 }
23
24 public void setState(long id, FlowBatchState state) {
25 // TODO implement it
26 }
27
28 public FlowBatchOperation getOperation(long id) {
29 // TODO implement it
30 return null;
31 }
32
33 public FlowBatchState getState(FlowBatchId id) {
34 // TODO implement it
35 return null;
36 }
37
38 // ====== private methods
39
40 private FlowBatchId getUniqueBatchOperationId() {
41 // TODO implement it
42 return null;
43 }
44
45 private boolean putBatchOperation(FlowBatchId id, FlowBatchOperation ops) {
46 // TODO implement it
47 return false;
48 }
Toshio Koideb8cea262014-08-12 18:45:46 -070049}