public class LogMetricsPlugin extends AbstractKafkaLogProcessor
| Constructor and Description |
|---|
LogMetricsPlugin(MetricsCollectionService metricsCollectionService,
CheckpointManagerFactory checkpointManagerFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
doProcess(KafkaLogEvent event)
doProcess method will be called if the event is not already processed.
|
Checkpoint |
getCheckpoint(int partition)
Get the checkpoint offset for a given partition.
|
void |
init(Set<Integer> partitions)
Called when the leader partitions change.
|
void |
stop()
Called to stop processing for the current set of kafka partitions.
|
alreadyProcessed, init, process@Inject public LogMetricsPlugin(MetricsCollectionService metricsCollectionService, CheckpointManagerFactory checkpointManagerFactory)
public void init(Set<Integer> partitions)
KafkaLogProcessorpartitions - new leader partitions.public void doProcess(KafkaLogEvent event)
AbstractKafkaLogProcessordoProcess in class AbstractKafkaLogProcessorevent - KafkaLogEventpublic void stop()
KafkaLogProcessorpublic Checkpoint getCheckpoint(int partition)
KafkaLogProcessorpartition - partition number in kafkaCopyright © 2015 Cask Data, Inc. Licensed under the Apache License, Version 2.0.