public class DataPathEventListener extends Object implements DataPathListener
DataPathListener
for handling datapath
lifecycle events in hybrid mode.Constructor and Description |
---|
DataPathEventListener(ControllerService cs,
DataPathEventActionBundle actionBundle) |
Modifier and Type | Method and Description |
---|---|
void |
event(DataPathEvent event)
This callback is invoked by the listener's dedicated queue-reader
thread every time it pulls an event off the queue.
|
void |
queueEvent(QueueEvent event)
This callback is invoked by the controller if the listener's
event queue is nearing, or has exceeded its capacity, or if the
queue has been drained below the associated "reset" levels.
|
void |
registerForDataPathEvents()
Register this listener for datapath events
|
void |
unregisterForDataPathEvents()
Unregister this listener for datapath events
|
public DataPathEventListener(ControllerService cs, DataPathEventActionBundle actionBundle)
cs
- The controller serviceactionBundle
- The DataPathEventActionBundle to use for processing
datapath eventspublic void event(DataPathEvent event)
OpenflowListener
event
in interface OpenflowListener<DataPathEvent>
event
- the eventpublic void queueEvent(QueueEvent event)
OpenflowListener
queueEvent
in interface OpenflowListener<DataPathEvent>
event
- the queue eventpublic void registerForDataPathEvents()
public void unregisterForDataPathEvents()
Copyright © 2015. All Rights Reserved.