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 MetricRegistry
INSTANCE
-
Constructor Summary
Constructors Constructor Description NoOpMetricRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSpan(SpanBuilder spanBuilder)
Add and log aSpan
.char
getDelimiter()
Returns the global delimiter.int
getNumberReporters()
Returns the number of registered reporters.ScopeFormats
getScopeFormats()
Returns the scope formats.void
register(Metric metric, String metricName, AbstractMetricGroup group)
Registers a newMetric
with this registry.void
unregister(Metric metric, String metricName, AbstractMetricGroup group)
Un-registers the givenMetric
with 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:MetricRegistry
Returns the global delimiter.- Specified by:
getDelimiter
in interfaceMetricRegistry
- Returns:
- global delimiter
-
getNumberReporters
public int getNumberReporters()
Description copied from interface:MetricRegistry
Returns the number of registered reporters.- Specified by:
getNumberReporters
in interfaceMetricRegistry
-
register
public void register(Metric metric, String metricName, AbstractMetricGroup group)
Description copied from interface:MetricRegistry
Registers a newMetric
with this registry.- Specified by:
register
in interfaceMetricRegistry
- Parameters:
metric
- the metric that was addedmetricName
- the name of the metricgroup
- the group that contains the metric
-
unregister
public void unregister(Metric metric, String metricName, AbstractMetricGroup group)
Description copied from interface:MetricRegistry
Un-registers the givenMetric
with this registry.- Specified by:
unregister
in interfaceMetricRegistry
- Parameters:
metric
- the metric that should be removedmetricName
- the name of the metricgroup
- the group that contains the metric
-
addSpan
public void addSpan(SpanBuilder spanBuilder)
Description copied from interface:MetricRegistry
Add and log aSpan
.- Specified by:
addSpan
in interfaceMetricRegistry
-
getScopeFormats
public ScopeFormats getScopeFormats()
Description copied from interface:MetricRegistry
Returns the scope formats.- Specified by:
getScopeFormats
in interfaceMetricRegistry
- Returns:
- scope formats
-
-