@InterfaceAudience.Public @InterfaceStability.Evolving public class GraphiteSink extends Object implements MetricsSink, Closeable
| Constructor and Description |
|---|
GraphiteSink() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush()
Flush any buffered metrics
|
void |
init(org.apache.commons.configuration2.SubsetConfiguration conf)
Initialize the plugin
|
void |
putMetrics(MetricsRecord record)
Put a metrics record in the sink
|
public void init(org.apache.commons.configuration2.SubsetConfiguration conf)
MetricsPlugininit in interface MetricsPluginconf - the configuration object for the pluginpublic void putMetrics(MetricsRecord record)
MetricsSinkputMetrics in interface MetricsSinkrecord - the record to putpublic void flush()
MetricsSinkflush in interface MetricsSinkpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2024 Apache Software Foundation. All rights reserved.