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.StringCONFIG_STREAM_STDERRstatic java.lang.StringCONFIG_STREAM_STDOUTstatic java.lang.StringSTREAM -
Constructor Summary
Constructors Constructor Description PrintStreamWriter(Configuration configuration)Creates a new instance of this writer. -
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.voidwriteMonitoringRecord(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: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
-