Package org.apache.flink.runtime.metrics
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 Summary
Fields Modifier and Type Field Description static MetricRegistryINSTANCE
-
Constructor Summary
Constructors Constructor Description NoOpMetricRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddSpan(org.apache.flink.traces.SpanBuilder spanBuilder)Add and log aSpan.chargetDelimiter()Returns the global delimiter.intgetNumberReporters()Returns the number of registered reporters.ScopeFormatsgetScopeFormats()Returns the scope formats.voidregister(org.apache.flink.metrics.Metric metric, String metricName, AbstractMetricGroup group)Registers a newMetricwith this registry.voidunregister(org.apache.flink.metrics.Metric metric, String metricName, AbstractMetricGroup group)Un-registers the givenMetricwith this registry.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.flink.runtime.metrics.MetricRegistry
getMetricQueryServiceGatewayRpcAddress
-
-
-
-
Field Detail
-
INSTANCE
public static final MetricRegistry INSTANCE
-
-
Method Detail
-
getDelimiter
public char getDelimiter()
Description copied from interface:MetricRegistryReturns the global delimiter.- Specified by:
getDelimiterin interfaceMetricRegistry- Returns:
- global delimiter
-
getNumberReporters
public int getNumberReporters()
Description copied from interface:MetricRegistryReturns the number of registered reporters.- Specified by:
getNumberReportersin interfaceMetricRegistry
-
register
public void register(org.apache.flink.metrics.Metric metric, String metricName, AbstractMetricGroup group)Description copied from interface:MetricRegistryRegisters a newMetricwith this registry.- Specified by:
registerin interfaceMetricRegistry- Parameters:
metric- the metric that was addedmetricName- the name of the metricgroup- the group that contains the metric
-
unregister
public void unregister(org.apache.flink.metrics.Metric metric, String metricName, AbstractMetricGroup group)Description copied from interface:MetricRegistryUn-registers the givenMetricwith this registry.- Specified by:
unregisterin interfaceMetricRegistry- Parameters:
metric- the metric that should be removedmetricName- the name of the metricgroup- the group that contains the metric
-
addSpan
public void addSpan(org.apache.flink.traces.SpanBuilder spanBuilder)
Description copied from interface:MetricRegistryAdd and log aSpan.- Specified by:
addSpanin interfaceMetricRegistry
-
getScopeFormats
public ScopeFormats getScopeFormats()
Description copied from interface:MetricRegistryReturns the scope formats.- Specified by:
getScopeFormatsin interfaceMetricRegistry- Returns:
- scope formats
-
-