Class NoOpMetricStore

    • Constructor Detail

      • NoOpMetricStore

        public NoOpMetricStore()
    • Method Detail

      • prepare

        public void prepare​(Map<String,​Object> config,
                            StormMetricsRegistry metricsRegistry)
        Description copied from interface: MetricStore
        Create metric store instance using the configurations provided via the config map.
        Specified by:
        prepare in interface MetricStore
        Parameters:
        config - Storm config map
        metricsRegistry - The Nimbus daemon metrics registry
      • insert

        public void insert​(Metric metric)
        Description copied from interface: MetricStore
        Stores a metric in the store.
        Specified by:
        insert in interface MetricStore
        Parameters:
        metric - Metric to store
      • populateValue

        public boolean populateValue​(Metric metric)
        Description copied from interface: MetricStore
        Fill out the numeric values for a metric.
        Specified by:
        populateValue in interface MetricStore
        Parameters:
        metric - Metric to populate
        Returns:
        true if the metric was populated, false otherwise
      • scan

        public void scan​(FilterOptions filter,
                         MetricStore.ScanCallback scanCallback)
        Description copied from interface: MetricStore
        Scans all metrics in the store and returns the ones matching the specified filtering options.
        Specified by:
        scan in interface MetricStore
        Parameters:
        filter - options to filter by
        scanCallback - callback for each Metric found