|
QJCC homepage | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread biz.chitec.quarterback.gjsa.server.ServerReader
Reader thread for one client connection. Used for connectionbound connections as seperate reader thread. Uses SocketLayer on the one side to communicate with the socket and ThreadInterface to ServerThreadBase on the other side to pass read stuff to
Field Summary | |
private boolean |
dostop
Flag to indicate that the reader should stop operation |
private long |
lastreadts
time stamp on last action on socket |
private Logger |
mess
target for logging messages |
private int |
myconnnr
connection number for log message identification |
private ServerThreadBase |
myhandler
the handler this reader belongs to |
private SocketLayer |
sly
The one keeping track of the socket |
private ThreadInterface |
ti
Interface to main handler |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
ServerReader(SocketLayer slyx,
ServerThreadBase sthx,
ThreadInterface tix)
|
Method Summary | |
void |
doStop()
Indicator to stop operation. |
long |
getLastReadTimeStamp()
|
void |
run()
Main run loop. |
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 |
private SocketLayer sly
private ThreadInterface ti
private Logger mess
private int myconnnr
private long lastreadts
private ServerThreadBase myhandler
private boolean dostop
Constructor Detail |
public ServerReader(SocketLayer slyx, ServerThreadBase sthx, ThreadInterface tix) throws java.io.IOException
Method Detail |
public long getLastReadTimeStamp()
public void doStop()
public void run()
|
QJCC homepage | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |