public interface SequencedPacketListener
PacketSequencer
.
Packet listeners are registered with the sequencer within a specific
role
. Within each role, listeners are ordered
by altitude; higher altitudes coming earlier in the sequence than
lower altitudes.
ControllerService.addPacketListener(com.hp.of.ctl.pkt.SequencedPacketListener, com.hp.of.ctl.pkt.PacketListenerRole, int)
,
ControllerService.removePacketListener(com.hp.of.ctl.pkt.SequencedPacketListener)
Modifier and Type | Method and Description |
---|---|
void |
errorEvent(ErrorEvent event)
This callback will be invoked if an unexpected error occurred during
the sequencer's attempt to send the Packet-Out message back
to the datapath via the controller, as a result of the packet listener
invoking
PacketOut.send() . |
void |
event(MessageContext context)
Callback invoked when a Packet-In event is to be processed.
|
void event(MessageContext context)
The supplied context contains the message event, and is used to capture any processing hints that might be required downstream. This includes possibly modifying a "work-in-progress" Packet-Out message attached to the context, or indicating to the sequencer that the packet should be sent or blocked.
Note that even after a listener indicates that the packet has been handled, the context is still passed down the chain of listeners; no further processing of the packet is possible, but downstream listeners will be able to observe the result of processing.
context
- the message contextvoid errorEvent(ErrorEvent event)
PacketOut.send()
.event
- the error eventCopyright © 2015. All Rights Reserved.