public class SinkDataCollector extends Object implements MonitoringDataCollector
MonitoringDataCollector that is used as an adapter to MonitoringDataSink abstraction.| Constructor and Description |
|---|
SinkDataCollector(MonitoringDataSink sink) |
SinkDataCollector(MonitoringDataSink sink,
StringBuilder fullKey) |
| Modifier and Type | Method and Description |
|---|---|
MonitoringDataCollector |
collect(CharSequence key,
long value)
Collect a single metric data point (within the current context of tags of this collector).
|
MonitoringDataCollector |
tag(CharSequence name,
CharSequence value)
Creates a collector with an extended context.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapp, collect, collect, collect, collect, collect, collect, collectAll, collectNonZero, collectObject, collectObject, collectObjects, entity, in, typepublic SinkDataCollector(MonitoringDataSink sink)
public SinkDataCollector(MonitoringDataSink sink, StringBuilder fullKey)
public MonitoringDataCollector collect(CharSequence key, long value)
MonitoringDataCollectorcollect in interface MonitoringDataCollectorkey - the plain (context free) name of the metric (e.g. "size")value - the current value of the metricpublic MonitoringDataCollector tag(CharSequence name, CharSequence value)
MonitoringDataCollectortag in interface MonitoringDataCollectorname - name of the type of contextvalue - identifier within the context type, if null or empty the tag is ignoredCopyright © 2019. All rights reserved.