|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdea.hc.jds.EchoProcessor
Title: Echo Processor
Description: Class for logging echoes from the Time Commander to the DB and optionally queuing up non echoes in a local buffer
Copyright: Copyright (c) 2005
Company: RMRR
@author David Abigt
@version 1.0
Field Summary |
Fields inherited from interface dea.common.IDebugLevels |
BASIC, DEBUG_ALL, ERROR, METH_DETAIL, METH_ENTER, METH_EXIT, METH_EXT, METH_GET, METH_SET, METH_VARS, SHOW_PASS |
Constructor Summary | |
EchoProcessor(TCPRead newTcpr)
get last known bit mapped values from DB and store pointer to TCPRead object |
Method Summary | |
static java.lang.String |
bmToInt(int cur,
int base,
int last)
There should be only one change per echo |
boolean |
decodeEcho(java.lang.String str)
Decode an echoed command. |
static java.lang.String |
decodeIO(char c)
|
java.lang.String |
getMsg()
Read the entire message queue back as a string and clear queue. |
boolean |
isQueueMsgs()
|
boolean |
isRunning()
|
static void |
main(java.lang.String[] args)
Can be used to log echos from a Time Commander but mainly for testing |
ReadQueueObject |
popQueueHead()
get first line from message queue synchronized on lock |
void |
run()
Thread entry point. |
void |
setQueueMsgs(boolean queueMsgs)
|
void |
setRunning(boolean running)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public EchoProcessor(TCPRead newTcpr)
newTcpr
- Method Detail |
public boolean isRunning()
public void setRunning(boolean running)
public boolean isQueueMsgs()
public void setQueueMsgs(boolean queueMsgs)
public java.lang.String getMsg()
public ReadQueueObject popQueueHead()
public void run()
run
in interface java.lang.Runnable
public boolean decodeEcho(java.lang.String str)
str
- public static java.lang.String decodeIO(char c)
public static java.lang.String bmToInt(int cur, int base, int last)
cur
- base
- last
-
public static void main(java.lang.String[] args)
args
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |