java.io.Closeable, java.lang.AutoCloseable, MetricsPlugin, MetricsSink@Public @Evolving public class FileSink extends java.lang.Object implements MetricsSink, java.io.Closeable
| Constructor | Description |
|---|---|
FileSink() |
| Modifier and Type | Method | 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 java.io.IOException
close in interface java.lang.AutoCloseableclose in interface java.io.Closeablejava.io.IOExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.