Toshio Koide | 507c04a | 2013-06-12 16:39:47 -0700 | [diff] [blame] | 1 | package net.onrc.onos.util; |
| 2 | |
| 3 | import net.floodlightcontroller.core.INetMapTopologyObjects.IDeviceObject; |
| 4 | import net.floodlightcontroller.core.INetMapTopologyObjects.IFlowEntry; |
| 5 | import net.floodlightcontroller.core.INetMapTopologyObjects.IFlowPath; |
| 6 | import net.floodlightcontroller.core.INetMapTopologyObjects.IPortObject; |
| 7 | import net.floodlightcontroller.core.INetMapTopologyObjects.ISwitchObject; |
| 8 | import net.floodlightcontroller.util.FlowEntryId; |
| 9 | import net.floodlightcontroller.util.FlowId; |
| 10 | |
| 11 | public interface IDBOperation { |
Toshio Koide | 12004e6 | 2013-06-12 18:17:53 -0700 | [diff] [blame^] | 12 | public ISwitchObject newSwitch(String dpid); |
Toshio Koide | 507c04a | 2013-06-12 16:39:47 -0700 | [diff] [blame] | 13 | public ISwitchObject searchSwitch(String dpid); |
| 14 | public ISwitchObject searchActiveSwitch(String dpid); |
| 15 | public Iterable<ISwitchObject> getActiveSwitches(); |
| 16 | public Iterable<ISwitchObject> getAllSwitches(); |
| 17 | public Iterable<ISwitchObject> getInactiveSwitches(); |
Toshio Koide | 12004e6 | 2013-06-12 18:17:53 -0700 | [diff] [blame^] | 18 | public Iterable<IFlowEntry> getAllSwitchNotUpdatedFlowEntries(); |
| 19 | public void removeSwitch(ISwitchObject sw); |
| 20 | |
| 21 | public IPortObject newPort(Short portNumber); |
Toshio Koide | 507c04a | 2013-06-12 16:39:47 -0700 | [diff] [blame] | 22 | public IPortObject searchPort(String dpid, short number); |
Toshio Koide | 12004e6 | 2013-06-12 18:17:53 -0700 | [diff] [blame^] | 23 | public void removePort(IPortObject port); |
| 24 | |
| 25 | public IDeviceObject newDevice(); |
| 26 | public IDeviceObject searchDevice(String macAddr); |
Toshio Koide | 507c04a | 2013-06-12 16:39:47 -0700 | [diff] [blame] | 27 | public Iterable<IDeviceObject> getDevices(); |
Toshio Koide | 12004e6 | 2013-06-12 18:17:53 -0700 | [diff] [blame^] | 28 | public void removeDevice(IDeviceObject dev); |
| 29 | |
Toshio Koide | 507c04a | 2013-06-12 16:39:47 -0700 | [diff] [blame] | 30 | public IFlowPath newFlowPath(); |
Toshio Koide | 12004e6 | 2013-06-12 18:17:53 -0700 | [diff] [blame^] | 31 | public IFlowPath searchFlowPath(FlowId flowId); |
Toshio Koide | 507c04a | 2013-06-12 16:39:47 -0700 | [diff] [blame] | 32 | public IFlowPath getFlowPathByFlowEntry(IFlowEntry flowEntry); |
| 33 | public Iterable<IFlowPath> getAllFlowPaths(); |
Toshio Koide | 12004e6 | 2013-06-12 18:17:53 -0700 | [diff] [blame^] | 34 | public void removeFlowPath(IFlowPath flowPath); |
| 35 | |
Toshio Koide | 507c04a | 2013-06-12 16:39:47 -0700 | [diff] [blame] | 36 | public IFlowEntry newFlowEntry(); |
Toshio Koide | 12004e6 | 2013-06-12 18:17:53 -0700 | [diff] [blame^] | 37 | public IFlowEntry searchFlowEntry(FlowEntryId flowEntryId); |
Toshio Koide | 507c04a | 2013-06-12 16:39:47 -0700 | [diff] [blame] | 38 | public Iterable<IFlowEntry> getAllFlowEntries(); |
Toshio Koide | 12004e6 | 2013-06-12 18:17:53 -0700 | [diff] [blame^] | 39 | public void removeFlowEntry(IFlowEntry flowEntry); |
Toshio Koide | 507c04a | 2013-06-12 16:39:47 -0700 | [diff] [blame] | 40 | } |