Thread.State, Thread.UncaughtExceptionHandler
Modifier and Type | Field and Description |
---|---|
LogConfig |
config
The log configuration.
|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
LogServer(LogConfig conf)
Constructs the server.
|
Modifier and Type | Method and Description |
---|---|
void |
listen()
Causes the server to listen to incoming requests.
|
void |
run()
The run method starts the server.
|
void |
shutdown()
This method stops the server.
|
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 LogConfig config
public LogServer(LogConfig conf) throws IOException
conf
- The singleton config objectIOException
- The log server cannot bind socket