Interface MetricStore

    • Method Detail

      • prepare

        void prepare​(Map<String,​Object> config,
                     StormMetricsRegistry metricsRegistry)
              throws MetricException
        Create metric store instance using the configurations provided via the config map.
        Parameters:
        config - Storm config map
        metricsRegistry - The Nimbus daemon metrics registry
        Throws:
        MetricException - on preparation error
      • populateValue

        boolean populateValue​(Metric metric)
                       throws MetricException
        Fill out the numeric values for a metric.
        Parameters:
        metric - Metric to populate
        Returns:
        true if the metric was populated, false otherwise
        Throws:
        MetricException - on error
      • close

        void close()
        Close the metric store.
        Specified by:
        close in interface AutoCloseable