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, yield
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
start
private volatile boolean quit
private ClientChannelWatcher[] watchers
public TcpServer(int watcher_num) throws java.io.IOException
java.io.IOException
public void registerController(IOFHandler controller)
IOFProtocolServer
IOFProtocolServer
instance.registerController
in interface IOFProtocolServer
public void deregisterConroller(IOFHandler controller)
IOFProtocolServer
IOFProtocolServer
instance.deregisterConroller
in interface IOFProtocolServer
public void shutdown()
IOFProtocolServer
shutdown
in interface IOFProtocolServer
public void wakeup()
IOFProtocolServer
IOFProtocolServer.start()
.wakeup
in interface IOFProtocolServer
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread