public class ScribeSink extends java.lang.Object implements IMetricsSink
| Constructor and Description |
|---|
ScribeSink() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this stream and releases any system resources associated
with it.
|
void |
flush()
Flush any buffered metrics
It would be called at an interval according to the configuration
|
void |
init(java.util.Map<java.lang.String,java.lang.Object> conf,
SinkContext context)
Initialize the MetricsSink
|
void |
processRecord(MetricsRecord record)
Process a metrics record in the sink
|
public void init(java.util.Map<java.lang.String,java.lang.Object> conf,
SinkContext context)
IMetricsSinkinit in interface IMetricsSinkconf - An unmodifiableMap containing basic configurationcontext - context objects for Sink to init
Attempts to modify the returned map,
whether direct or via its collection views, result in an UnsupportedOperationException.public void processRecord(MetricsRecord record)
IMetricsSinkprocessRecord in interface IMetricsSinkrecord - the record to putpublic void flush()
IMetricsSinkflush in interface IMetricsSinkpublic void close()
IMetricsSinkclose in interface IMetricsSinkclose in interface java.lang.AutoCloseable