org.pilotix.server
Class ClientHandlerThread

java.lang.Object
  extended by java.lang.Thread
      extended by org.pilotix.server.ClientHandlerThread
All Implemented Interfaces:
java.lang.Runnable

public class ClientHandlerThread
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 DECONNECTED
           
static int LOGINING
           
static int LOOPING
           
static int READY
           
static int TOBEKILL
           
static int WANTTOLEAVE
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ClientHandlerThread(int theClientId, MessageHandler aMessageHandler)
           
 
Method Summary
 void endGame()
           
 MessageHandler getMessageHandler()
           
 ServerShip getShip()
           
 int getStatus()
           
 void run()
           
 void sendArea()
           
 void setStatus(int aStatus)
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, 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, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LOGINING

public static final int LOGINING
See Also:
Constant Field Values

READY

public static final int READY
See Also:
Constant Field Values

LOOPING

public static final int LOOPING
See Also:
Constant Field Values

WANTTOLEAVE

public static final int WANTTOLEAVE
See Also:
Constant Field Values

DECONNECTED

public static final int DECONNECTED
See Also:
Constant Field Values

TOBEKILL

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

ClientHandlerThread

public ClientHandlerThread(int theClientId,
                           MessageHandler aMessageHandler)
                    throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

run

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

sendArea

public void sendArea()
              throws java.lang.Exception
Throws:
java.lang.Exception

getShip

public ServerShip getShip()

getStatus

public int getStatus()

setStatus

public void setStatus(int aStatus)

endGame

public void endGame()

getMessageHandler

public MessageHandler getMessageHandler()


artefarita.com/pilotix Pilotix 2003-2013 - Stilisto : G.C.