Kieker 1.2

kieker.monitoring.writer.database
Class DbWriterThread

java.lang.Object
  extended by java.lang.Thread
      extended by kieker.monitoring.writer.util.async.AbstractWorkerThread
          extended by kieker.monitoring.writer.database.DbWriterThread
All Implemented Interfaces:
Runnable

public class DbWriterThread
extends AbstractWorkerThread

Author:
Matthias Rohr

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
DbWriterThread(Connection initializedConnection, BlockingQueue<IMonitoringRecord> writeQueue, String statementtext)
           
 
Method Summary
 void initShutdown()
          May be called more often than required... but that doesn't harm
 boolean isFinished()
          initShutdown has to be called before isFinished will result in true.
 void run()
           
 
Methods inherited from class kieker.monitoring.writer.util.async.AbstractWorkerThread
isWriteRecordTypeIds, setWriteRecordTypeIds
 
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, 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

DbWriterThread

public DbWriterThread(Connection initializedConnection,
                      BlockingQueue<IMonitoringRecord> writeQueue,
                      String statementtext)
Method Detail

initShutdown

public void initShutdown()
May be called more often than required... but that doesn't harm

Specified by:
initShutdown in class AbstractWorkerThread

run

public void run()
Specified by:
run in interface Runnable
Overrides:
run in class Thread

isFinished

public boolean isFinished()
Description copied from class: AbstractWorkerThread
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.

Specified by:
isFinished in class AbstractWorkerThread

Kieker 1.2

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