java.lang.Object
java.lang.Thread
iiuf.log.Client
- All Implemented Interfaces:
- java.lang.Runnable
- public class Client
- extends java.lang.Thread
Log client implementation.
Set the "log.host" property to set the host where the server is running (default is "localhost").
Set the "log.port" property to set the tcp port used for logging (default is 7659).
Set the "log.qsize" property to limit message buffering on the client side (default is 100, use -1 for unlimited buffering).
(c) 2000, 2001, IIUF, DIUF
- Version:
- $Name: $ $Revision: 1.1 $
| Nested classes inherited from class java.lang.Thread |
java.lang.Thread.UncaughtExceptionHandler |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, 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 |
PORT
public static int PORT
out
java.io.ObjectOutputStream out
server
java.net.InetAddress server
port
int port
client
static Client client
queue
java.util.LinkedList queue
MAX_QSIZE
int MAX_QSIZE
Client
public Client()
Client
public Client(java.net.InetAddress server_,
int port_)
getHost
private static java.net.InetAddress getHost()
getPort
private static int getPort()
log
public void log(int priority,
java.lang.String message,
java.lang.Throwable exception)
log
void log(LogMessage m)
run
public void run()
- Description copied from class:
java.lang.Thread
- The method of Thread that will be run if there is no Runnable object
associated with the Thread. Thread's implementation does nothing at all.
connect
private void connect()
main
public static void main(java.lang.String[] argv)