private class OFController.QP
extends java.lang.Thread
Modifier and Type | Field and Description |
---|---|
private MessageContext |
context |
private OFController |
controller |
private java.util.concurrent.TransferQueue<OFController.QI> |
queue |
private boolean |
quit |
Constructor and Description |
---|
OFController.QP(OFController ctrl)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
handleReadEvent(Connection conn,
java.util.List<org.openflow.protocol.OFMessage> msgs)
This function delivers a read event to the QP thread.
|
private boolean |
process(Connection conn,
java.util.List<org.openflow.protocol.OFMessage> msgs)
process a list of OFMessage objects received from the connection.
|
void |
run()
Read one read event from the queue, and process it.
|
void |
shutdown()
Shutdown this thread to stop.
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
private volatile boolean quit
private java.util.concurrent.TransferQueue<OFController.QI> queue
private MessageContext context
private OFController controller
public OFController.QP(OFController ctrl)
ctrl
- reference to the OFController objectpublic void shutdown()
public boolean handleReadEvent(Connection conn, java.util.List<org.openflow.protocol.OFMessage> msgs)
conn
- connection that the messages arrivedmsgs
- messages readpublic void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
private boolean process(Connection conn, java.util.List<org.openflow.protocol.OFMessage> msgs)
conn
- connection to switchmsgs
- messages received through the connectionrun()
.