Class DropwizardMeterRegistries
java.lang.Object
com.linecorp.armeria.common.metric.DropwizardMeterRegistries
Provides the convenient factory methods for
DropwizardMeterRegistry
with more sensible defaults for
NamingConvention
and HierarchicalNameMapper
.-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends DropwizardMeterRegistry>
TconfigureRegistry
(T meterRegistry) Configures theDropwizardMeterRegistry
with Armeria's defaults.static DropwizardMeterRegistry
Returns a newly-createdDropwizardMeterRegistry
instance with the defaultHierarchicalNameMapper
.static DropwizardMeterRegistry
newRegistry
(com.codahale.metrics.MetricRegistry registry) Returns a newly-createdDropwizardMeterRegistry
instance with the specifiedMetricRegistry
and the defaultHierarchicalNameMapper
.static DropwizardMeterRegistry
newRegistry
(com.codahale.metrics.MetricRegistry registry, HierarchicalNameMapper nameMapper) Returns a newly-createdDropwizardMeterRegistry
instance with the specifiedMetricRegistry
andHierarchicalNameMapper
.static DropwizardMeterRegistry
newRegistry
(com.codahale.metrics.MetricRegistry registry, HierarchicalNameMapper nameMapper, Clock clock) Returns a newly-createdDropwizardMeterRegistry
instance with the specifiedMetricRegistry
,HierarchicalNameMapper
andClock
.static DropwizardMeterRegistry
newRegistry
(HierarchicalNameMapper nameMapper) Returns a newly-createdDropwizardMeterRegistry
instance with the specifiedHierarchicalNameMapper
.static DropwizardMeterRegistry
newRegistry
(HierarchicalNameMapper nameMapper, Clock clock) Returns a newly-createdDropwizardMeterRegistry
instance with the specifiedHierarchicalNameMapper
andClock
.
-
Method Details
-
newRegistry
Returns a newly-createdDropwizardMeterRegistry
instance with the defaultHierarchicalNameMapper
. -
newRegistry
Returns a newly-createdDropwizardMeterRegistry
instance with the specifiedMetricRegistry
and the defaultHierarchicalNameMapper
. -
newRegistry
Returns a newly-createdDropwizardMeterRegistry
instance with the specifiedHierarchicalNameMapper
. -
newRegistry
public static DropwizardMeterRegistry newRegistry(com.codahale.metrics.MetricRegistry registry, HierarchicalNameMapper nameMapper) Returns a newly-createdDropwizardMeterRegistry
instance with the specifiedMetricRegistry
andHierarchicalNameMapper
. -
newRegistry
Returns a newly-createdDropwizardMeterRegistry
instance with the specifiedHierarchicalNameMapper
andClock
. -
newRegistry
public static DropwizardMeterRegistry newRegistry(com.codahale.metrics.MetricRegistry registry, HierarchicalNameMapper nameMapper, Clock clock) Returns a newly-createdDropwizardMeterRegistry
instance with the specifiedMetricRegistry
,HierarchicalNameMapper
andClock
. -
configureRegistry
Configures theDropwizardMeterRegistry
with Armeria's defaults. Useful when using a different implementation ofDropwizardMeterRegistry
, e.g., aJmxMeterRegistry
.- Returns:
- the specified
DropwizardMeterRegistry
-