Class SingleSocketTcpWriter

java.lang.Object
kieker.monitoring.writer.AbstractMonitoringWriter
kieker.monitoring.writer.tcp.SingleSocketTcpWriter
All Implemented Interfaces:
kieker.common.registry.IRegistryListener<java.lang.String>

public class SingleSocketTcpWriter
extends AbstractMonitoringWriter
implements kieker.common.registry.IRegistryListener<java.lang.String>
Represents a monitoring writer which serializes records via TCP to a given host:port.
Since:
1.13
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static java.lang.String CONFIG_BUFFERSIZE
    configuration key for the size of the buffer.
    static java.lang.String CONFIG_CONN_TIMEOUT_IN_MS
    configuration key for connectionTimeoutInMs.
    static java.lang.String CONFIG_FLUSH
    configuration key for flush.
    static java.lang.String CONFIG_HOSTNAME
    configuration key for the hostname.
    static java.lang.String CONFIG_PORT
    configuration key for the port.
    static java.lang.String PREFIX
    This writer can be configured by the configuration file "kieker.properties".

    Fields inherited from class kieker.monitoring.writer.AbstractMonitoringWriter

    configuration
  • Constructor Summary

    Constructors 
    Constructor Description
    SingleSocketTcpWriter​(kieker.common.configuration.Configuration configuration)  
  • Method Summary

    Modifier and Type Method Description
    void onNewRegistryEntry​(java.lang.String value, int id)  
    void onStarting()
    This event fires when Kieker has been initialized and is ready to monitor.
    void onTerminating()
    This event fires when Kieker has been notified to terminate.
    void writeMonitoringRecord​(kieker.common.record.IMonitoringRecord monitoringRecord)
    This event fires when Kieker has received a new record.

    Methods inherited from class kieker.monitoring.writer.AbstractMonitoringWriter

    toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • PREFIX

      public static final java.lang.String 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

      public static final java.lang.String CONFIG_HOSTNAME
      configuration key for the hostname.
    • CONFIG_PORT

      public static final java.lang.String CONFIG_PORT
      configuration key for the port.
    • CONFIG_BUFFERSIZE

      public static final java.lang.String CONFIG_BUFFERSIZE
      configuration key for the size of the buffer.
    • CONFIG_FLUSH

      public static final java.lang.String CONFIG_FLUSH
      configuration key for flush.
    • CONFIG_CONN_TIMEOUT_IN_MS

      public static final java.lang.String CONFIG_CONN_TIMEOUT_IN_MS
      configuration key for connectionTimeoutInMs.
  • Constructor Details

    • SingleSocketTcpWriter

      public SingleSocketTcpWriter​(kieker.common.configuration.Configuration configuration) throws java.io.IOException
      Throws:
      java.io.IOException
  • Method Details