Class LogExporter
java.lang.Object
io.confluent.telemetry.events.exporter.log.LogExporter
- All Implemented Interfaces:
Exporter<io.confluent.telemetry.api.events.Event>,AutoCloseable,org.apache.kafka.common.Configurable,org.apache.kafka.common.Reconfigurable
public class LogExporter
extends Object
implements Exporter<io.confluent.telemetry.api.events.Event>
The LogExporter sends events to the SLF4J-configured log file
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidemit(io.confluent.telemetry.api.events.Event event) Filter and transform the events as appropriate and send to the specified destination.voidreconfigure(Map<String, ?> configs) booleanrouteReady(io.confluent.telemetry.api.events.Event event) Checks if a topic is ready.voidvalidateReconfiguration(Map<String, ?> configs)
-
Constructor Details
-
LogExporter
public LogExporter()
-
-
Method Details
-
configure
- Specified by:
configurein interfaceorg.apache.kafka.common.Configurable
-
emit
Description copied from interface:ExporterFilter and transform the events as appropriate and send to the specified destination. This method takes care of batching, serialization and retries. -
routeReady
public boolean routeReady(io.confluent.telemetry.api.events.Event event) Description copied from interface:ExporterChecks if a topic is ready. This is specifically used for transports where the routes require some time to be ready. For eg. Kafka topics. For high volume audit event streams, the events are only sent to Kafka exporter if the topic is ready.- Specified by:
routeReadyin interfaceExporter<io.confluent.telemetry.api.events.Event>- Returns:
- if the route for this event is ready.
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
reconfigurableConfigs
- Specified by:
reconfigurableConfigsin interfaceorg.apache.kafka.common.Reconfigurable
-
validateReconfiguration
public void validateReconfiguration(Map<String, ?> configs) throws org.apache.kafka.common.config.ConfigException- Specified by:
validateReconfigurationin interfaceorg.apache.kafka.common.Reconfigurable- Throws:
org.apache.kafka.common.config.ConfigException
-
reconfigure
- Specified by:
reconfigurein interfaceorg.apache.kafka.common.Reconfigurable
-