@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)
MetricsPlugininit インタフェース内 MetricsPluginconf - the configuration object for the pluginpublic void putMetrics(MetricsRecord record)
MetricsSinkputMetrics インタフェース内 MetricsSinkrecord - the record to putpublic void flush()
MetricsSinkflush インタフェース内 MetricsSinkpublic void close() throws IOException
close インタフェース内 Closeableclose インタフェース内 AutoCloseableIOExceptionCopyright © 2016 Apache Software Foundation. All rights reserved.