public interface MessageSender
Modifier and Type | Method and Description |
---|---|
List<MessageFuture> |
send(List<OpenflowMessage> msgs,
DataPathId dpid)
Sends the specified list of messages (in order) to the specified
datapath.
|
MessageFuture |
send(OpenflowMessage msg,
DataPathId dpid)
Sends the specified message to the specified datapath.
|
MessageFuture send(OpenflowMessage msg, DataPathId dpid) throws OpenflowException
Important Note:
The sending of FlowMod messages via this method is disallowed;
use ControllerService.sendFlowMod(com.hp.of.lib.msg.OfmFlowMod, com.hp.of.lib.dt.DataPathId)
instead.
msg
- the OpenFlow message to senddpid
- the OpenFlow datapath to which the message is to be sentNullPointerException
- if either parameter is nullIllegalArgumentException
- if msg is mutable, or if it is a
FlowModOpenflowException
- if there was a problem encoding or sending
the messageList<MessageFuture> send(List<OpenflowMessage> msgs, DataPathId dpid) throws OpenflowException
Important Note:
The sending of FlowMod messages via this method is disallowed;
use ControllerService.sendFlowMod(com.hp.of.lib.msg.OfmFlowMod, com.hp.of.lib.dt.DataPathId)
instead.
msgs
- the OpenFlow messages to senddpid
- the OpenFlow datapath to which the messages are to be sentNullPointerException
- if either parameter is null, or if any
element in the list is nullIllegalArgumentException
- if any message in the list is mutable,
or is a FlowModOpenflowException
- if there was a problem encoding or sending
the messagesCopyright © 2015. All Rights Reserved.