Package kieker.monitoring.writer
Class AbstractMonitoringWriter
java.lang.Object
kieker.monitoring.writer.AbstractMonitoringWriter
- Direct Known Subclasses:
AmqpWriter,CassandraDbWriter,ChunkingCollector,DualSocketTcpWriter,DumpWriter,FileWriter,InfluxDBWriter,JmsWriter,JmxWriter,PipeWriter,PrintStreamWriter,SingleSocketTcpWriter
public abstract class AbstractMonitoringWriter
extends java.lang.Object
- Since:
- 1.13
- Author:
- Christian Wulf
-
Field Summary
Fields Modifier and Type Field Description protected ConfigurationconfigurationThe writer's configuration. -
Constructor Summary
Constructors Constructor Description AbstractMonitoringWriter(Configuration configuration) -
Method Summary
Modifier and Type Method Description abstract voidonStarting()This event fires when Kieker has been initialized and is ready to monitor.abstract voidonTerminating()This event fires when Kieker has been notified to terminate.java.lang.StringtoString()Returns a textual representation of the writer's configuration.abstract voidwriteMonitoringRecord(IMonitoringRecord record)This event fires when Kieker has received a new record.
-
Field Details
-
configuration
The writer's configuration.
-
-
Constructor Details
-
Method Details
-
onStarting
public abstract void onStarting()This event fires when Kieker has been initialized and is ready to monitor. It is executed by theMonitoringWriterThreadjust before reading the writer queue. -
writeMonitoringRecord
This event fires when Kieker has received a new record. -
onTerminating
public abstract void onTerminating()This event fires when Kieker has been notified to terminate. It is executed by theMonitoringWriterThreadjust after finishing the writer queue. -
toString
public java.lang.String toString()Returns a textual representation of the writer's configuration.- Overrides:
toStringin classjava.lang.Object- Returns:
- a textual representation of the writer's configuration
-