protected class

TelnetAppender.SocketHandler

extends Thread
java.lang.Object
   ↳ java.lang.Thread
     ↳ org.apache.log4j.net.TelnetAppender.SocketHandler

Class Overview

The SocketHandler class is used to accept connections from clients. It is threaded so that clients can connect/disconnect asynchronously.

Summary

[Expand]
Inherited Constants
From class java.lang.Thread
Public Constructors
TelnetAppender.SocketHandler(int port)
Public Methods
void close()
make sure we close all network connections when this handler is destroyed.
void finalize()
void run()
Continually accepts client connections.
synchronized void send(String message)
sends a message to each of the clients in telnet-friendly output.
[Expand]
Inherited Methods
From class java.lang.Thread
From class java.lang.Object
From interface java.lang.Runnable

Public Constructors

public TelnetAppender.SocketHandler (int port)

Throws
IOException

Public Methods

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 synchronized void send (String message)

sends a message to each of the clients in telnet-friendly output.