Package org.apache.storm.metricstore
Class NoOpMetricStore
java.lang.Object
org.apache.storm.metricstore.NoOpMetricStore
- All Implemented Interfaces:
AutoCloseable
,MetricStore
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.storm.metricstore.MetricStore
MetricStore.ScanCallback
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Close the metric store.void
Stores a metric in the store.boolean
populateValue
(Metric metric) Fill out the numeric values for a metric.void
prepare
(Map<String, Object> config, StormMetricsRegistry metricsRegistry) Create metric store instance using the configurations provided via the config map.void
scan
(FilterOptions filter, MetricStore.ScanCallback scanCallback) Scans all metrics in the store and returns the ones matching the specified filtering options.
-
Constructor Details
-
NoOpMetricStore
public NoOpMetricStore()
-
-
Method Details
-
prepare
Description copied from interface:MetricStore
Create metric store instance using the configurations provided via the config map.- Specified by:
prepare
in interfaceMetricStore
- Parameters:
config
- Storm config mapmetricsRegistry
- The Nimbus daemon metrics registry
-
insert
Description copied from interface:MetricStore
Stores a metric in the store.- Specified by:
insert
in interfaceMetricStore
- Parameters:
metric
- Metric to store
-
populateValue
Description copied from interface:MetricStore
Fill out the numeric values for a metric.- Specified by:
populateValue
in interfaceMetricStore
- Parameters:
metric
- Metric to populate- Returns:
- true if the metric was populated, false otherwise
-
close
public void close()Description copied from interface:MetricStore
Close the metric store.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceMetricStore
-
scan
Description copied from interface:MetricStore
Scans all metrics in the store and returns the ones matching the specified filtering options.- Specified by:
scan
in interfaceMetricStore
- Parameters:
filter
- options to filter byscanCallback
- callback for each Metric found
-