Naoki Shiota | aea8858 | 2013-11-12 17:58:34 -0800 | [diff] [blame] | 1 | package net.onrc.onos.ofcontroller.flowprogrammer; |
Naoki Shiota | 8ee48d5 | 2013-11-11 15:51:17 -0800 | [diff] [blame] | 2 | |
| 3 | import net.floodlightcontroller.core.IOFSwitch; |
| 4 | import net.floodlightcontroller.core.module.IFloodlightService; |
Brian O'Connor | 8c166a7 | 2013-11-14 18:41:48 -0800 | [diff] [blame^] | 5 | import net.onrc.onos.ofcontroller.core.INetMapTopologyObjects.IFlowEntry; |
| 6 | import net.onrc.onos.ofcontroller.core.INetMapTopologyObjects.IFlowPath; |
| 7 | import net.onrc.onos.ofcontroller.util.FlowEntry; |
| 8 | import net.onrc.onos.ofcontroller.util.FlowPath; |
Naoki Shiota | 8ee48d5 | 2013-11-11 15:51:17 -0800 | [diff] [blame] | 9 | |
| 10 | import org.openflow.protocol.OFMessage; |
| 11 | |
| 12 | public interface IFlowPusherService extends IFloodlightService { |
| 13 | /** |
| 14 | * Add a message to the queue of a switch. |
| 15 | * @param sw |
| 16 | * @param msg |
| 17 | * @return |
| 18 | */ |
Brian O'Connor | 8c166a7 | 2013-11-14 18:41:48 -0800 | [diff] [blame^] | 19 | boolean add(IOFSwitch sw, OFMessage msg); |
| 20 | boolean add(IOFSwitch sw, FlowPath flowPath, FlowEntry flowEntry); |
| 21 | boolean add(IOFSwitch sw, IFlowPath flowObj, IFlowEntry flowEntryObj); |
Naoki Shiota | 8ee48d5 | 2013-11-11 15:51:17 -0800 | [diff] [blame] | 22 | |
| 23 | /** |
| 24 | * Suspend pushing message to a switch. |
| 25 | * @param sw |
| 26 | * @return true if success |
| 27 | */ |
Brian O'Connor | 8c166a7 | 2013-11-14 18:41:48 -0800 | [diff] [blame^] | 28 | boolean suspend(IOFSwitch sw); |
Naoki Shiota | 8ee48d5 | 2013-11-11 15:51:17 -0800 | [diff] [blame] | 29 | |
| 30 | /** |
| 31 | * Resume pushing message to a switch. |
| 32 | * @param sw |
| 33 | * @return true if success |
| 34 | */ |
Brian O'Connor | 8c166a7 | 2013-11-14 18:41:48 -0800 | [diff] [blame^] | 35 | boolean resume(IOFSwitch sw); |
Naoki Shiota | 8ee48d5 | 2013-11-11 15:51:17 -0800 | [diff] [blame] | 36 | |
| 37 | /** |
| 38 | * Get whether pushing of message is suspended or not. |
| 39 | * @param sw |
| 40 | * @return true if suspended |
| 41 | */ |
Brian O'Connor | 8c166a7 | 2013-11-14 18:41:48 -0800 | [diff] [blame^] | 42 | boolean isSuspended(IOFSwitch sw); |
Naoki Shiota | 8ee48d5 | 2013-11-11 15:51:17 -0800 | [diff] [blame] | 43 | } |