| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.metrics2.sink.FileSink
@InterfaceAudience.Public @InterfaceStability.Evolving public class FileSink
A metrics sink that writes to a file
| Constructor Summary | |
|---|---|
FileSink()
 | 
|
| Method Summary | |
|---|---|
 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  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public FileSink()
| Method Detail | 
|---|
public void init(org.apache.commons.configuration.SubsetConfiguration conf)
MetricsPlugin
init in interface MetricsPluginconf - the configuration object for the pluginpublic void putMetrics(MetricsRecord record)
MetricsSink
putMetrics in interface MetricsSinkrecord - the record to putpublic void flush()
MetricsSink
flush in interface MetricsSink
public void close()
           throws IOException
close in interface CloseableIOException
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||