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.StringCONFIG_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 voidonStarting()This event fires when Kieker has been initialized and is ready to monitor.voidonTerminating()This event fires when Kieker has been notified to terminate.java.lang.StringtoString()Returns a textual representation of the writer's configuration.voidwriteMonitoringRecord(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:AbstractMonitoringWriterReturns a textual representation of the writer's configuration.- Overrides:
toStringin classAbstractMonitoringWriter- Returns:
- a textual representation of the writer's configuration
-
onStarting
public void onStarting()Description copied from class:AbstractMonitoringWriterThis event fires when Kieker has been initialized and is ready to monitor. It is executed by theMonitoringWriterThreadjust before reading the writer queue.- Specified by:
onStartingin classAbstractMonitoringWriter
-
writeMonitoringRecord
Description copied from class:AbstractMonitoringWriterThis event fires when Kieker has received a new record.- Specified by:
writeMonitoringRecordin classAbstractMonitoringWriter
-
onTerminating
public void onTerminating()Description copied from class:AbstractMonitoringWriterThis event fires when Kieker has been notified to terminate. It is executed by theMonitoringWriterThreadjust after finishing the writer queue.- Specified by:
onTerminatingin classAbstractMonitoringWriter
-