Package net.sf.colossus.server
Class FileServerThread
- java.lang.Object
-
- java.lang.Thread
-
- net.sf.colossus.server.FileServerThread
-
- All Implemented Interfaces:
java.lang.Runnable
final class FileServerThread extends java.lang.ThreadThread handling the distribution of files to clients.- Author:
- Romain Dolbeau
-
-
Field Summary
Fields Modifier and Type Field Description private java.net.ServerSocketfileServerprivate booleankeepGoingOnprivate static java.util.logging.LoggerLOGGERprivate intportprivate static java.lang.Stringseparatorprivate Serverserver
-
Constructor Summary
Constructors Constructor Description FileServerThread(Server server, int port)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidmakeDummyConnection()voidrun()voidstopGoingOn()-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Field Detail
-
LOGGER
private static final java.util.logging.Logger LOGGER
-
fileServer
private java.net.ServerSocket fileServer
-
separator
private static final java.lang.String separator
- See Also:
- Constant Field Values
-
server
private final Server server
-
port
private final int port
-
keepGoingOn
private boolean keepGoingOn
-
-
Constructor Detail
-
FileServerThread
FileServerThread(Server server, int port)
-
-