kieker.monitoring.writer
Class PrintStreamWriter
java.lang.Object
kieker.monitoring.writer.AbstractMonitoringWriter
kieker.monitoring.writer.PrintStreamWriter
- All Implemented Interfaces:
- IMonitoringRecordReceiver, IMonitoringWriter
public class PrintStreamWriter
- extends AbstractMonitoringWriter
A writer that prints incoming records to the specified PrintStream.
- Since:
- 1.5
- Author:
- Jan Waller
STREAM
public static final String STREAM
CONFIG_STREAM_STDOUT
public static final String CONFIG_STREAM_STDOUT
- See Also:
- Constant Field Values
CONFIG_STREAM_STDERR
public static final String CONFIG_STREAM_STDERR
- See Also:
- Constant Field Values
PrintStreamWriter
public PrintStreamWriter(Configuration configuration)
- Creates a new instance of this writer.
- Parameters:
configuration
- The configuration which will be used to initialize this writer.
init
public void init()
throws FileNotFoundException,
UnsupportedEncodingException
- Description copied from class:
AbstractMonitoringWriter
- Implementing classes should indicate an initialization error by throwing an
Exception
.
- Throws:
FileNotFoundException
UnsupportedEncodingException
newMonitoringRecord
public boolean newMonitoringRecord(IMonitoringRecord record)
- Called for each new record.
Notice, that this method should not throw an exception, but indicate an error by the return value false.
- Parameters:
record
- the record.
- Returns:
- true on success; false in case of an error.
terminate
public void terminate()
- Called by the Monitoring Controller to announce a shutdown of monitoring.
Writers should return as soon as it is safe to terminate Kieker.
Copyright 2014 Kieker Project, http://kieker-monitoring.net>