ch.qos.logback.classic.net
Class SimpleSocketServer
java.lang.Object
java.lang.Thread
ch.qos.logback.classic.net.SimpleSocketServer
- All Implemented Interfaces:
- Runnable
public class SimpleSocketServer
- extends Thread
A simple 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
.
- Since:
- 0.8.4
- Author:
- Ceki Gülcü, Sébastien Pennec
Methods inherited from class java.lang.Thread |
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 |
SimpleSocketServer
public SimpleSocketServer(LoggerContext lc,
int port)
main
public static void main(String[] argv)
throws Exception
- Throws:
Exception
run
public void run()
- Specified by:
run
in interface Runnable
- Overrides:
run
in class Thread
isClosed
public boolean isClosed()
close
public void close()
socketNodeClosing
public void socketNodeClosing(SocketNode sn)
configureLC
public static void configureLC(LoggerContext lc,
String configFile)
throws JoranException
- Throws:
JoranException
Copyright © 2005-2012 QOS.ch. All Rights Reserved.