kieker.monitoring.writer.util.async
Class AbstractWorkerThread
java.lang.Object
java.lang.Thread
kieker.monitoring.writer.util.async.AbstractWorkerThread
- All Implemented Interfaces:
- Runnable
- Direct Known Subclasses:
- DbWriterThread, FsWriterThread, JMSWriterThread
public abstract class AbstractWorkerThread
- extends Thread
- Author:
- Andre van Hoorn
Method Summary |
abstract void |
initShutdown()
Notifies the worker that the system shutdown process is initiated and that it should finish soon. |
abstract boolean |
isFinished()
initShutdown has to be called before isFinished will result in true. |
boolean |
isWriteRecordTypeIds()
|
void |
setWriteRecordTypeIds(boolean writeRecordTypeIds)
|
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, 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, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
AbstractWorkerThread
public AbstractWorkerThread()
isWriteRecordTypeIds
public boolean isWriteRecordTypeIds()
setWriteRecordTypeIds
public void setWriteRecordTypeIds(boolean writeRecordTypeIds)
isFinished
public abstract boolean isFinished()
- initShutdown has to be called before isFinished will result in true.
IsFinished == true means that the worker does not have additional jobs in it's queue
and won't accept new jobs.
initShutdown
public abstract void initShutdown()
- Notifies the worker that the system shutdown process is initiated and that it should finish soon.
After a while, isFinished should result in true, if system can halt.
Copyright 2010 the Kieker Project, http://kieker.sourceforge.net>