Class ChainedTimeCollector
- java.lang.Object
-
- org.kairosdb.metrics4j.collectors.helpers.Cloneable
-
- org.kairosdb.metrics4j.collectors.helpers.ChainedCollector<TimeCollector>
-
- org.kairosdb.metrics4j.collectors.impl.ChainedTimeCollector
-
- All Implemented Interfaces:
Serializable,Cloneable,Collector,MetricCollector,TimeCollector,PostConstruct
public class ChainedTimeCollector extends ChainedCollector<TimeCollector> implements TimeCollector
- 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 ChainedTimeCollector()
-
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(Instant value)Place a double value into the collector to be reported.voidput(Instant time, Instant value)Place a double value and associated timestamp into the collector to be reported.TimeCollectorvalidateCollector(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(Instant value)
Description copied from interface:TimeCollectorPlace 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 interfaceTimeCollector- Parameters:
value- Value to be reported.
-
put
public void put(Instant time, Instant value)
Description copied from interface:TimeCollectorPlace 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 interfaceTimeCollector- 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<TimeCollector>- Returns:
- Clone of this collector
-
validateCollector
public TimeCollector validateCollector(Collector collector)
- Specified by:
validateCollectorin classChainedCollector<TimeCollector>
-
-