public class UnitBcReader extends java.lang.Thread implements AsynchBcReader, Debuggable
Manages a single backchannel input connection.
UnitBcReader listens on a backchannel and routs messages to either a service provider or a control handler, based on the first tag-value pair in the message.
| Modifier and Type | Field and Description |
|---|---|
protected SrvrChan |
bkchnl |
protected EvwCtrlHandler |
ctrlHandler |
protected java.lang.String |
ctrlTag |
static java.lang.String[] |
DEP_LIST
Class dependencies.
|
protected SrvcProvImp |
srvcProv |
protected static java.lang.String |
TAG_RQST_CTRL |
protected static java.lang.String |
TAG_RQST_RSRC |
protected static java.lang.String |
VALUE_CONNECT |
static java.lang.String |
VERSION
Class version.
|
IF_VERSIONIF_VERSION| Constructor and Description |
|---|
UnitBcReader(SrvrChan conn,
SrvcProvImp prov) |
| Modifier and Type | Method and Description |
|---|---|
java.io.PrintWriter |
getLogDest() |
boolean |
isDebugging()
Get debug state.
|
void |
processNewData(TvList dataRec) |
boolean |
requestStop() |
void |
run() |
void |
setCtrlHandler(EvwCtrlHandler handler,
java.lang.String ctrlRqstTag) |
void |
setDebugging(boolean debug)
Set or clear debugging
|
void |
setLogDest(java.io.PrintWriter logDest) |
void |
start() |
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, stop, stop, suspend, toString, yieldpublic static final java.lang.String VERSION
public static final java.lang.String[] DEP_LIST
protected static final java.lang.String TAG_RQST_CTRL
protected static final java.lang.String TAG_RQST_RSRC
protected static final java.lang.String VALUE_CONNECT
protected SrvrChan bkchnl
protected SrvcProvImp srvcProv
protected EvwCtrlHandler ctrlHandler
protected java.lang.String ctrlTag
public UnitBcReader(SrvrChan conn, SrvcProvImp prov)
public void setDebugging(boolean debug)
DebuggablesetDebugging in interface Debuggabledebug - If true, debugging is turned on,
otherwise, debugging is turned off.public boolean isDebugging()
DebuggableisDebugging in interface Debuggablepublic void setLogDest(java.io.PrintWriter logDest)
setLogDest in interface AsynchBcReaderpublic java.io.PrintWriter getLogDest()
getLogDest in interface AsynchBcReaderpublic void setCtrlHandler(EvwCtrlHandler handler, java.lang.String ctrlRqstTag)
public void start()
start in interface AsynchBcReaderstart in class java.lang.Threadpublic boolean requestStop()
requestStop in interface AsynchBcReaderpublic void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic void processNewData(TvList dataRec)
processNewData in interface AsynchBcReader