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)
IMetricsSink
init
in interface IMetricsSink
conf
- 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)
IMetricsSink
processRecord
in interface IMetricsSink
record
- the record to putpublic void flush()
IMetricsSink
flush
in interface IMetricsSink
public void close()
IMetricsSink
close
in interface IMetricsSink
close
in interface java.lang.AutoCloseable