public final class TcpServer extends java.lang.Thread implements IOFProtocolServer
| Modifier and Type | Field and Description |
|---|---|
private boolean |
quit |
private ClientChannelWatcher[] |
watchers |
| Constructor and Description |
|---|
TcpServer(int watcher_num) |
| Modifier and Type | Method and Description |
|---|---|
void |
deregisterConroller(IOFHandler controller)
deregister controller from the
IOFProtocolServer instance. |
void |
registerController(IOFHandler controller)
register controller to the
IOFProtocolServer instance. |
void |
run() |
void |
shutdown()
shutdown the IOFProtocolServer operation.
|
void |
wakeup()
wake up the IOFProtocolServer from its suspended status.
|
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, yieldequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitstartprivate volatile boolean quit
private ClientChannelWatcher[] watchers
public TcpServer(int watcher_num)
throws java.io.IOException
java.io.IOExceptionpublic void registerController(IOFHandler controller)
IOFProtocolServerIOFProtocolServer instance.registerController in interface IOFProtocolServerpublic void deregisterConroller(IOFHandler controller)
IOFProtocolServerIOFProtocolServer instance.deregisterConroller in interface IOFProtocolServerpublic void shutdown()
IOFProtocolServershutdown in interface IOFProtocolServerpublic void wakeup()
IOFProtocolServerIOFProtocolServer.start().wakeup in interface IOFProtocolServerpublic void run()
run in interface java.lang.Runnablerun in class java.lang.Thread