@InterfaceAudience.Public @InterfaceStability.Evolving public class FileSink extends Object implements MetricsSink
Constructor and Description |
---|
FileSink() |
Modifier and Type | Method and Description |
---|---|
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
|
public FileSink()
public void init(org.apache.commons.configuration.SubsetConfiguration conf)
MetricsPlugin
init
in interface MetricsPlugin
conf
- the configuration object for the pluginpublic void putMetrics(MetricsRecord record)
MetricsSink
putMetrics
in interface MetricsSink
record
- the record to putpublic void flush()
MetricsSink
flush
in interface MetricsSink
Copyright © 2014 Apache Software Foundation. All Rights Reserved.