org.apache.log4j.net
Class TelnetAppender.SocketHandler
Thread
org.apache.log4j.net.TelnetAppender.SocketHandler
- TelnetAppender
protected class TelnetAppender.SocketHandler
extends Thread
The SocketHandler class is used to accept connections from
clients. It is threaded so that clients can connect/disconnect
asynchronously.
void | finalize() - make sure we close all network connections when this handler is destroyed.
|
void | run() - Continually accepts client connections.
|
void | send(String message) - sends a message to each of the clients in telnet-friendly output.
|
SocketHandler
public SocketHandler(int port)
throws IOException
finalize
public void finalize()
make sure we close all network connections when this handler is destroyed.
run
public void run()
Continually accepts client connections. Client connections
are refused when MAX_CONNECTIONS is reached.
send
public void send(String message)
sends a message to each of the clients in telnet-friendly output.
Copyright 2000-2005 Apache Software Foundation.