Kieker 1.12

kieker.monitoring.writer
Class DummyWriter

java.lang.Object
  extended by kieker.monitoring.writer.AbstractMonitoringWriter
      extended by kieker.monitoring.writer.DummyWriter
All Implemented Interfaces:
IMonitoringRecordReceiver, IMonitoringWriter

public class DummyWriter
extends AbstractMonitoringWriter

A writer that does nothing but consuming records.

Since:
1.3
Author:
Andre van Hoorn, Jan Waller

Field Summary
 
Fields inherited from class kieker.monitoring.writer.AbstractMonitoringWriter
monitoringController
 
Constructor Summary
DummyWriter(Configuration configuration)
          Creates a new instance of this class using the given parameters.
 
Method Summary
 void init()
          Implementing classes should indicate an initialization error by throwing an Exception.
 boolean newMonitoringRecord(IMonitoringRecord record)
          This method consumes the record but does nothing with it.
 void terminate()
          Terminates the writer.
 
Methods inherited from class kieker.monitoring.writer.AbstractMonitoringWriter
getDefaultConfiguration, newMonitoringRecordNonBlocking, setController, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DummyWriter

public DummyWriter(Configuration configuration)
Creates a new instance of this class using the given parameters.

Parameters:
configuration - The configuration for this writer.
Method Detail

newMonitoringRecord

public boolean newMonitoringRecord(IMonitoringRecord record)
This method consumes the record but does nothing with it.

Parameters:
record - The record to consume.
Returns:
True.

terminate

public void terminate()
Terminates the writer.


init

public void init()
Description copied from class: AbstractMonitoringWriter
Implementing classes should indicate an initialization error by throwing an Exception.

Specified by:
init in class AbstractMonitoringWriter

Kieker 1.12

Copyright 2015 Kieker Project, http://kieker-monitoring.net