public interface SubComponentService
SubComponentListener
API defines callbacks that may be invoked for
datapath events and message events. It is up to the
SubComponentService
implementation to determine which events
received from the lower controller components should be forwarded to its
sub-component listeners.Modifier and Type | Method and Description |
---|---|
void |
addListener(SubComponentListener listener)
Adds the specified listener to the sub-component service.
|
void |
removeListener(SubComponentListener listener)
Removes the specified listener from the sub-component service.
|
void |
send(OpenflowMessage msg,
DataPathId dpid)
Sends the specified message to the specified datapath, via the
sub-component.
|
void addListener(SubComponentListener listener)
listener
- the listener to be addedNullPointerException
- if listener is nullvoid removeListener(SubComponentListener listener)
listener
- the listener to be removedNullPointerException
- if listener is nullvoid send(OpenflowMessage msg, DataPathId dpid) throws OpenflowException
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 mutableOpenflowException
- if there was a problem encoding or sending
the messageCopyright © 2015. All Rights Reserved.