blob: 48d5946b7a6aaac7456ffcb4c194203a071355e3 [file] [log] [blame]
Pankaj Berdeda809572013-02-22 15:31:20 -08001package net.onrc.onos.util;
2
3import net.floodlightcontroller.core.INetMapTopologyObjects.IDeviceObject;
Pavlin Radoslavovb6f53542013-03-01 16:02:14 -08004import net.floodlightcontroller.core.INetMapTopologyObjects.IFlowEntry;
5import net.floodlightcontroller.core.INetMapTopologyObjects.IFlowPath;
Pankaj Berdeda809572013-02-22 15:31:20 -08006import net.floodlightcontroller.core.INetMapTopologyObjects.IPortObject;
7import net.floodlightcontroller.core.INetMapTopologyObjects.ISwitchObject;
Pavlin Radoslavovb6f53542013-03-01 16:02:14 -08008import net.floodlightcontroller.util.FlowEntryId;
9import net.floodlightcontroller.util.FlowId;
Pankaj Berdeda809572013-02-22 15:31:20 -080010
11public 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 Berdeac1a8c32013-02-26 17:45:57 -080017 public Iterable<IDeviceObject> getDevices(GraphDBConnection conn);
Pavlin Radoslavovb6f53542013-03-01 16:02:14 -080018 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 Radoslavov706df052013-03-06 10:49:07 -080023 public Iterable<IFlowPath> getAllFlowPaths(GraphDBConnection conn);
Pavlin Radoslavovb6f53542013-03-01 16:02:14 -080024 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 Berdeda809572013-02-22 15:31:20 -080030}