kieker.monitoring.writer
Class DummyWriter
java.lang.Object
kieker.monitoring.writer.AbstractMonitoringWriter
kieker.monitoring.writer.DummyWriter
- All Implemented Interfaces:
- IMonitoringRecordReceiver, IMonitoringWriter
public class DummyWriter
- extends AbstractMonitoringWriter
A writer that does nothing but consuming records.
- Author:
- Andre van Hoorn, Jan Waller
DummyWriter
public DummyWriter(Configuration configuration)
newMonitoringRecord
public boolean newMonitoringRecord(IMonitoringRecord record)
- Description copied from interface:
IMonitoringRecordReceiver
- Called for each new record.
Notice, that this method should not throw an exception,
but indicate an error by the return value false.
- Specified by:
newMonitoringRecord
in interface IMonitoringRecordReceiver
- Specified by:
newMonitoringRecord
in interface IMonitoringWriter
- Specified by:
newMonitoringRecord
in class AbstractMonitoringWriter
- Parameters:
record
- the record.
- Returns:
- true on success; false in case of an error.
terminate
public void terminate()
- Description copied from interface:
IMonitoringWriter
- Called by the Monitoring Controller to announce a shutdown of monitoring.
Writers should return as soon as it is safe to terminate Kieker.
- Specified by:
terminate
in interface IMonitoringWriter
- Specified by:
terminate
in class AbstractMonitoringWriter
init
public void init()
- Description copied from class:
AbstractMonitoringWriter
- Implementing classes should indicate an initialization
error by throwing an
Exception
.
Copyright 2011 the Kieker Project, http://kieker.sourceforge.net>