Class AmqpWriter

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

public class AmqpWriter
extends AbstractMonitoringWriter
implements kieker.common.registry.IRegistryListener<java.lang.String>
Monitoring record writer which sends records using the AMQP protocol to a message queue.
Since:
1.12
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static java.lang.String CONFIG_EXCHANGENAME
    The name of the configuration property for the AMQP exchange name.
    static java.lang.String CONFIG_HEARTBEAT
    The name of the configuration property for the heartbeat timeout.
    static java.lang.String CONFIG_QUEUENAME
    The name of the configuration property for the AMQP queue name.
    static java.lang.String CONFIG_URI
    The name of the configuration property for the server URI.
    static byte REGISTRY_RECORD_ID
    ID for registry records.
    static byte REGULAR_RECORD_ID
    ID for regular records.

    Fields inherited from class kieker.monitoring.writer.AbstractMonitoringWriter

    configuration
  • Constructor Summary

    Constructors 
    Constructor Description
    AmqpWriter​(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

    • REGISTRY_RECORD_ID

      public static final byte REGISTRY_RECORD_ID
      ID for registry records.
      See Also:
      Constant Field Values
    • REGULAR_RECORD_ID

      public static final byte REGULAR_RECORD_ID
      ID for regular records.
      See Also:
      Constant Field Values
    • CONFIG_URI

      public static final java.lang.String CONFIG_URI
      The name of the configuration property for the server URI.
    • CONFIG_EXCHANGENAME

      public static final java.lang.String CONFIG_EXCHANGENAME
      The name of the configuration property for the AMQP exchange name.
    • CONFIG_QUEUENAME

      public static final java.lang.String CONFIG_QUEUENAME
      The name of the configuration property for the AMQP queue name.
    • CONFIG_HEARTBEAT

      public static final java.lang.String CONFIG_HEARTBEAT
      The name of the configuration property for the heartbeat timeout.
  • Constructor Details

    • AmqpWriter

      public AmqpWriter​(kieker.common.configuration.Configuration configuration) throws java.security.KeyManagementException, java.security.NoSuchAlgorithmException, java.net.URISyntaxException, java.io.IOException, java.util.concurrent.TimeoutException
      Throws:
      java.security.KeyManagementException
      java.security.NoSuchAlgorithmException
      java.net.URISyntaxException
      java.io.IOException
      java.util.concurrent.TimeoutException
  • Method Details