Package org.kairosdb.metrics4j.internal
Class StaticCollectorCollection
- java.lang.Object
-
- org.kairosdb.metrics4j.internal.MetricsGatherer
-
- org.kairosdb.metrics4j.internal.StaticCollectorCollection
-
- All Implemented Interfaces:
CollectorCollection
public class StaticCollectorCollection extends MetricsGatherer implements CollectorCollection
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.kairosdb.metrics4j.internal.MetricsGatherer
MetricsGatherer.AgedMetricCollector
-
-
Constructor Summary
Constructors Constructor Description StaticCollectorCollection(ArgKey argKey, Map<String,String> contextProperties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCollector(TagKey tagKey, MetricCollector collector)protected ArgKeygetArgKey()MetricCollectorgetCollector(TagKey tagKey)This method is only called by SourceInvocationHandler but it would never call into a StaticCollectorCollection as they are not used for interface invoked metrics.protected Map<TagKey,MetricsGatherer.AgedMetricCollector>getCollectors()voidremoveCollector(TagKey tagKey)-
Methods inherited from class org.kairosdb.metrics4j.internal.MetricsGatherer
gatherMetrics
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.kairosdb.metrics4j.internal.CollectorCollection
gatherMetrics
-
-
-
-
Method Detail
-
getCollector
public MetricCollector getCollector(TagKey tagKey)
This method is only called by SourceInvocationHandler but it would never call into a StaticCollectorCollection as they are not used for interface invoked metrics.- Specified by:
getCollectorin interfaceCollectorCollection- Parameters:
tagKey- TagKey for collector- Returns:
- MetricCollector
-
removeCollector
public void removeCollector(TagKey tagKey)
-
addCollector
public void addCollector(TagKey tagKey, MetricCollector collector)
-
getArgKey
protected ArgKey getArgKey()
- Specified by:
getArgKeyin classMetricsGatherer
-
getCollectors
protected Map<TagKey,MetricsGatherer.AgedMetricCollector> getCollectors()
- Specified by:
getCollectorsin classMetricsGatherer
-
-