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); |
| 13 | public IDeviceObject searchDevice(GraphDBConnection conn, String macAddr); |
| 14 | public IDeviceObject newDevice(GraphDBConnection conn); |
| 15 | public void removeDevice(GraphDBConnection conn, IDeviceObject dev); |
| 16 | public IPortObject searchPort(GraphDBConnection conn, String dpid, short number); |
Pankaj Berde | ac1a8c3 | 2013-02-26 17:45:57 -0800 | [diff] [blame] | 17 | public Iterable<IDeviceObject> getDevices(GraphDBConnection conn); |
Pavlin Radoslavov | b6f5354 | 2013-03-01 16:02:14 -0800 | [diff] [blame] | 18 | public IFlowPath searchFlowPath(GraphDBConnection conn, FlowId flowId); |
| 19 | public IFlowPath newFlowPath(GraphDBConnection conn); |
| 20 | public void removeFlowPath(GraphDBConnection conn, IFlowPath flowPath); |
| 21 | public IFlowPath getFlowPathByFlowEntry(GraphDBConnection conn, |
| 22 | IFlowEntry flowEntry); |
Pavlin Radoslavov | 706df05 | 2013-03-06 10:49:07 -0800 | [diff] [blame] | 23 | public Iterable<IFlowPath> getAllFlowPaths(GraphDBConnection conn); |
Pavlin Radoslavov | b6f5354 | 2013-03-01 16:02:14 -0800 | [diff] [blame] | 24 | public IFlowEntry searchFlowEntry(GraphDBConnection conn, |
| 25 | FlowEntryId flowEntryId); |
| 26 | public IFlowEntry newFlowEntry(GraphDBConnection conn); |
| 27 | public void removeFlowEntry(GraphDBConnection conn, |
| 28 | IFlowEntry flowEntry); |
| 29 | public Iterable<IFlowEntry> getAllFlowEntries(GraphDBConnection conn); |
Pankaj Berde | da80957 | 2013-02-22 15:31:20 -0800 | [diff] [blame] | 30 | } |