|
Kieker 1.11 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread kieker.monitoring.writer.AbstractAsyncThread kieker.monitoring.writer.filesystem.async.AbstractZipWriterThread
public abstract class AbstractZipWriterThread
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
protected java.lang.String |
fileExtension
|
protected java.util.zip.ZipOutputStream |
zipOutputStream
The output stream pointing to the defined zip file. |
Fields inherited from class kieker.monitoring.writer.AbstractAsyncThread |
---|
monitoringController |
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
AbstractZipWriterThread(IMonitoringController monitoringController,
java.util.concurrent.BlockingQueue<IMonitoringRecord> writeQueue,
StringMappingFileWriter mappingFileWriter,
java.lang.String path,
int maxEntriesInFile,
int level)
Create a new AbstractZipWriterThread. |
Method Summary | |
---|---|
protected void |
cleanup()
Inheriting classes should implement this method to do some cleanup work like, for example, closing open connections. |
protected abstract void |
cleanupFinal()
Inheriting classes should implement this method to perform a final cleanup. |
protected abstract void |
cleanupForNextEntry()
Inheriting classes should implement this method to perform a cleanup for the next entry. |
protected void |
consume(IMonitoringRecord monitoringRecord)
Inheriting classes should implement this method to consume the given record by, for example, sending it to a JMS client or by writing it to the file sysytem. |
protected java.lang.String |
getFilename()
Return the filename of a log file. |
java.lang.String |
toString()
Returns a human-readable information string about the writer's configuration and state. |
protected abstract void |
write(IMonitoringRecord monitoringRecord)
Inheriting classes should implement this method to actually write the monitoring record. |
Methods inherited from class kieker.monitoring.writer.AbstractAsyncThread |
---|
initShutdown, isFinished, run |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, clone, 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, yield |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.String fileExtension
protected final java.util.zip.ZipOutputStream zipOutputStream
Constructor Detail |
---|
public AbstractZipWriterThread(IMonitoringController monitoringController, java.util.concurrent.BlockingQueue<IMonitoringRecord> writeQueue, StringMappingFileWriter mappingFileWriter, java.lang.String path, int maxEntriesInFile, int level) throws java.io.IOException
monitoringController
- the monitoring controller accessed by this threadwriteQueue
- the queue where the writer fetches its records frommappingFileWriter
- writer for the mapping file (the file where class names are mapped to record ids)path
- location where to files should go to (the path must point to a directory)maxEntriesInFile
- limit for the number of records per log filelevel
- compression level
java.io.IOException
- when file operation failsMethod Detail |
---|
protected final void cleanup()
cleanup
in class AbstractAsyncThread
protected final java.lang.String getFilename()
protected final void consume(IMonitoringRecord monitoringRecord) throws java.lang.Exception
AbstractAsyncThread
consume
in class AbstractAsyncThread
monitoringRecord
- The record to consume.
java.lang.Exception
- Indicates that something went wrong during the consumption.protected abstract void write(IMonitoringRecord monitoringRecord) throws java.io.IOException
monitoringRecord
- The record to be written.
java.io.IOException
- If something went wrong during the writing.protected abstract void cleanupForNextEntry() throws java.io.IOException
java.io.IOException
- If something went wrong during the cleanup.protected abstract void cleanupFinal() throws java.io.IOException
java.io.IOException
- If something went wrong during the cleanup.public final java.lang.String toString()
AbstractAsyncThread
toString
in class AbstractAsyncThread
|
Kieker 1.11 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |