Class ChainedCollector.PrefixMetricReporter<C extends Collector>
- java.lang.Object
-
- org.kairosdb.metrics4j.collectors.helpers.ChainedCollector.PrefixMetricReporter<C>
-
- All Implemented Interfaces:
MetricReporter
- Enclosing class:
- ChainedCollector<C extends Collector>
protected static class ChainedCollector.PrefixMetricReporter<C extends Collector> extends Object implements MetricReporter
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChainedCollector.PrefixMetricReporter<C>clone()CgetCollector()ReportedMetric.Sampleput(String field, MetricValue value)voidreportMetric(MetricReporter reporter)voidsetContext(Map<String,String> context)Sets the context for the data collected from the collector.voidsetContextProperties(Map<String,String> contextProperties)
-
-
-
Method Detail
-
clone
public ChainedCollector.PrefixMetricReporter<C> clone()
-
getCollector
public C getCollector()
-
reportMetric
public void reportMetric(MetricReporter reporter)
-
put
public ReportedMetric.Sample put(String field, MetricValue value)
- Specified by:
putin interfaceMetricReporter
-
setContext
public void setContext(Map<String,String> context)
Description copied from interface:MetricReporterSets the context for the data collected from the collector. This can be if the data is a counter or gauge or histogram, event type of unit can be added to the context. The context must be treated as an immutable map.- Specified by:
setContextin interfaceMetricReporter- Parameters:
context- Immutable map of context from the collector.
-
-