Kieker 1.2

kieker.monitoring.writer.util.async
Class AbstractWorkerThread

java.lang.Object
  extended by java.lang.Thread
      extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
AbstractWorkerThread()
           
 
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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractWorkerThread

public AbstractWorkerThread()
Method Detail

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.


Kieker 1.2

Copyright 2010 the Kieker Project, http://kieker.sourceforge.net