public class NoOpMetricStore extends Object implements MetricStore
MetricStore.ScanCallback
Constructor and Description |
---|
NoOpMetricStore() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the metric store.
|
void |
insert(Metric metric)
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.
|
public void prepare(Map<String,Object> config, StormMetricsRegistry metricsRegistry)
MetricStore
Create metric store instance using the configurations provided via the config map.
prepare
in interface MetricStore
config
- Storm config mapmetricsRegistry
- The Nimbus daemon metrics registrypublic void insert(Metric metric)
MetricStore
Stores a metric in the store.
insert
in interface MetricStore
metric
- Metric to storepublic boolean populateValue(Metric metric)
MetricStore
Fill out the numeric values for a metric.
populateValue
in interface MetricStore
metric
- Metric to populatepublic void close()
MetricStore
Close the metric store.
close
in interface AutoCloseable
close
in interface MetricStore
public void scan(FilterOptions filter, MetricStore.ScanCallback scanCallback)
MetricStore
Scans all metrics in the store and returns the ones matching the specified filtering options.
scan
in interface MetricStore
filter
- options to filter byscanCallback
- callback for each Metric foundCopyright © 2022 The Apache Software Foundation. All rights reserved.