blob: 830d47f8fa2106f892ea4b91af2c20a49b0e8f84 [file] [log] [blame]
Naoki Shiota8ee48d52013-11-11 15:51:17 -08001package net.onrc.onos.ofcontroller.flowmanager;
2
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}