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