|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@InterfaceAudience.Public @InterfaceStability.Evolving public interface MetricsSink
The metrics sink interface.
Implementations of this interface consume the MetricsRecord generated
from MetricsSource. It registers with MetricsSystem which
periodically pushes the MetricsRecord to the sink using
putMetrics(MetricsRecord) method. If the implementing class also
implements Closeable, then the MetricsSystem will close the sink when
it is stopped.
| Method Summary | |
|---|---|
void |
flush()
Flush any buffered metrics |
void |
putMetrics(MetricsRecord record)
Put a metrics record in the sink |
| Methods inherited from interface org.apache.hadoop.metrics2.MetricsPlugin |
|---|
init |
| Method Detail |
|---|
void putMetrics(MetricsRecord record)
record - the record to putvoid flush()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||