Save This Page
Home » slf4j-1.5.5 » org.apache » log4j » net » [javadoc | source]
org.apache.log4j.net
protected class: TelnetAppender.SocketHandler [javadoc | source]
java.lang.Object
   java.lang.Thread
      org.apache.log4j.net.TelnetAppender$SocketHandler

All Implemented Interfaces:
    Runnable

The SocketHandler class is used to accept connections from clients. It is threaded so that clients can connect/disconnect asynchronously.
Fields inherited from java.lang.Thread:
MIN_PRIORITY,  NORM_PRIORITY,  MAX_PRIORITY
Constructor:
 public SocketHandler(int port) throws IOException 
Method from org.apache.log4j.net.TelnetAppender$SocketHandler Summary:
close,   finalize,   run,   send
Methods from java.lang.Thread:
activeCount,   checkAccess,   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,   run,   setContextClassLoader,   setDaemon,   setDefaultUncaughtExceptionHandler,   setName,   setPriority,   setUncaughtExceptionHandler,   sleep,   sleep,   start,   stop,   stop,   suspend,   toString,   yield
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.log4j.net.TelnetAppender$SocketHandler Detail:
 public  void close() 
    make sure we close all network connections when this handler is destroyed.
 public  void finalize() 
 public  void run() 
    Continually accepts client connections. Client connections are refused when MAX_CONNECTIONS is reached.
 public  void send(String message) 
    sends a message to each of the clients in telnet-friendly output.