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; |
| 5 | |
| 6 | import org.openflow.protocol.OFMessage; |
| 7 | |
| 8 | public interface IFlowPusherService extends IFloodlightService { |
| 9 | /** |
| 10 | * Add a message to the queue of a switch. |
| 11 | * @param sw |
| 12 | * @param msg |
| 13 | * @return |
| 14 | */ |
| 15 | void addMessage(long dpid, OFMessage msg); |
| 16 | |
| 17 | /** |
| 18 | * Suspend pushing message to a switch. |
| 19 | * @param sw |
| 20 | * @return true if success |
| 21 | */ |
| 22 | boolean suspend(long dpid); |
| 23 | |
| 24 | /** |
| 25 | * Resume pushing message to a switch. |
| 26 | * @param sw |
| 27 | * @return true if success |
| 28 | */ |
| 29 | boolean resume(long dpid); |
| 30 | |
| 31 | /** |
| 32 | * Get whether pushing of message is suspended or not. |
| 33 | * @param sw |
| 34 | * @return true if suspended |
| 35 | */ |
| 36 | boolean isSuspended(long dpid); |
| 37 | } |