Class ChainedDoubleCollector
- java.lang.Object
-
- org.kairosdb.metrics4j.collectors.helpers.Cloneable
-
- org.kairosdb.metrics4j.collectors.helpers.ChainedCollector<DoubleCollector>
-
- org.kairosdb.metrics4j.collectors.impl.ChainedDoubleCollector
-
- All Implemented Interfaces:
Serializable,Cloneable,Collector,DoubleCollector,MetricCollector,PostConstruct
public class ChainedDoubleCollector extends ChainedCollector<DoubleCollector> implements DoubleCollector
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.kairosdb.metrics4j.collectors.helpers.ChainedCollector
ChainedCollector.PrefixMetricReporter<C extends Collector>
-
-
Field Summary
-
Fields inherited from class org.kairosdb.metrics4j.collectors.helpers.ChainedCollector
collectors, m_chainedCollectors, prefixes
-
-
Constructor Summary
Constructors Constructor Description ChainedDoubleCollector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collectorclone()The first instance of a collector is unmarshalled from configuration using hocon, all other instances are cloned from that first one so the clone method should pass along any configuration that was set.voidput(double value)Place a double value into the collector to be reported.voidput(Instant time, double value)Place a double value and associated timestamp into the collector to be reported.DoubleCollectorvalidateCollector(Collector collector)-
Methods inherited from class org.kairosdb.metrics4j.collectors.helpers.ChainedCollector
init, reportMetric, setContextProperties
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.kairosdb.metrics4j.collectors.MetricCollector
reportMetric, setContextProperties
-
Methods inherited from interface org.kairosdb.metrics4j.PostConstruct
init
-
-
-
-
Method Detail
-
put
public void put(double value)
Description copied from interface:DoubleCollectorPlace a double value into the collector to be reported. The actual value reported is determined by the collector implementation that is configured for this source.- Specified by:
putin interfaceDoubleCollector- Parameters:
value- Value to be reported.
-
put
public void put(Instant time, double value)
Description copied from interface:DoubleCollectorPlace a double value and associated timestamp into the collector to be reported. The actual value and time reported is determined by the collector implementation that is configured for this source.- Specified by:
putin interfaceDoubleCollector- Parameters:
time- Suggested timestamp to use when reporting.value- Value to be reported.
-
clone
public Collector clone()
Description copied from interface:CollectorThe first instance of a collector is unmarshalled from configuration using hocon, all other instances are cloned from that first one so the clone method should pass along any configuration that was set.- Specified by:
clonein interfaceCollector- Overrides:
clonein classChainedCollector<DoubleCollector>- Returns:
- Clone of this collector
-
validateCollector
public DoubleCollector validateCollector(Collector collector)
- Specified by:
validateCollectorin classChainedCollector<DoubleCollector>
-
-