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
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCONFIG_PROPERTY_AUTO_COMMITThe name of the configuration property for the auto-commit flag.static java.lang.StringCONFIG_PROPERTY_AUTO_COMMIT_INTERVAL_MSThe name of the configuration property for the auto-commit interval.static java.lang.StringCONFIG_PROPERTY_BOOTSTRAP_SERVERSThe name of the configuration property for the bootstrap servers.static java.lang.StringCONFIG_PROPERTY_DESERIALIZERThe name of the configuration property for the deserializerstatic java.lang.StringCONFIG_PROPERTY_GROUP_IDThe name of the configuration property for the group ID.static java.lang.StringCONFIG_PROPERTY_SESSION_TIMEOUT_MSThe name of the configuration property for the session timeout interval.static java.lang.StringCONFIG_PROPERTY_TOPIC_NAMEThe name of the configuration property for the topic name.static java.lang.StringOUTPUT_PORT_NAME_RECORDSThe name of the output port delivering the received records. -
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.ConfigurationgetCurrentConfiguration()booleaninit()booleanread()voidterminate(boolean error)Methods inherited from class kieker.analysis.plugin.reader.newio.AbstractRawDataReader
decodeAndDeliverRecords, decodeAndDeliverRecordsMethods 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
-
Field Details
-
OUTPUT_PORT_NAME_RECORDS
public static final java.lang.String OUTPUT_PORT_NAME_RECORDSThe name of the output port delivering the received records.- See Also:
- Constant Field Values
-
CONFIG_PROPERTY_DESERIALIZER
public static final java.lang.String CONFIG_PROPERTY_DESERIALIZERThe name of the configuration property for the deserializer- See Also:
- Constant Field Values
-
CONFIG_PROPERTY_TOPIC_NAME
public static final java.lang.String CONFIG_PROPERTY_TOPIC_NAMEThe name of the configuration property for the topic name.- See Also:
- Constant Field Values
-
CONFIG_PROPERTY_BOOTSTRAP_SERVERS
public static final java.lang.String CONFIG_PROPERTY_BOOTSTRAP_SERVERSThe name of the configuration property for the bootstrap servers.- See Also:
- Constant Field Values
-
CONFIG_PROPERTY_GROUP_ID
public static final java.lang.String CONFIG_PROPERTY_GROUP_IDThe name of the configuration property for the group ID.- See Also:
- Constant Field Values
-
CONFIG_PROPERTY_AUTO_COMMIT
public static final java.lang.String CONFIG_PROPERTY_AUTO_COMMITThe name of the configuration property for the auto-commit flag.- See Also:
- Constant Field Values
-
CONFIG_PROPERTY_AUTO_COMMIT_INTERVAL_MS
public static final java.lang.String CONFIG_PROPERTY_AUTO_COMMIT_INTERVAL_MSThe name of the configuration property for the auto-commit interval.- See Also:
- Constant Field Values
-
CONFIG_PROPERTY_SESSION_TIMEOUT_MS
public static final java.lang.String CONFIG_PROPERTY_SESSION_TIMEOUT_MSThe name of the configuration property for the session timeout interval.- See Also:
- Constant Field Values
-
-
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 useprojectContext- The project context the plugin runs in
-
-
Method Details
-
getCurrentConfiguration
public kieker.common.configuration.Configuration getCurrentConfiguration()- Specified by:
getCurrentConfigurationin interfacekieker.analysis.analysisComponent.IAnalysisComponent- Specified by:
getCurrentConfigurationin interfacekieker.analysis.plugin.IPlugin- Specified by:
getCurrentConfigurationin classkieker.analysis.analysisComponent.AbstractAnalysisComponent
-
init
public boolean init()- Specified by:
initin interfacekieker.analysis.plugin.IPlugin- Overrides:
initin classkieker.analysis.plugin.reader.AbstractReaderPlugin
-
read
public boolean read() -
terminate
public void terminate(boolean error)
-