Pankaj Berde | da80957 | 2013-02-22 15:31:20 -0800 | [diff] [blame] | 1 | package net.onrc.onos.util; |
| 2 | |
| 3 | import net.floodlightcontroller.core.INetMapTopologyObjects.IDeviceObject; |
Pavlin Radoslavov | b6f5354 | 2013-03-01 16:02:14 -0800 | [diff] [blame] | 4 | import net.floodlightcontroller.core.INetMapTopologyObjects.IFlowEntry; |
| 5 | import net.floodlightcontroller.core.INetMapTopologyObjects.IFlowPath; |
Pankaj Berde | da80957 | 2013-02-22 15:31:20 -0800 | [diff] [blame] | 6 | import net.floodlightcontroller.core.INetMapTopologyObjects.IPortObject; |
| 7 | import net.floodlightcontroller.core.INetMapTopologyObjects.ISwitchObject; |
Pavlin Radoslavov | b6f5354 | 2013-03-01 16:02:14 -0800 | [diff] [blame] | 8 | import net.floodlightcontroller.util.FlowEntryId; |
| 9 | import net.floodlightcontroller.util.FlowId; |
Pankaj Berde | da80957 | 2013-02-22 15:31:20 -0800 | [diff] [blame] | 10 | |
| 11 | public interface IDBUtils { |
| 12 | public ISwitchObject searchSwitch(GraphDBConnection conn, String dpid); |
Pavlin Radoslavov | f6fa7f0 | 2013-03-28 16:40:48 -0700 | [diff] [blame] | 13 | public ISwitchObject searchActiveSwitch(GraphDBConnection conn, String dpid); |
Pankaj Berde | 1519309 | 2013-03-21 17:30:14 -0700 | [diff] [blame] | 14 | public Iterable<ISwitchObject> getActiveSwitches(GraphDBConnection conn); |
| 15 | public Iterable<ISwitchObject> getAllSwitches(GraphDBConnection conn); |
| 16 | public Iterable<ISwitchObject> getInactiveSwitches(GraphDBConnection conn); |
| 17 | |
| 18 | |
Pankaj Berde | da80957 | 2013-02-22 15:31:20 -0800 | [diff] [blame] | 19 | public IDeviceObject searchDevice(GraphDBConnection conn, String macAddr); |
| 20 | public IDeviceObject newDevice(GraphDBConnection conn); |
| 21 | public void removeDevice(GraphDBConnection conn, IDeviceObject dev); |
| 22 | public IPortObject searchPort(GraphDBConnection conn, String dpid, short number); |
Pankaj Berde | ac1a8c3 | 2013-02-26 17:45:57 -0800 | [diff] [blame] | 23 | public Iterable<IDeviceObject> getDevices(GraphDBConnection conn); |
Pavlin Radoslavov | b6f5354 | 2013-03-01 16:02:14 -0800 | [diff] [blame] | 24 | public IFlowPath searchFlowPath(GraphDBConnection conn, FlowId flowId); |
| 25 | public IFlowPath newFlowPath(GraphDBConnection conn); |
| 26 | public void removeFlowPath(GraphDBConnection conn, IFlowPath flowPath); |
| 27 | public IFlowPath getFlowPathByFlowEntry(GraphDBConnection conn, |
| 28 | IFlowEntry flowEntry); |
Pavlin Radoslavov | 706df05 | 2013-03-06 10:49:07 -0800 | [diff] [blame] | 29 | public Iterable<IFlowPath> getAllFlowPaths(GraphDBConnection conn); |
Pavlin Radoslavov | b6f5354 | 2013-03-01 16:02:14 -0800 | [diff] [blame] | 30 | public IFlowEntry searchFlowEntry(GraphDBConnection conn, |
| 31 | FlowEntryId flowEntryId); |
| 32 | public IFlowEntry newFlowEntry(GraphDBConnection conn); |
| 33 | public void removeFlowEntry(GraphDBConnection conn, |
| 34 | IFlowEntry flowEntry); |
| 35 | public Iterable<IFlowEntry> getAllFlowEntries(GraphDBConnection conn); |
Pankaj Berde | 1519309 | 2013-03-21 17:30:14 -0700 | [diff] [blame] | 36 | public IPortObject newPort(GraphDBConnection conn); |
| 37 | ISwitchObject newSwitch(GraphDBConnection conn); |
| 38 | void removePort(GraphDBConnection conn, IPortObject port); |
| 39 | void removeSwitch(GraphDBConnection conn, ISwitchObject sw); |
Pankaj Berde | 5d50641 | 2013-04-23 15:03:02 -0700 | [diff] [blame] | 40 | Iterable<IFlowEntry> getAllSwitchNotUpdatedFlowEntries(GraphDBConnection conn); |
Pankaj Berde | da80957 | 2013-02-22 15:31:20 -0800 | [diff] [blame] | 41 | } |