Top Description Methods
io.vertx.core.spi

public Interface VertxMetricsFactory

extends VertxServiceProvider
Imports
io.vertx.core.VertxOptions, io.vertx.core.impl.VertxBuilder, io.vertx.core.impl.launcher.commands.BareCommand, io.vertx.core.json.JsonObject, io.vertx.core.metrics.MetricsOptions, io.vertx.core.metrics.impl.DummyVertxMetrics, io.vertx.core.spi.metrics.VertxMetrics

A factory for the plugable metrics SPI.
Author
Nick Scavelli

Method Summary

Modifier and TypeMethod and Description
public default void
init(VertxBuilder
the builder
builder
)

Implements io.vertx.core.spi.VertxServiceProvider.init.

Let the provider initialize the Vert.x builder.

public VertxMetrics

Returns:

the metrics implementation
metrics
(VertxOptions
the metrics configuration option
options
)

Create a new io.vertx.core.spi.metrics.VertxMetrics object.

public default MetricsOptions

Returns:

new metrics options
newOptions
()

Create an empty metrics options.

public default MetricsOptions

Returns:

new metrics options
newOptions
(MetricsOptions
new metrics options
options
)

Create metrics options from the provided options.

public default MetricsOptions

Returns:

new metrics options
newOptions
(JsonObject
json provided by the user
jsonObject
)
References Deprecated JsonObject is deprecated or references (maybe indirectly) at least one deprecated element.

Create metrics options from the provided jsonObject.

Method Detail

initback to summary
public default void init(VertxBuilder builder)

Implements io.vertx.core.spi.VertxServiceProvider.init.

Doc from io.vertx.core.spi.VertxServiceProvider.init.

Let the provider initialize the Vert.x builder.

Parameters
builder:VertxBuilder

the builder

Annotations
@Override
metricsback to summary
public VertxMetrics metrics(VertxOptions options)

Create a new io.vertx.core.spi.metrics.VertxMetrics object.

No specific thread and context can be expected when this method is called.

Parameters
options:VertxOptions

the metrics configuration option

Returns:VertxMetrics

the metrics implementation

newOptionsback to summary
public default MetricsOptions newOptions()

Create an empty metrics options. Providers can override this method to provide a custom metrics options subclass that exposes custom configuration. It is used by the io.vertx.core.Launcher class when creating new options when building a CLI Vert.x.

Implementation Specification

The default implementation returns MetricsOptions#MetricsOptions()

Returns:MetricsOptions

new metrics options

newOptionsback to summary
public default MetricsOptions newOptions(MetricsOptions options)

Create metrics options from the provided 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.

Implementation Specification

The default implementation calls newOptions(JsonObject) with MetricsOptions#toJson()

Parameters
options:MetricsOptions

new metrics options

Returns:MetricsOptions

new metrics options

newOptionsback to summary
public default MetricsOptions newOptions(JsonObject jsonObject)

References Deprecated

JsonObject is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Create metrics options from the provided jsonObject.

Providers can override this method to provide a custom metrics options subclass that exposes custom configuration.

It is used by the io.vertx.core.Launcher class when creating new options when building a CLI Vert.x.

Implementation Specification

The default implementation calls MetricsOptions#MetricsOptions(JsonObject) )} with jsonObject

Parameters
jsonObject:JsonObject

json provided by the user

Returns:MetricsOptions

new metrics options