Package io.vertx.ext.dropwizard
Class DropwizardVertxMetricsFactory
- java.lang.Object
-
- io.vertx.ext.dropwizard.DropwizardVertxMetricsFactory
-
- All Implemented Interfaces:
VertxMetricsFactory
,VertxServiceProvider
public class DropwizardVertxMetricsFactory extends Object implements VertxMetricsFactory
- Author:
- Nick Scavelli
-
-
Constructor Summary
Constructors Constructor Description DropwizardVertxMetricsFactory()
DropwizardVertxMetricsFactory(com.codahale.metrics.MetricRegistry metricRegistry)
Create a metrics factory passing a metric registry used instead of the Dropwizard shared registry.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VertxMetrics
metrics(VertxOptions options)
Create a newVertxMetrics
object.MetricsOptions
newOptions()
Create an empty metrics options.MetricsOptions
newOptions(JsonObject jsonObject)
Create metrics options from the providedjsonObject
.MetricsOptions
newOptions(MetricsOptions options)
Create metrics options from the providedoptions
.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.vertx.core.spi.VertxMetricsFactory
init
-
-
-
-
Constructor Detail
-
DropwizardVertxMetricsFactory
public DropwizardVertxMetricsFactory()
-
DropwizardVertxMetricsFactory
public DropwizardVertxMetricsFactory(com.codahale.metrics.MetricRegistry metricRegistry)
Create a metrics factory passing a metric registry used instead of the Dropwizard shared registry.- Parameters:
metricRegistry
- the metricRegistry
-
-
Method Detail
-
metrics
public VertxMetrics metrics(VertxOptions options)
Description copied from interface:VertxMetricsFactory
Create a newVertxMetrics
object. No specific thread and context can be expected when this method is called.- Specified by:
metrics
in interfaceVertxMetricsFactory
- Parameters:
options
- the metrics configuration option- Returns:
- the metrics implementation
-
newOptions
public MetricsOptions newOptions(MetricsOptions options)
Description copied from interface:VertxMetricsFactory
Create metrics options from the providedoptions
.Providers can override this method to provide a custom metrics options subclass that exposes custom configuration.
It is used when a Vert.x instance is created with a
MetricsOptions
instance.- Specified by:
newOptions
in interfaceVertxMetricsFactory
- Parameters:
options
- new metrics options- Returns:
- new metrics options
-
newOptions
public MetricsOptions newOptions()
Description copied from interface:VertxMetricsFactory
Create an empty metrics options. Providers can override this method to provide a custom metrics options subclass that exposes custom configuration.- Specified by:
newOptions
in interfaceVertxMetricsFactory
- Returns:
- new metrics options
-
newOptions
public MetricsOptions newOptions(JsonObject jsonObject)
Description copied from interface:VertxMetricsFactory
Create metrics options from the providedjsonObject
.Providers can override this method to provide a custom metrics options subclass that exposes custom configuration.
- Specified by:
newOptions
in interfaceVertxMetricsFactory
- Parameters:
jsonObject
- json provided by the user- Returns:
- new metrics options
-
-