@InterfaceAudience.Public @InterfaceStability.Evolving public class KafkaSink extends Object implements MetricsSink, Closeable
修飾子とタイプ | フィールドと説明 |
---|---|
static String |
BROKER_LIST |
static String |
TOPIC |
コンストラクタと説明 |
---|
KafkaSink() |
修飾子とタイプ | メソッドと説明 |
---|---|
void |
close() |
void |
flush()
Flush any buffered metrics
|
void |
init(org.apache.commons.configuration.SubsetConfiguration conf)
Initialize the plugin
|
void |
putMetrics(MetricsRecord record)
Put a metrics record in the sink
|
void |
setProducer(org.apache.kafka.clients.producer.Producer<Integer,byte[]> p) |
public static final String BROKER_LIST
public KafkaSink()
public void setProducer(org.apache.kafka.clients.producer.Producer<Integer,byte[]> p)
public void init(org.apache.commons.configuration.SubsetConfiguration conf)
MetricsPlugin
init
インタフェース内 MetricsPlugin
conf
- the configuration object for the pluginpublic void putMetrics(MetricsRecord record)
MetricsSink
putMetrics
インタフェース内 MetricsSink
record
- the record to putpublic void flush()
MetricsSink
flush
インタフェース内 MetricsSink
public void close() throws IOException
close
インタフェース内 Closeable
close
インタフェース内 AutoCloseable
IOException
Copyright © 2016 Apache Software Foundation. All rights reserved.