blob: 146f19cb3c7337f8a055c132de33a8dd3f701382 [file] [log] [blame]
Naoki Shiotaaea88582013-11-12 17:58:34 -08001package net.onrc.onos.ofcontroller.flowprogrammer;
Naoki Shiota8ee48d52013-11-11 15:51:17 -08002
3import net.floodlightcontroller.core.IOFSwitch;
4import net.floodlightcontroller.core.module.IFloodlightService;
5
6import org.openflow.protocol.OFMessage;
7
8public 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}