Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

iiuf.log
Class Client  view Client download Client.java

java.lang.Object
  extended byjava.lang.Thread
      extended byiiuf.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 Class Summary
(package private) static class Client.ErrorStream
           
(package private) static class Client.State
           
(package private) static class Client.StdOutStream
           
 
Nested classes inherited from class java.lang.Thread
java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
(package private) static Client client
           
(package private)  int MAX_QSIZE
           
(package private)  java.io.ObjectOutputStream out
           
(package private)  int port
           
static int PORT
           
(package private)  java.util.LinkedList queue
           
(package private)  java.net.InetAddress server
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Client()
           
Client(java.net.InetAddress server_, int port_)
           
 
Method Summary
private  void connect()
           
private static java.net.InetAddress getHost()
           
private static int getPort()
           
 void log(int priority, java.lang.String message, java.lang.Throwable exception)
           
(package private)  void log(LogMessage m)
           
static void main(java.lang.String[] argv)
           
 void run()
          The method of Thread that will be run if there is no Runnable object associated with the Thread.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

Client

public Client()

Client

public Client(java.net.InetAddress server_,
              int port_)
Method Detail

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)