Class GenericClient

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--GenericClient

public class GenericClient
extends java.lang.Thread


Field Summary
private static int clientNumber
           
protected  boolean finished
           
protected  java.io.InputStream in
           
protected  MessageOutput messageOut
           
protected  java.io.OutputStream out
           
protected  Queue queue
           
protected  java.util.Hashtable registry
           
 
Fields inherited from class java.lang.Thread
contextClassLoader, daemon, eetop, group, inheritedAccessControlContext, MAX_PRIORITY, MIN_PRIORITY, name, NORM_PRIORITY, priority, single_step, stillborn, stopThreadPermission, target, threadInitNumber, threadQ, values
 
Constructor Summary
GenericClient(java.lang.String host, int port, java.lang.String name)
           
 
Method Summary
protected  void closedown()
           
protected  void connect(java.lang.String host, int port)
           
protected  void demux()
           
 void deregister(java.lang.String label)
           
protected  void logon(java.lang.String name)
           
private static int nextClientNum()
           
 void register(java.lang.String label, Client client)
           
 void run()
           
 void shutdown()
           
 
Methods inherited from class java.lang.Thread
, activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, exit, getContextClassLoader, getName, getPriority, getThreadGroup, init, interrupt, interrupt0, interrupted, isAlive, isDaemon, isInterrupted, isInterrupted, join, join, join, nextThreadNum, registerNatives, resume, resume0, setContextClassLoader, setDaemon, setName, setPriority, setPriority0, sleep, sleep, start, stop, stop, stop0, suspend, suspend0, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

clientNumber

private static int clientNumber

queue

protected Queue queue

registry

protected java.util.Hashtable registry

messageOut

protected MessageOutput messageOut

in

protected java.io.InputStream in

out

protected java.io.OutputStream out

finished

protected boolean finished
Constructor Detail

GenericClient

public GenericClient(java.lang.String host,
                     int port,
                     java.lang.String name)
              throws java.io.IOException
Method Detail

nextClientNum

private static int nextClientNum()

connect

protected void connect(java.lang.String host,
                       int port)
                throws java.io.IOException

logon

protected void logon(java.lang.String name)
              throws java.io.IOException

shutdown

public void shutdown()
              throws java.io.IOException

run

public void run()
Overrides:
run in class java.lang.Thread

demux

protected void demux()
              throws java.io.IOException

closedown

protected void closedown()

register

public void register(java.lang.String label,
                     Client client)

deregister

public void deregister(java.lang.String label)