Interface MetricCategoryRegistry

All Superinterfaces:
BesuService

public interface MetricCategoryRegistry extends BesuService
Allow registration of MetricCategory instances so they are recognised by the metrics system and can be enabled.

Categories must be registered during plugin initialisation.

  • Method Details

    • addMetricCategory

      void addMetricCategory(MetricCategory newMetricCategory)
      Registers a MetricCategory.
      Parameters:
      newMetricCategory - The MetricCategory that is being registered.
    • isMetricCategoryEnabled

      boolean isMetricCategoryEnabled(MetricCategory metricCategory)
      Return true if the metrics are enabled and the metric category is enabled
      Parameters:
      metricCategory - the metric category
      Returns:
      true if the metrics are enabled and the metric category is enabled