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 Configuration
configuration
The writer's configuration. -
Constructor Summary
Constructors Constructor Description AbstractMonitoringWriter(Configuration configuration)
-
Method Summary
Modifier and Type Method Description abstract void
onStarting()
This event fires when Kieker has been initialized and is ready to monitor.abstract void
onTerminating()
This event fires when Kieker has been notified to terminate.java.lang.String
toString()
Returns a textual representation of the writer's configuration.abstract void
writeMonitoringRecord(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 theMonitoringWriterThread
just 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 theMonitoringWriterThread
just after finishing the writer queue. -
toString
public java.lang.String toString()Returns a textual representation of the writer's configuration.- Overrides:
toString
in classjava.lang.Object
- Returns:
- a textual representation of the writer's configuration
-