Package io.helidon.metrics
Class Registry
- java.lang.Object
-
- org.eclipse.microprofile.metrics.MetricRegistry
-
- io.helidon.metrics.Registry
-
- All Implemented Interfaces:
io.helidon.common.metrics.InternalBridge.MetricRegistry
public class Registry extends MetricRegistry implements io.helidon.common.metrics.InternalBridge.MetricRegistry
Metrics registry.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.microprofile.metrics.MetricRegistry
MetricRegistry.Type
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Registry(MetricRegistry.Type type)
Create a registry of a certain type.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ConcurrentGauge
concurrentGauge(String name)
ConcurrentGauge
concurrentGauge(String name, Tag... tags)
ConcurrentGauge
concurrentGauge(Metadata metadata)
ConcurrentGauge
concurrentGauge(Metadata metadata, Tag... tags)
Counter
counter(io.helidon.common.metrics.InternalBridge.Metadata metadata)
Finds or creates a newCounter
using the specified version-neutralMetadata
.Counter
counter(io.helidon.common.metrics.InternalBridge.Metadata metadata, Map<String,String> tags)
Finds or creates a new Counter using the specified version-neutralMetadata
and version-neutralTag
s.Counter
counter(String name)
Finds or creates a newCounter
using the specified name.Counter
counter(String name, Tag... tags)
Counter
counter(Metadata metadata)
Counter
counter(Metadata metadata, Tag... tags)
static Registry
create(MetricRegistry.Type type)
Create a registry of a certain type.boolean
empty()
Determines if registry is empty.SortedMap<io.helidon.common.metrics.InternalBridge.MetricID,Counter>
getBridgeCounters()
Returns allCounter
metrics in the registry as a map of version-neutralInternalBridge.MetricID
toMetric
entries.SortedMap<io.helidon.common.metrics.InternalBridge.MetricID,Gauge>
getBridgeGauges()
Returns allGauge
metrics in the registry as a map of version-neutralInternalBridge.MetricID
toMetric
entries.SortedMap<io.helidon.common.metrics.InternalBridge.MetricID,Histogram>
getBridgeHistograms()
Returns allHistogram
metrics in the registry as a map of version-neutralInternalBridge.MetricID
toMetric
entries.SortedMap<io.helidon.common.metrics.InternalBridge.MetricID,Meter>
getBridgeMeters()
Returns allMeter
metrics in the registry as a map of version-neutralInternalBridge.MetricID
toMetric
entries.Optional<Map.Entry<? extends io.helidon.common.metrics.InternalBridge.MetricID,? extends Metric>>
getBridgeMetric(String metricName)
Map<io.helidon.common.metrics.InternalBridge.MetricID,Metric>
getBridgeMetrics()
Returns all metrics from the registry as a map of version-neutralInternalBridge.MetricID
s toMetric
s.Map<io.helidon.common.metrics.InternalBridge.MetricID,Metric>
getBridgeMetrics(Predicate<? super Map.Entry<? extends io.helidon.common.metrics.InternalBridge.MetricID,? extends Metric>> predicate)
Returns all metrics from the registry as a map of version-neutralInternalBridge.MetricID
s toMetric
s, filtered by the providedPredicate
.SortedMap<io.helidon.common.metrics.InternalBridge.MetricID,Timer>
getBridgeTimers()
Returns allTimer
metrics in the registry as a map of version-neutralInternalBridge.MetricID
toMetric
entries.SortedMap<MetricID,ConcurrentGauge>
getConcurrentGauges()
SortedMap<MetricID,ConcurrentGauge>
getConcurrentGauges(MetricFilter filter)
SortedMap<MetricID,Counter>
getCounters()
SortedMap<MetricID,Counter>
getCounters(MetricFilter filter)
SortedMap<MetricID,Gauge>
getGauges()
SortedMap<MetricID,Gauge>
getGauges(MetricFilter filter)
SortedMap<MetricID,Histogram>
getHistograms()
SortedMap<MetricID,Histogram>
getHistograms(MetricFilter filter)
Map<String,Metadata>
getMetadata()
SortedMap<MetricID,Meter>
getMeters()
SortedMap<MetricID,Meter>
getMeters(MetricFilter filter)
Optional<Metric>
getMetric(String metricName)
Access a metric by name.SortedSet<MetricID>
getMetricIDs()
Map<MetricID,Metric>
getMetrics()
SortedSet<String>
getNames()
Returns the names of all metrics in the registry.Optional<Map.Entry<? extends Metric,List<MetricID>>>
getOptionalMetricWithIDsEntry(String metricName)
Get internal map entry given a metric name.SortedMap<MetricID,Timer>
getTimers()
SortedMap<MetricID,Timer>
getTimers(MetricFilter filter)
Histogram
histogram(io.helidon.common.metrics.InternalBridge.Metadata metadata)
Finds or creates a newHistogram
using the specified version-neutralMetadata
.Histogram
histogram(io.helidon.common.metrics.InternalBridge.Metadata metadata, Map<String,String> tags)
Finds or creates a newHistogram
using the specified version-neutralMetadata
and version-neutralTag
s.Histogram
histogram(String name)
Finds or creates a newHistogram
using the specifiedMetadata
.Histogram
histogram(String name, Tag... tags)
Histogram
histogram(Metadata metadata)
Histogram
histogram(Metadata metadata, Tag... tags)
Meter
meter(io.helidon.common.metrics.InternalBridge.Metadata metadata)
Finds or creates a newMeter
using the specified version-neutralMetadata
.Meter
meter(io.helidon.common.metrics.InternalBridge.Metadata metadata, Map<String,String> tags)
Finds or creates a newMeter
using the specified version-neutralMetadata
and version-neutralTag
s.Meter
meter(String name)
Finds or creates a newMeter
using the specified name.Meter
meter(String name, Tag... tags)
Meter
meter(Metadata metadata)
Meter
meter(Metadata metadata, Tag... tags)
<T extends Metric>
Tregister(io.helidon.common.metrics.InternalBridge.Metadata metadata, T metric)
Registers a new metric using the specified version-neutralInternalBridge.Metadata
and the typed metric itself.<T extends Metric>
Tregister(io.helidon.common.metrics.InternalBridge.MetricID metricID, T metric)
Registers a new metric using the specified version-neutralInternalBridge.MetricID
and the typed metric itself.<T extends Metric>
Tregister(String name, T metric)
<T extends Metric>
Tregister(Metadata metadata, T metric)
<T extends Metric>
Tregister(Metadata metadata, T metric, Tag... tags)
boolean
remove(String name)
Removes a metric by name.boolean
remove(MetricID metricID)
Removes a metric by ID.void
removeMatching(MetricFilter filter)
Timer
timer(io.helidon.common.metrics.InternalBridge.Metadata metadata)
Finds or creates a newTimer
using the specified version-neutralMetadata
.Timer
timer(io.helidon.common.metrics.InternalBridge.Metadata metadata, Map<String,String> tags)
Finds or creates a newTimer
using the specified version-neutralMetadata
and version-neutralTag
s.Timer
timer(String name)
Finds or creates a newTimer
using the specified name.Timer
timer(String name, Tag... tags)
Timer
timer(Metadata metadata)
Timer
timer(Metadata metadata, Tag... tags)
String
toString()
String
type()
Returns type of this registry.-
Methods inherited from class org.eclipse.microprofile.metrics.MetricRegistry
name, name
-
-
-
-
Constructor Detail
-
Registry
protected Registry(MetricRegistry.Type type)
Create a registry of a certain type.- Parameters:
type
- Registry type.
-
-
Method Detail
-
create
public static Registry create(MetricRegistry.Type type)
Create a registry of a certain type.- Parameters:
type
- Registry type.- Returns:
- The newly created registry.
-
register
public <T extends Metric> T register(String name, T metric) throws IllegalArgumentException
- Specified by:
register
in classMetricRegistry
- Throws:
IllegalArgumentException
-
register
public <T extends Metric> T register(Metadata metadata, T metric) throws IllegalArgumentException
- Specified by:
register
in classMetricRegistry
- Throws:
IllegalArgumentException
-
register
public <T extends Metric> T register(Metadata metadata, T metric, Tag... tags) throws IllegalArgumentException
- Specified by:
register
in classMetricRegistry
- Throws:
IllegalArgumentException
-
counter
public Counter counter(String name)
Description copied from interface:io.helidon.common.metrics.InternalBridge.MetricRegistry
Finds or creates a newCounter
using the specified name.- Specified by:
counter
in interfaceio.helidon.common.metrics.InternalBridge.MetricRegistry
- Specified by:
counter
in classMetricRegistry
- Parameters:
name
- name for the newCounter
- Returns:
- the
Counter
-
counter
public Counter counter(Metadata metadata)
- Specified by:
counter
in classMetricRegistry
-
counter
public Counter counter(io.helidon.common.metrics.InternalBridge.Metadata metadata)
Description copied from interface:io.helidon.common.metrics.InternalBridge.MetricRegistry
Finds or creates a newCounter
using the specified version-neutralMetadata
.- Specified by:
counter
in interfaceio.helidon.common.metrics.InternalBridge.MetricRegistry
- Parameters:
metadata
- used in locating and, if needed, building the counter- Returns:
- the
Counter
-
counter
public Counter counter(io.helidon.common.metrics.InternalBridge.Metadata metadata, Map<String,String> tags)
Description copied from interface:io.helidon.common.metrics.InternalBridge.MetricRegistry
Finds or creates a new Counter using the specified version-neutralMetadata
and version-neutralTag
s.- Specified by:
counter
in interfaceio.helidon.common.metrics.InternalBridge.MetricRegistry
- Parameters:
metadata
- used in locating and, if needed, building the countertags
- used in locating and, if needed, building the counter- Returns:
- the
Counter
-
counter
public Counter counter(String name, Tag... tags)
- Specified by:
counter
in classMetricRegistry
-
counter
public Counter counter(Metadata metadata, Tag... tags)
- Specified by:
counter
in classMetricRegistry
-
histogram
public Histogram histogram(String name)
Description copied from interface:io.helidon.common.metrics.InternalBridge.MetricRegistry
Finds or creates a newHistogram
using the specifiedMetadata
.- Specified by:
histogram
in interfaceio.helidon.common.metrics.InternalBridge.MetricRegistry
- Specified by:
histogram
in classMetricRegistry
- Parameters:
name
- used in locating and, if needed, building the histogram- Returns:
- the
Histogram
-
histogram
public Histogram histogram(Metadata metadata)
- Specified by:
histogram
in classMetricRegistry
-
histogram
public Histogram histogram(io.helidon.common.metrics.InternalBridge.Metadata metadata)
Description copied from interface:io.helidon.common.metrics.InternalBridge.MetricRegistry
Finds or creates a newHistogram
using the specified version-neutralMetadata
.- Specified by:
histogram
in interfaceio.helidon.common.metrics.InternalBridge.MetricRegistry
- Parameters:
metadata
- used in locating and, if needed, building the histogram- Returns:
- the
Histogram
-
histogram
public Histogram histogram(io.helidon.common.metrics.InternalBridge.Metadata metadata, Map<String,String> tags)
Description copied from interface:io.helidon.common.metrics.InternalBridge.MetricRegistry
Finds or creates a newHistogram
using the specified version-neutralMetadata
and version-neutralTag
s.- Specified by:
histogram
in interfaceio.helidon.common.metrics.InternalBridge.MetricRegistry
- Parameters:
metadata
- used in locating and, if needed, building the histogramtags
- used in locating and, if needed, building the histogram- Returns:
- the
Histogram
-
histogram
public Histogram histogram(String name, Tag... tags)
- Specified by:
histogram
in classMetricRegistry
-
histogram
public Histogram histogram(Metadata metadata, Tag... tags)
- Specified by:
histogram
in classMetricRegistry
-
meter
public Meter meter(String name)
Description copied from interface:io.helidon.common.metrics.InternalBridge.MetricRegistry
Finds or creates a newMeter
using the specified name.- Specified by:
meter
in interfaceio.helidon.common.metrics.InternalBridge.MetricRegistry
- Specified by:
meter
in classMetricRegistry
- Parameters:
name
- used in locating and, if needed, building the meter- Returns:
- the
Meter
-
meter
public Meter meter(Metadata metadata)
- Specified by:
meter
in classMetricRegistry
-
meter
public Meter meter(io.helidon.common.metrics.InternalBridge.Metadata metadata)
Description copied from interface:io.helidon.common.metrics.InternalBridge.MetricRegistry
Finds or creates a newMeter
using the specified version-neutralMetadata
.- Specified by:
meter
in interfaceio.helidon.common.metrics.InternalBridge.MetricRegistry
- Parameters:
metadata
- used in locating and, if needed, building the meter- Returns:
- the
Meter
-
meter
public Meter meter(io.helidon.common.metrics.InternalBridge.Metadata metadata, Map<String,String> tags)
Description copied from interface:io.helidon.common.metrics.InternalBridge.MetricRegistry
Finds or creates a newMeter
using the specified version-neutralMetadata
and version-neutralTag
s.- Specified by:
meter
in interfaceio.helidon.common.metrics.InternalBridge.MetricRegistry
- Parameters:
metadata
- used in locating and, if needed, building the metertags
- used in locating and, if needed, building the meter- Returns:
- the
Meter
-
meter
public Meter meter(String name, Tag... tags)
- Specified by:
meter
in classMetricRegistry
-
meter
public Meter meter(Metadata metadata, Tag... tags)
- Specified by:
meter
in classMetricRegistry
-
timer
public Timer timer(String name)
Description copied from interface:io.helidon.common.metrics.InternalBridge.MetricRegistry
Finds or creates a newTimer
using the specified name.- Specified by:
timer
in interfaceio.helidon.common.metrics.InternalBridge.MetricRegistry
- Specified by:
timer
in classMetricRegistry
- Parameters:
name
- used in locating and, if needed, building the timer- Returns:
- the
Timer
-
timer
public Timer timer(Metadata metadata)
- Specified by:
timer
in classMetricRegistry
-
timer
public Timer timer(io.helidon.common.metrics.InternalBridge.Metadata metadata)
Description copied from interface:io.helidon.common.metrics.InternalBridge.MetricRegistry
Finds or creates a newTimer
using the specified version-neutralMetadata
.- Specified by:
timer
in interfaceio.helidon.common.metrics.InternalBridge.MetricRegistry
- Parameters:
metadata
- used in locating and, if needed, building the timer- Returns:
- the
Timer
-
timer
public Timer timer(io.helidon.common.metrics.InternalBridge.Metadata metadata, Map<String,String> tags)
Description copied from interface:io.helidon.common.metrics.InternalBridge.MetricRegistry
Finds or creates a newTimer
using the specified version-neutralMetadata
and version-neutralTag
s.- Specified by:
timer
in interfaceio.helidon.common.metrics.InternalBridge.MetricRegistry
- Parameters:
metadata
- used in locating and, if needed, building the timertags
- used in locationg and, if needed, building the timer- Returns:
- the
Timer
-
timer
public Timer timer(String name, Tag... tags)
- Specified by:
timer
in classMetricRegistry
-
timer
public Timer timer(Metadata metadata, Tag... tags)
- Specified by:
timer
in classMetricRegistry
-
concurrentGauge
public ConcurrentGauge concurrentGauge(String name)
- Specified by:
concurrentGauge
in classMetricRegistry
-
concurrentGauge
public ConcurrentGauge concurrentGauge(Metadata metadata)
- Specified by:
concurrentGauge
in classMetricRegistry
-
concurrentGauge
public ConcurrentGauge concurrentGauge(String name, Tag... tags)
- Specified by:
concurrentGauge
in classMetricRegistry
-
concurrentGauge
public ConcurrentGauge concurrentGauge(Metadata metadata, Tag... tags)
- Specified by:
concurrentGauge
in classMetricRegistry
-
remove
public boolean remove(String name)
Removes a metric by name. Synchronized for atomic update of more than one internal map.- Specified by:
remove
in interfaceio.helidon.common.metrics.InternalBridge.MetricRegistry
- Specified by:
remove
in classMetricRegistry
- Parameters:
name
- Name of the metric.- Returns:
- Outcome of removal.
-
remove
public boolean remove(MetricID metricID)
Removes a metric by ID. Synchronized for atomic update of more than one internal map.- Specified by:
remove
in classMetricRegistry
- Parameters:
metricID
- ID of metric.- Returns:
- Outcome of removal.
-
removeMatching
public void removeMatching(MetricFilter filter)
- Specified by:
removeMatching
in classMetricRegistry
-
getNames
public SortedSet<String> getNames()
Description copied from interface:io.helidon.common.metrics.InternalBridge.MetricRegistry
Returns the names of all metrics in the registry.- Specified by:
getNames
in interfaceio.helidon.common.metrics.InternalBridge.MetricRegistry
- Specified by:
getNames
in classMetricRegistry
- Returns:
- a
Set
containing the names
-
getMetricIDs
public SortedSet<MetricID> getMetricIDs()
- Specified by:
getMetricIDs
in classMetricRegistry
-
getGauges
public SortedMap<MetricID,Gauge> getGauges()
- Specified by:
getGauges
in classMetricRegistry
-
getGauges
public SortedMap<MetricID,Gauge> getGauges(MetricFilter filter)
- Specified by:
getGauges
in classMetricRegistry
-
getCounters
public SortedMap<MetricID,Counter> getCounters()
- Specified by:
getCounters
in classMetricRegistry
-
getCounters
public SortedMap<MetricID,Counter> getCounters(MetricFilter filter)
- Specified by:
getCounters
in classMetricRegistry
-
getHistograms
public SortedMap<MetricID,Histogram> getHistograms()
- Specified by:
getHistograms
in classMetricRegistry
-
getHistograms
public SortedMap<MetricID,Histogram> getHistograms(MetricFilter filter)
- Specified by:
getHistograms
in classMetricRegistry
-
getMeters
public SortedMap<MetricID,Meter> getMeters()
- Specified by:
getMeters
in classMetricRegistry
-
getMeters
public SortedMap<MetricID,Meter> getMeters(MetricFilter filter)
- Specified by:
getMeters
in classMetricRegistry
-
getTimers
public SortedMap<MetricID,Timer> getTimers()
- Specified by:
getTimers
in classMetricRegistry
-
getTimers
public SortedMap<MetricID,Timer> getTimers(MetricFilter filter)
- Specified by:
getTimers
in classMetricRegistry
-
getConcurrentGauges
public SortedMap<MetricID,ConcurrentGauge> getConcurrentGauges()
- Specified by:
getConcurrentGauges
in classMetricRegistry
-
getConcurrentGauges
public SortedMap<MetricID,ConcurrentGauge> getConcurrentGauges(MetricFilter filter)
- Specified by:
getConcurrentGauges
in classMetricRegistry
-
getMetadata
public Map<String,Metadata> getMetadata()
- Specified by:
getMetadata
in classMetricRegistry
-
getMetrics
public Map<MetricID,Metric> getMetrics()
- Specified by:
getMetrics
in classMetricRegistry
-
getBridgeMetrics
public Map<io.helidon.common.metrics.InternalBridge.MetricID,Metric> getBridgeMetrics(Predicate<? super Map.Entry<? extends io.helidon.common.metrics.InternalBridge.MetricID,? extends Metric>> predicate)
Description copied from interface:io.helidon.common.metrics.InternalBridge.MetricRegistry
Returns all metrics from the registry as a map of version-neutralInternalBridge.MetricID
s toMetric
s, filtered by the providedPredicate
.- Specified by:
getBridgeMetrics
in interfaceio.helidon.common.metrics.InternalBridge.MetricRegistry
- Parameters:
predicate
- for selecting which metrics to include in the result- Returns:
- the metrics matching the criteria expressed in the predicate
-
getBridgeMetrics
public Map<io.helidon.common.metrics.InternalBridge.MetricID,Metric> getBridgeMetrics()
Description copied from interface:io.helidon.common.metrics.InternalBridge.MetricRegistry
Returns all metrics from the registry as a map of version-neutralInternalBridge.MetricID
s toMetric
s.- Specified by:
getBridgeMetrics
in interfaceio.helidon.common.metrics.InternalBridge.MetricRegistry
- Returns:
- the metrics
-
getBridgeGauges
public SortedMap<io.helidon.common.metrics.InternalBridge.MetricID,Gauge> getBridgeGauges()
Description copied from interface:io.helidon.common.metrics.InternalBridge.MetricRegistry
Returns allGauge
metrics in the registry as a map of version-neutralInternalBridge.MetricID
toMetric
entries.- Specified by:
getBridgeGauges
in interfaceio.helidon.common.metrics.InternalBridge.MetricRegistry
- Returns:
- a map of all gauges
-
getBridgeCounters
public SortedMap<io.helidon.common.metrics.InternalBridge.MetricID,Counter> getBridgeCounters()
Description copied from interface:io.helidon.common.metrics.InternalBridge.MetricRegistry
Returns allCounter
metrics in the registry as a map of version-neutralInternalBridge.MetricID
toMetric
entries.- Specified by:
getBridgeCounters
in interfaceio.helidon.common.metrics.InternalBridge.MetricRegistry
- Returns:
- a map of all counters
-
getBridgeHistograms
public SortedMap<io.helidon.common.metrics.InternalBridge.MetricID,Histogram> getBridgeHistograms()
Description copied from interface:io.helidon.common.metrics.InternalBridge.MetricRegistry
Returns allHistogram
metrics in the registry as a map of version-neutralInternalBridge.MetricID
toMetric
entries.- Specified by:
getBridgeHistograms
in interfaceio.helidon.common.metrics.InternalBridge.MetricRegistry
- Returns:
- a map of all histograms
-
getBridgeMeters
public SortedMap<io.helidon.common.metrics.InternalBridge.MetricID,Meter> getBridgeMeters()
Description copied from interface:io.helidon.common.metrics.InternalBridge.MetricRegistry
Returns allMeter
metrics in the registry as a map of version-neutralInternalBridge.MetricID
toMetric
entries.- Specified by:
getBridgeMeters
in interfaceio.helidon.common.metrics.InternalBridge.MetricRegistry
- Returns:
- a map of all meters
-
getBridgeTimers
public SortedMap<io.helidon.common.metrics.InternalBridge.MetricID,Timer> getBridgeTimers()
Description copied from interface:io.helidon.common.metrics.InternalBridge.MetricRegistry
Returns allTimer
metrics in the registry as a map of version-neutralInternalBridge.MetricID
toMetric
entries.- Specified by:
getBridgeTimers
in interfaceio.helidon.common.metrics.InternalBridge.MetricRegistry
- Returns:
- a map of all timers
-
register
public <T extends Metric> T register(io.helidon.common.metrics.InternalBridge.Metadata metadata, T metric) throws IllegalArgumentException
Description copied from interface:io.helidon.common.metrics.InternalBridge.MetricRegistry
Registers a new metric using the specified version-neutralInternalBridge.Metadata
and the typed metric itself.- Specified by:
register
in interfaceio.helidon.common.metrics.InternalBridge.MetricRegistry
- Type Parameters:
T
- the metric type- Parameters:
metadata
- the metadata used in registering the metricmetric
- the metric to register- Returns:
- the registered metric
- Throws:
IllegalArgumentException
- if a metric with the same name but inconsistent metadata is already registered
-
register
public <T extends Metric> T register(io.helidon.common.metrics.InternalBridge.MetricID metricID, T metric) throws IllegalArgumentException
Description copied from interface:io.helidon.common.metrics.InternalBridge.MetricRegistry
Registers a new metric using the specified version-neutralInternalBridge.MetricID
and the typed metric itself.- Specified by:
register
in interfaceio.helidon.common.metrics.InternalBridge.MetricRegistry
- Type Parameters:
T
- the metric type- Parameters:
metricID
- the metric ID to be used in registering the metricmetric
- the metric to register- Returns:
- the registered metric
- Throws:
IllegalArgumentException
- if a metric with the same identify but inconsistent metadata is already registered
-
getMetric
public Optional<Metric> getMetric(String metricName)
Access a metric by name. Used by FT library.- Parameters:
metricName
- Metric name.- Returns:
- Optional metric.
-
getBridgeMetric
public Optional<Map.Entry<? extends io.helidon.common.metrics.InternalBridge.MetricID,? extends Metric>> getBridgeMetric(String metricName)
Description copied from interface:io.helidon.common.metrics.InternalBridge.MetricRegistry
Returns anOptional
of theMetricID
andMetric
of the metric matching the given name. If multiple metrics match on the name (this can happen in MP Metrics 2.0 if the metrics were created with different tags) then the method returns the first metric with that name, if any.- Specified by:
getBridgeMetric
in interfaceio.helidon.common.metrics.InternalBridge.MetricRegistry
- Parameters:
metricName
- name of the metric to find- Returns:
Optional
of aMap.Entry
for the matching ID and metric
-
type
public String type()
Returns type of this registry.- Returns:
- The type.
-
empty
public boolean empty()
Determines if registry is empty.- Returns:
- Outcome of test.
-
getOptionalMetricWithIDsEntry
public Optional<Map.Entry<? extends Metric,List<MetricID>>> getOptionalMetricWithIDsEntry(String metricName)
Get internal map entry given a metric name. Synchronized for atomic access of more than one internal map.- Parameters:
metricName
- The metric name.- Returns:
- Optional map entry..
-
-