Package kieker.monitoring.writer.tcp
Class SingleSocketTcpWriter
java.lang.Object
kieker.monitoring.writer.AbstractMonitoringWriter
kieker.monitoring.writer.tcp.SingleSocketTcpWriter
- All Implemented Interfaces:
IRegistryListener<String>
public class SingleSocketTcpWriter
extends AbstractMonitoringWriter
implements IRegistryListener<String>
Represents a monitoring writer which serializes records via TCP to a given
host:port.
- Since:
- 1.13
- Author:
- Christian Wulf
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringconfiguration key for the size of thebuffer.static final Stringconfiguration key forconnectionTimeoutInMs.static final Stringconfiguration key forflush.static final Stringconfiguration key for the hostname.static final Stringconfiguration key for the port.static final StringThis writer can be configured by the configuration file "kieker.properties".Fields inherited from class kieker.monitoring.writer.AbstractMonitoringWriter
configuration -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonNewRegistryEntry(String value, int id) This event is fired after a new registry entry was registered.voidThis event fires when Kieker has been initialized and is ready to monitor.voidThis event fires when Kieker has been notified to terminate.voidwriteMonitoringRecord(IMonitoringRecord monitoringRecord) This event fires when Kieker has received a new record.Methods inherited from class kieker.monitoring.writer.AbstractMonitoringWriter
toString
-
Field Details
-
PREFIX
This writer can be configured by the configuration file "kieker.properties". For this purpose, it uses this prefix for all configuration keys. -
CONFIG_HOSTNAME
configuration key for the hostname. -
CONFIG_PORT
configuration key for the port. -
CONFIG_BUFFERSIZE
configuration key for the size of thebuffer. -
CONFIG_FLUSH
configuration key forflush. -
CONFIG_CONN_TIMEOUT_IN_MS
configuration key forconnectionTimeoutInMs.
-
-
Constructor Details
-
SingleSocketTcpWriter
- Throws:
IOException
-
-
Method Details
-
onStarting
public void onStarting()Description copied from class:AbstractMonitoringWriterThis event fires when Kieker has been initialized and is ready to monitor. It is executed by theMonitoringWriterThreadjust before reading the writer queue.- Specified by:
onStartingin classAbstractMonitoringWriter
-
writeMonitoringRecord
Description copied from class:AbstractMonitoringWriterThis event fires when Kieker has received a new record.- Specified by:
writeMonitoringRecordin classAbstractMonitoringWriter
-
onNewRegistryEntry
Description copied from interface:IRegistryListenerThis event is fired after a new registry entry was registered.- Specified by:
onNewRegistryEntryin interfaceIRegistryListener<String>- Parameters:
value- valueid- id
-
onTerminating
public void onTerminating()Description copied from class:AbstractMonitoringWriterThis event fires when Kieker has been notified to terminate. It is executed by theMonitoringWriterThreadjust after finishing the writer queue.- Specified by:
onTerminatingin classAbstractMonitoringWriter
-