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.
|
private boolean |
processFeaturesReply(Connection conn,
MessageContext context,
org.openflow.protocol.OFFeaturesReply m)
This function returns false when there is no switch object in 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, yieldprivate 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 - msgs - public void run()
run in interface java.lang.Runnablerun in class java.lang.Threadprivate boolean process(Connection conn, java.util.List<org.openflow.protocol.OFMessage> msgs)
conn - connection to switchmsgs - messages received through the connectionrun().private boolean processFeaturesReply(Connection conn, MessageContext context, org.openflow.protocol.OFFeaturesReply m)
conn - connection that the OFFeaturesReply object is receivedcontext - message context objectm - OFFeaturesReply object