jas.net
Class SimServer

java.lang.Object
  extended by java.lang.Thread
      extended by jas.net.SimServer
All Implemented Interfaces:
java.lang.Runnable

public class SimServer
extends java.lang.Thread


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
static int SERVER_DEFAULT_TCP_PORT
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
SimServer()
           
SimServer(int portNumber)
           
 
Method Summary
 java.util.List getActiveConnections()
           
 boolean isRunning()
           
 void run()
           
 void shutdownAllConnections()
           
 void shutdownConnection(int id)
           
 void shutdownServer()
           
 void startServer()
           
 void stopServer()
           
 
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
 

Field Detail

SERVER_DEFAULT_TCP_PORT

public static final int SERVER_DEFAULT_TCP_PORT
See Also:
Constant Field Values
Constructor Detail

SimServer

public SimServer()

SimServer

public SimServer(int portNumber)
Method Detail

getActiveConnections

public java.util.List getActiveConnections()

isRunning

public boolean isRunning()

run

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

shutdownAllConnections

public void shutdownAllConnections()

shutdownConnection

public void shutdownConnection(int id)

shutdownServer

public void shutdownServer()

startServer

public void startServer()

stopServer

public void stopServer()