server
Class Server

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--server.Server
All Implemented Interfaces:
java.lang.Runnable

public class Server
extends java.lang.Thread

This is the server that listens to incoming connections and will spawn of new FishTankClientManager threads for each new connection

Author:
Ben Litchfield

Field Summary
 java.lang.Thread[] tArray
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Server()
          constructor to Server
 
Method Summary
 int clientCount()
          this will return the count of clients
 void quit()
          this will quit the server and all the threads that it has spawned
 void registerWithMasterServer()
          this will register itself with the Master Server
 void relocateFish(Fish mFish)
          this will send a fish to the appropriate location
 void run()
          this will start the thread running
 
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
 

Field Detail

tArray

public java.lang.Thread[] tArray
Constructor Detail

Server

public Server()
constructor to Server

Method Detail

run

public void run()
this will start the thread running

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

clientCount

public int clientCount()
this will return the count of clients

Returns:
the count of clients

registerWithMasterServer

public void registerWithMasterServer()
this will register itself with the Master Server


quit

public void quit()
this will quit the server and all the threads that it has spawned


relocateFish

public void relocateFish(Fish mFish)
this will send a fish to the appropriate location