|
iiitAccessServer 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--de.iiit.access.server.plugins.server.TcpServer
Implements a TCP/IP server for requesting the AccessServer
Nested Class Summary | |
class |
TcpServer.TcpHandler
Implements the handler for each established connection. |
Field Summary |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
TcpServer()
Creates a new instance of TcpServer |
Method Summary | |
void |
initialize(Configuration config)
Initializes the server |
void |
run()
The main method of the thread. |
void |
shutdown()
This method is called by the AccessServer when the background threads should stop because of a shutdown of the AccessServer itself. |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface de.iiit.access.server.api.ThreadPluginIf |
start |
Constructor Detail |
public TcpServer()
Method Detail |
public void initialize(Configuration config)
initialize
in interface AccessServerPluginIf
config
- the configuration of the server. Currently the only parameter is Port
which defines the port number to listen on for connections. Default is 1234
public void run()
run
in interface Runnable
run
in class Thread
public void shutdown()
shutdown
in interface ThreadPluginIf
|
iiitAccessServer 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |