kieker.monitoring.writer.jms
Class JMSWriterThread<T>
java.lang.Object
java.lang.Thread
kieker.monitoring.writer.util.async.AbstractWorkerThread
kieker.monitoring.writer.jms.JMSWriterThread<T>
- All Implemented Interfaces:
- Runnable
public final class JMSWriterThread<T>
- extends AbstractWorkerThread
The writer moves monitoring data via messaging to a JMS server. This uses the
publishRecord/subscribe pattern. The JMS server will only keep each monitoring event
for messageTimeToLive milliseconds presents before it is deleted.
At the moment, JmsWorkers do not share any connections,
sessions or other objects.
History:
2008-09-13: Initial prototype
- Author:
- Matthias Rohr
Method Summary |
void |
initShutdown()
Initials the shutdown |
boolean |
isFinished()
initShutdown has to be called before isFinished will result in true. |
void |
run()
|
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 |
JMSWriterThread
public JMSWriterThread(BlockingQueue<T> writeQueue,
T endOfMonitoringMarker,
String contextFactoryType,
String providerUrl,
String factoryLookupName,
String topic,
long messageTimeToLive)
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
initShutdown
public void initShutdown()
- Initials the shutdown
- Specified by:
initShutdown
in class AbstractWorkerThread
Copyright 2010 the Kieker Project, http://kieker.sourceforge.net>