fmrisc.Communication
Class CommandServer

java.lang.Object
  extended by java.lang.Thread
      extended by fmrisc.Communication.CommandServer
All Implemented Interfaces:
java.lang.Runnable

public final class CommandServer
extends java.lang.Thread

Server handling commands received as HTTP requests.


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
CommandServer()
          Creates a new command server (which is already started).
 
Method Summary
 int getPortNumber()
          Get port number on which server is listening.
 void run()
          Server listens on socket and executes received commands.
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CommandServer

public CommandServer()
Creates a new command server (which is already started).

Method Detail

getPortNumber

public int getPortNumber()
Get port number on which server is listening.

Returns:
the port number.

run

public void run()
Server listens on socket and executes received commands.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread