Class FileServerThread
java.lang.Object
java.lang.Thread
net.sf.colossus.server.FileServerThread
- All Implemented Interfaces:
Runnable
Thread handling the distribution of files to clients.
- Author:
- Romain Dolbeau
-
Nested Class Summary
Nested classes/interfaces inherited from class Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ServerSocketprivate booleanprivate static final Loggerprivate final intprivate static final Stringprivate final ServerFields inherited from class Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Thread
activeCount, checkAccess, clone, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, threadId, toString, yield
-
Field Details
-
LOGGER
-
fileServer
-
separator
- See Also:
-
server
-
port
private final int port -
keepGoingOn
private boolean keepGoingOn
-
-
Constructor Details
-
FileServerThread
FileServerThread(Server server, int port)
-
-
Method Details
-
stopGoingOn
public void stopGoingOn() -
makeDummyConnection
private void makeDummyConnection() -
run
-