public class ConnectionListener
extends java.lang.Thread
Constructor and Description |
---|
ConnectionListener(int port,
OLcServer parent,
boolean messageaudit)
Creates a connection listening to the given port
|
Modifier and Type | Method and Description |
---|---|
void |
reportThreadFinished(long id)
removes the thread from the catalog of threads maintained in this class after
the treatment is finished
|
void |
run() |
void |
sendShutdownToAllConnections()
sends a message to all connections not to accept further actions.
|
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
public ConnectionListener(int port, OLcServer parent, boolean messageaudit) throws java.io.IOException
port
- portparent
- parent servermessageaudit
- true if messages are auditedjava.io.IOException
- if any problem is encountered setting up the server
socket. Typically, this may be because a server is
already running on the same portpublic void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void sendShutdownToAllConnections()
public void reportThreadFinished(long id)
id
- id of the tream