Package kieker.monitoring.writer.tcp
Class DualSocketTcpWriter
java.lang.Object
kieker.monitoring.writer.AbstractMonitoringWriter
kieker.monitoring.writer.tcp.DualSocketTcpWriter
- All Implemented Interfaces:
IRegistryListener<String>
public class DualSocketTcpWriter
extends AbstractMonitoringWriter
implements IRegistryListener<String>
- Since:
- 1.13
- Author:
- "Christian Wulf"
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringconfiguration key for the size of therecordBuffer.static final Stringconfiguration key forflush.static final Stringconfiguration key for the hostname.static final Stringconfiguration key for the monitoring port.static final Stringconfiguration key for the registry port.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
-
CONFIG_HOSTNAME
configuration key for the hostname. -
CONFIG_PORT1
configuration key for the monitoring port. -
CONFIG_PORT2
configuration key for the registry port. -
CONFIG_BUFFERSIZE
configuration key for the size of therecordBuffer. -
CONFIG_FLUSH
configuration key forflush.
-
-
Constructor Details
-
DualSocketTcpWriter
- 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
-