QJCC homepage

biz.chitec.quarterback.gjsa
Class LegacyServerConnector.Reader

java.lang.Object
  extended byjava.lang.Thread
      extended bybiz.chitec.quarterback.gjsa.LegacyServerConnector.Reader
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
LegacyServerConnector

static final class LegacyServerConnector.Reader
extends java.lang.Thread

reader thread for a server connector. Reading is always handled in a separate thread to avoid deadlock situations.

Author:
dh

Field Summary
private  boolean continueloop
           
private  int floodcount
           
private  boolean floodsleep
          internal flag if reader thread should wait
private  long floodstart
           
private  ThreadInterface freefloating
           
private  Logger mess
           
private  boolean objmode
           
private  java.io.ObjectInputStream ofromserver
           
private  boolean printerr
           
private  int readernum
           
private  LegacyServerConnector servconnmaster
           
private  java.io.BufferedReader sfromserver
           
private  boolean stopme
           
private  ThreadInterface synchronous
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
LegacyServerConnector.Reader(LegacyServerConnector sc, ThreadInterface synch, boolean objmodex)
          Constructor for the Reader object
 
Method Summary
 ThreadInterface getFreeFloatingInterface()
          Gets the freeFloatingInterface attribute of the Reader object
 void run()
          Main processing method for the Reader object
 void setFreeFloatingInterface(ThreadInterface ti)
          Sets the freeFloatingInterface attribute of the Reader object
 void setMessageLogger(Logger mx)
          Sets the messageLogger attribute of the Reader object
 void stopMe()
          Description of the Method
 
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

servconnmaster

private LegacyServerConnector servconnmaster

ofromserver

private java.io.ObjectInputStream ofromserver

sfromserver

private java.io.BufferedReader sfromserver

freefloating

private ThreadInterface freefloating

synchronous

private ThreadInterface synchronous

objmode

private boolean objmode

printerr

private boolean printerr

continueloop

private boolean continueloop

stopme

private boolean stopme

mess

private Logger mess

floodsleep

private boolean floodsleep
internal flag if reader thread should wait


floodstart

private long floodstart

floodcount

private int floodcount

readernum

private int readernum
Constructor Detail

LegacyServerConnector.Reader

public LegacyServerConnector.Reader(LegacyServerConnector sc,
                                    ThreadInterface synch,
                                    boolean objmodex)
                             throws java.io.IOException
Constructor for the Reader object

Parameters:
sc - Description of the Parameter
synch - Description of the Parameter
objmodex - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception
Method Detail

stopMe

public void stopMe()
Description of the Method


setMessageLogger

public void setMessageLogger(Logger mx)
Sets the messageLogger attribute of the Reader object

Parameters:
mx - The new messageLogger value

setFreeFloatingInterface

public void setFreeFloatingInterface(ThreadInterface ti)
Sets the freeFloatingInterface attribute of the Reader object

Parameters:
ti - The new freeFloatingInterface value

getFreeFloatingInterface

public ThreadInterface getFreeFloatingInterface()
Gets the freeFloatingInterface attribute of the Reader object

Returns:
The freeFloatingInterface value

run

public void run()
Main processing method for the Reader object


QJCC homepage