|
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.util.StoppableThread biz.chitec.quarterback.util.LoggingReceiverUpdater
Updates logging receivers. Heart is the updater thread, which must be implemented by the non-abstract implementations of this object.
Nested Class Summary | |
class |
LoggingReceiverUpdater.KeeperInterfaceContent
Content record for the keeperinterface. |
Nested classes inherited from class biz.chitec.quarterback.util.StoppableThread |
StoppableThread.StopException |
Field Summary | |
protected UpdateableLogger |
mylogger
The logger. |
protected LoggingReceiver |
myreceiver
The receiver. |
protected boolean |
stopupdate
Flag to stop the update (without stopping delayed sending) |
protected ThreadInterface |
ti
The storage for delayed data. |
Fields inherited from class biz.chitec.quarterback.util.StoppableThread |
shouldbestopped |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
LoggingReceiverUpdater()
Initiates the object without receiver and logger. |
|
LoggingReceiverUpdater(UpdateableLogger myloggerx,
LoggingReceiver myreceiverx)
Initiates the object complete with receiver and logger. |
Method Summary | |
void |
cancelUpdate()
Cancels the update. |
void |
run()
Main method of the updater's thread. |
abstract void |
runUpdate()
Implements the actual update. |
void |
sendDelayed()
Empties the storage for delayed sending. |
protected void |
sendToReceiver(java.lang.Object o)
Send logging data to receiver. |
void |
setLogger(UpdateableLogger ulx)
Sets the logger. |
void |
setReceiver(LoggingReceiver lrx)
Sets the receiver. |
void |
startUpdate()
Start the update. |
void |
stopUpdate()
Stop the update. |
void |
storeForDelayedSending(java.lang.Object o,
long ts,
int seqnr)
Stores one element of data to be sent delayed. |
Methods inherited from class biz.chitec.quarterback.util.StoppableThread |
shouldBeStopped, stopGracefully |
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 |
protected UpdateableLogger mylogger
protected LoggingReceiver myreceiver
protected ThreadInterface ti
protected boolean stopupdate
Constructor Detail |
public LoggingReceiverUpdater()
public LoggingReceiverUpdater(UpdateableLogger myloggerx, LoggingReceiver myreceiverx)
Method Detail |
public void setLogger(UpdateableLogger ulx)
public void setReceiver(LoggingReceiver lrx)
public void storeForDelayedSending(java.lang.Object o, long ts, int seqnr)
public void sendDelayed()
public void startUpdate()
public void run()
public void stopUpdate()
public void cancelUpdate()
protected void sendToReceiver(java.lang.Object o)
public abstract void runUpdate()
|
QJCC homepage | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |