Class NoOpMetricRegistry

java.lang.Object
org.apache.flink.runtime.metrics.NoOpMetricRegistry
All Implemented Interfaces:
MetricRegistry

public class NoOpMetricRegistry extends Object implements MetricRegistry
Metric registry which does nothing.
  • Field Details

  • Constructor Details

    • NoOpMetricRegistry

      public NoOpMetricRegistry()
  • Method Details

    • getDelimiter

      public char getDelimiter()
      Description copied from interface: MetricRegistry
      Returns the global delimiter.
      Specified by:
      getDelimiter in interface MetricRegistry
      Returns:
      global delimiter
    • getNumberReporters

      public int getNumberReporters()
      Description copied from interface: MetricRegistry
      Returns the number of registered reporters.
      Specified by:
      getNumberReporters in interface MetricRegistry
    • register

      public void register(org.apache.flink.metrics.Metric metric, String metricName, AbstractMetricGroup group)
      Description copied from interface: MetricRegistry
      Registers a new Metric with this registry.
      Specified by:
      register in interface MetricRegistry
      Parameters:
      metric - the metric that was added
      metricName - the name of the metric
      group - the group that contains the metric
    • unregister

      public void unregister(org.apache.flink.metrics.Metric metric, String metricName, AbstractMetricGroup group)
      Description copied from interface: MetricRegistry
      Un-registers the given Metric with this registry.
      Specified by:
      unregister in interface MetricRegistry
      Parameters:
      metric - the metric that should be removed
      metricName - the name of the metric
      group - the group that contains the metric
    • addSpan

      public void addSpan(org.apache.flink.traces.SpanBuilder spanBuilder)
      Description copied from interface: MetricRegistry
      Add and log a Span.
      Specified by:
      addSpan in interface MetricRegistry
    • getScopeFormats

      public ScopeFormats getScopeFormats()
      Description copied from interface: MetricRegistry
      Returns the scope formats.
      Specified by:
      getScopeFormats in interface MetricRegistry
      Returns:
      scope formats