Package org.apache.storm.metricstore
Class NoOpMetricStore
java.lang.Object
org.apache.storm.metricstore.NoOpMetricStore
- All Implemented Interfaces:
- AutoCloseable,- MetricStore
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.apache.storm.metricstore.MetricStoreMetricStore.ScanCallback
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()Close the metric store.voidStores a metric in the store.booleanpopulateValue(Metric metric) Fill out the numeric values for a metric.voidprepare(Map<String, Object> config, StormMetricsRegistry metricsRegistry) Create metric store instance using the configurations provided via the config map.voidscan(FilterOptions filter, MetricStore.ScanCallback scanCallback) Scans all metrics in the store and returns the ones matching the specified filtering options.
- 
Constructor Details- 
NoOpMetricStorepublic NoOpMetricStore()
 
- 
- 
Method Details- 
prepareDescription copied from interface:MetricStoreCreate metric store instance using the configurations provided via the config map.- Specified by:
- preparein interface- MetricStore
- Parameters:
- config- Storm config map
- metricsRegistry- The Nimbus daemon metrics registry
 
- 
insertDescription copied from interface:MetricStoreStores a metric in the store.- Specified by:
- insertin interface- MetricStore
- Parameters:
- metric- Metric to store
 
- 
populateValueDescription copied from interface:MetricStoreFill out the numeric values for a metric.- Specified by:
- populateValuein interface- MetricStore
- Parameters:
- metric- Metric to populate
- Returns:
- true if the metric was populated, false otherwise
 
- 
closepublic void close()Description copied from interface:MetricStoreClose the metric store.- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- MetricStore
 
- 
scanDescription copied from interface:MetricStoreScans all metrics in the store and returns the ones matching the specified filtering options.- Specified by:
- scanin interface- MetricStore
- Parameters:
- filter- options to filter by
- scanCallback- callback for each Metric found
 
 
-