Package fr.gouv.vitam.common.metrics
Class VitamMetricRegistry
- java.lang.Object
-
- com.codahale.metrics.MetricRegistry
-
- fr.gouv.vitam.common.metrics.VitamMetricRegistry
-
- All Implemented Interfaces:
com.codahale.metrics.Metric
,com.codahale.metrics.MetricSet
public final class VitamMetricRegistry extends com.codahale.metrics.MetricRegistry
A class extending the MetricRegistry to expose safe functions to register metrics.
-
-
Constructor Summary
Constructors Constructor Description VitamMetricRegistry()
VitamMetricRegistry constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends com.codahale.metrics.Metric>
Tregister(java.lang.String name, T metric)
Return theMetric
registered under this name; or create and register a newmetric
if none is registered.-
Methods inherited from class com.codahale.metrics.MetricRegistry
addListener, buildMap, counter, counter, gauge, getCounters, getCounters, getGauges, getGauges, getHistograms, getHistograms, getMeters, getMeters, getMetrics, getNames, getTimers, getTimers, histogram, histogram, meter, meter, name, name, registerAll, registerAll, remove, removeListener, removeMatching, timer, timer
-
-
-
-
Method Detail
-
register
public <T extends com.codahale.metrics.Metric> T register(java.lang.String name, T metric)
Return theMetric
registered under this name; or create and register a newmetric
if none is registered.- Overrides:
register
in classcom.codahale.metrics.MetricRegistry
- Parameters:
name
- the name of the metric- Returns:
- a new or pre-existing
metric
-
-