Example usage for io.vertx.core VertxOptions getMetricsOptions

List of usage examples for io.vertx.core VertxOptions getMetricsOptions

Introduction

In this page you can find the example usage for io.vertx.core VertxOptions getMetricsOptions.

Prototype

public MetricsOptions getMetricsOptions() 

Source Link

Usage

From source file:com.cyngn.vertx.opentsdb.spi.VertxMetricsFactoryImpl.java

License:Apache License

@Override
public VertxMetrics metrics(Vertx vertx, VertxOptions options) {
    MetricsOptions baseOptions = options.getMetricsOptions();
    OpenTsDbOptions metricsOptions;/*from   ww  w  .  ja va 2 s.  c o  m*/
    if (baseOptions instanceof OpenTsDbOptions) {
        metricsOptions = (OpenTsDbOptions) baseOptions;
    } else {
        metricsOptions = new OpenTsDbOptions(baseOptions.toJson());
    }
    return new VertxMetricsImpl(metricsOptions, vertx);
}