public class SimpleSocketServer extends Thread
SocketNode based server.
<b>Usage:</b> java ch.qos.logback.classic.net.SimpleSocketServer port configFile
where port is a port number where the server listens and
configFile is an xml configuration file fed to
JoranConfigurator.
Thread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
SimpleSocketServer(LoggerContext lc,
int port) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static void |
configureLC(LoggerContext lc,
String configFile) |
CountDownLatch |
getLatch()
Used for testing purposes
|
boolean |
isClosed() |
static void |
main(String[] argv) |
void |
run() |
void |
socketNodeClosing(SocketNode sn) |
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, yieldpublic SimpleSocketServer(LoggerContext lc, int port)
public CountDownLatch getLatch()
public boolean isClosed()
public void close()
public void socketNodeClosing(SocketNode sn)
public static void configureLC(LoggerContext lc, String configFile) throws JoranException
JoranExceptionCopyright © 2005-2013 QOS.ch. All Rights Reserved.