Class PipeWriter
java.lang.Object
kieker.monitoring.writer.AbstractMonitoringWriter
kieker.monitoring.writer.namedRecordPipe.PipeWriter
public final class PipeWriter extends AbstractMonitoringWriter
- Since:
- 1.3
- Author:
- Andre van Hoorn, Jan Waller, Robert von Massow
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CONFIG_PIPENAME
-
Constructor Summary
Constructors Constructor Description PipeWriter(java.lang.String pipeName)
Creates a new instance using an empty configuration.PipeWriter(Configuration configuration)
Creates a new instance of this class using the given parameters. -
Method Summary
Modifier and Type Method Description void
onStarting()
This event fires when Kieker has been initialized and is ready to monitor.void
onTerminating()
This event fires when Kieker has been notified to terminate.java.lang.String
toString()
Returns a textual representation of the writer's configuration.void
writeMonitoringRecord(IMonitoringRecord record)
This event fires when Kieker has received a new record.
-
Field Details
-
CONFIG_PIPENAME
public static final java.lang.String CONFIG_PIPENAME
-
-
Constructor Details
-
PipeWriter
Creates a new instance of this class using the given parameters.- Parameters:
configuration
- The configuration used to initialize the pipe writer.
-
PipeWriter
public PipeWriter(java.lang.String pipeName)Creates a new instance using an empty configuration.
-
-
Method Details
-
toString
public java.lang.String toString()Description copied from class:AbstractMonitoringWriter
Returns a textual representation of the writer's configuration.- Overrides:
toString
in classAbstractMonitoringWriter
- Returns:
- a textual representation of the writer's configuration
-
onStarting
public void onStarting()Description copied from class:AbstractMonitoringWriter
This event fires when Kieker has been initialized and is ready to monitor. It is executed by theMonitoringWriterThread
just before reading the writer queue.- Specified by:
onStarting
in classAbstractMonitoringWriter
-
writeMonitoringRecord
Description copied from class:AbstractMonitoringWriter
This event fires when Kieker has received a new record.- Specified by:
writeMonitoringRecord
in classAbstractMonitoringWriter
-
onTerminating
public void onTerminating()Description copied from class:AbstractMonitoringWriter
This event fires when Kieker has been notified to terminate. It is executed by theMonitoringWriterThread
just after finishing the writer queue.- Specified by:
onTerminating
in classAbstractMonitoringWriter
-