Package kieker.monitoring.writer.print
Class PrintStreamWriter
java.lang.Object
kieker.monitoring.writer.AbstractMonitoringWriter
kieker.monitoring.writer.print.PrintStreamWriter
public class PrintStreamWriter extends AbstractMonitoringWriter
A writer that prints incoming records to the specified PrintStream.
- Since:
- 1.5
- Author:
- Jan Waller
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CONFIG_STREAM_STDERR
static java.lang.String
CONFIG_STREAM_STDOUT
static java.lang.String
STREAM
-
Constructor Summary
Constructors Constructor Description PrintStreamWriter(Configuration configuration)
Creates a new instance of this writer. -
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.void
writeMonitoringRecord(IMonitoringRecord record)
This event fires when Kieker has received a new record.
-
Field Details
-
STREAM
public static final java.lang.String STREAM -
CONFIG_STREAM_STDOUT
public static final java.lang.String CONFIG_STREAM_STDOUT- See Also:
- Constant Field Values
-
CONFIG_STREAM_STDERR
public static final java.lang.String CONFIG_STREAM_STDERR- See Also:
- Constant Field Values
-
-
Constructor Details
-
PrintStreamWriter
Creates a new instance of this writer.- Parameters:
configuration
- The configuration which will be used to initialize this writer.
-
-
Method Details
-
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
-