net.larsan.urd.cmd
Class Acceptor

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--net.larsan.urd.cmd.Acceptor
All Implemented Interfaces:
java.lang.Runnable

public class Acceptor
extends java.lang.Thread

Acceptor class. Listens for new connections and queues them with the reader when they arrive.


Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Acceptor(java.lang.String address, int port)
           
 
Method Summary
 void init(ServerContext con)
           
 void run()
           
 void wakeup()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, 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
 

Constructor Detail

Acceptor

public Acceptor(java.lang.String address,
                int port)
         throws java.io.IOException
Method Detail

init

public void init(ServerContext con)
          throws java.io.IOException
java.io.IOException

wakeup

public void wakeup()

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread