rl.common.command
Class CommandProcessor

java.lang.Object
  extended by java.lang.Thread
      extended by rl.common.command.CommandProcessor
All Implemented Interfaces:
java.lang.Runnable, ConnectionListener

public class CommandProcessor
extends java.lang.Thread
implements ConnectionListener


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
CommandProcessor()
           
 
Method Summary
 void addListener(CommandProcessorListener l)
           
 void dataReceived(Message m)
           
 void disconnected(Connection c)
           
 void registerHandler(int command, CommandHandler ch)
           
 void removeListener(CommandProcessorListener l)
           
 void run()
           
 void shutDown()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, 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
 

Constructor Detail

CommandProcessor

public CommandProcessor()
Method Detail

registerHandler

public void registerHandler(int command,
                            CommandHandler ch)

run

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

shutDown

public void shutDown()

addListener

public void addListener(CommandProcessorListener l)

removeListener

public void removeListener(CommandProcessorListener l)

dataReceived

public void dataReceived(Message m)
Specified by:
dataReceived in interface ConnectionListener

disconnected

public void disconnected(Connection c)
Specified by:
disconnected in interface ConnectionListener