|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--java.lang.Thread
|
+--server.Server
This is the server that listens to incoming connections and will spawn of new FishTankClientManager threads for each new connection
| 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 |
public java.lang.Thread[] tArray
| Constructor Detail |
public Server()
| Method Detail |
public void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic int clientCount()
public void registerWithMasterServer()
public void quit()
public void relocateFish(Fish mFish)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||