Class KafkaReader

java.lang.Object
kieker.analysis.analysisComponent.AbstractAnalysisComponent
kieker.analysis.plugin.AbstractPlugin
kieker.analysis.plugin.reader.AbstractReaderPlugin
kieker.analysis.plugin.reader.newio.AbstractRawDataReader
kieker.analysis.plugin.reader.kafka.KafkaReader
All Implemented Interfaces:
kieker.analysis.analysisComponent.IAnalysisComponent, kieker.analysis.plugin.IPlugin, kieker.analysis.plugin.reader.IReaderPlugin

public class KafkaReader
extends kieker.analysis.plugin.reader.newio.AbstractRawDataReader
Reader plugin that reads monitoring records from a Kafka topic.
Since:
1.13
  • Nested Class Summary

    Nested classes/interfaces inherited from interface kieker.analysis.plugin.IPlugin

    kieker.analysis.plugin.IPlugin.PluginInputPortReference, kieker.analysis.plugin.IPlugin.STATE
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static java.lang.String CONFIG_PROPERTY_AUTO_COMMIT
    The name of the configuration property for the auto-commit flag.
    static java.lang.String CONFIG_PROPERTY_AUTO_COMMIT_INTERVAL_MS
    The name of the configuration property for the auto-commit interval.
    static java.lang.String CONFIG_PROPERTY_BOOTSTRAP_SERVERS
    The name of the configuration property for the bootstrap servers.
    static java.lang.String CONFIG_PROPERTY_DESERIALIZER
    The name of the configuration property for the deserializer
    static java.lang.String CONFIG_PROPERTY_GROUP_ID
    The name of the configuration property for the group ID.
    static java.lang.String CONFIG_PROPERTY_SESSION_TIMEOUT_MS
    The name of the configuration property for the session timeout interval.
    static java.lang.String CONFIG_PROPERTY_TOPIC_NAME
    The name of the configuration property for the topic name.
    static java.lang.String OUTPUT_PORT_NAME_RECORDS
    The name of the output port delivering the received records.

    Fields inherited from class kieker.analysis.analysisComponent.AbstractAnalysisComponent

    CONFIG_NAME, configuration, logger, projectContext, recordsTimeUnitFromProjectContext
  • Constructor Summary

    Constructors 
    Constructor Description
    KafkaReader​(kieker.common.configuration.Configuration configuration, kieker.analysis.IProjectContext projectContext)
    Creates a new Kafka reader using the givend data.
  • Method Summary

    Modifier and Type Method Description
    kieker.common.configuration.Configuration getCurrentConfiguration()  
    boolean init()  
    boolean read()  
    void terminate​(boolean error)  

    Methods inherited from class kieker.analysis.plugin.reader.newio.AbstractRawDataReader

    decodeAndDeliverRecords, decodeAndDeliverRecords

    Methods inherited from class kieker.analysis.plugin.AbstractPlugin

    areAllRepositoryPortsConnected, connect, connect, deliver, getAllDisplayNames, getAllInputPortNames, getAllOutputPortNames, getAllRepositoryPortNames, getConnectedPlugins, getCurrentRepositories, getDefaultConfiguration, getIncomingPlugins, getPluginDescription, getPluginName, getRepository, getState, isConnectionAllowed, notifyNewIncomingConnection, notifyNewOutgoingConnection, shutdown, start

    Methods inherited from class kieker.analysis.analysisComponent.AbstractAnalysisComponent

    getName

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface kieker.analysis.plugin.IPlugin

    connect, getAllDisplayNames, getAllInputPortNames, getAllOutputPortNames, getAllRepositoryPortNames, getConnectedPlugins, getCurrentRepositories, getName, getPluginDescription, getPluginName, getState
  • Field Details

  • Constructor Details

    • KafkaReader

      public KafkaReader​(kieker.common.configuration.Configuration configuration, kieker.analysis.IProjectContext projectContext)
      Creates a new Kafka reader using the givend data.
      Parameters:
      configuration - The configuration to use
      projectContext - The project context the plugin runs in
  • Method Details

    • getCurrentConfiguration

      public kieker.common.configuration.Configuration getCurrentConfiguration()
      Specified by:
      getCurrentConfiguration in interface kieker.analysis.analysisComponent.IAnalysisComponent
      Specified by:
      getCurrentConfiguration in interface kieker.analysis.plugin.IPlugin
      Specified by:
      getCurrentConfiguration in class kieker.analysis.analysisComponent.AbstractAnalysisComponent
    • init

      public boolean init()
      Specified by:
      init in interface kieker.analysis.plugin.IPlugin
      Overrides:
      init in class kieker.analysis.plugin.reader.AbstractReaderPlugin
    • read

      public boolean read()
    • terminate

      public void terminate​(boolean error)