public class DropwizardVertxMetricsFactory extends Object implements VertxMetricsFactory
Constructor and Description |
---|
DropwizardVertxMetricsFactory() |
DropwizardVertxMetricsFactory(com.codahale.metrics.MetricRegistry metricRegistry)
Create a metrics factory passing a metric registry used instead of the Dropwizard shared registry.
|
Modifier and Type | Method and Description |
---|---|
VertxMetrics |
metrics(VertxOptions options)
Create a new
VertxMetrics object.
No specific thread and context can be expected when this method is called. |
MetricsOptions |
newOptions()
Create an empty metrics options.
|
MetricsOptions |
newOptions(JsonObject jsonObject)
Create metrics options from the provided
jsonObject . |
MetricsOptions |
newOptions(MetricsOptions options)
Create metrics options from the provided
options . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
init
public DropwizardVertxMetricsFactory()
public DropwizardVertxMetricsFactory(com.codahale.metrics.MetricRegistry metricRegistry)
metricRegistry
- the metricRegistrypublic VertxMetrics metrics(VertxOptions options)
VertxMetricsFactory
VertxMetrics
object.
No specific thread and context can be expected when this method is called.metrics
in interface VertxMetricsFactory
options
- the metrics configuration optionpublic MetricsOptions newOptions(MetricsOptions options)
VertxMetricsFactory
options
.
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.
newOptions
in interface VertxMetricsFactory
options
- new metrics optionspublic MetricsOptions newOptions()
VertxMetricsFactory
Launcher
class when creating new options when building a CLI Vert.x.newOptions
in interface VertxMetricsFactory
public MetricsOptions newOptions(JsonObject jsonObject)
VertxMetricsFactory
jsonObject
.
Providers can override this method to provide a custom metrics options subclass that exposes custom configuration.
It is used by the Launcher
class when creating new options when building a CLI Vert.x.
newOptions
in interface VertxMetricsFactory
jsonObject
- json provided by the userCopyright © 2024 Eclipse. All rights reserved.