Package org.apache.flink.runtime.metrics
Class NoOpMetricRegistry
java.lang.Object
org.apache.flink.runtime.metrics.NoOpMetricRegistry
- All Implemented Interfaces:
MetricRegistry
Metric registry which does nothing.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSpan(org.apache.flink.traces.SpanBuilder spanBuilder) Add and log aSpan.charReturns the global delimiter.intReturns the number of registered reporters.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, waitMethods inherited from interface org.apache.flink.runtime.metrics.MetricRegistry
getMetricQueryServiceGatewayRpcAddress
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
NoOpMetricRegistry
public NoOpMetricRegistry()
-
-
Method Details
-
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
Description copied from interface:MetricRegistryReturns the scope formats.- Specified by:
getScopeFormatsin interfaceMetricRegistry- Returns:
- scope formats
-