Package io.vertx.core.spi

Examples of io.vertx.core.spi.VertxMetricsFactory


  private VertxMetrics initialiseMetrics(VertxOptions options) {
    if (options.isMetricsEnabled()) {
      ServiceLoader<VertxMetricsFactory> factories = ServiceLoader.load(VertxMetricsFactory.class);
      if (factories.iterator().hasNext()) {
        VertxMetricsFactory factory = factories.iterator().next();
        return factory.metrics(this, options);
      } else {
        log.warn("Metrics has been set to enabled but no VertxMetricsFactory found on classpath");
        return new DummyVertxMetrics();
      }
    } else {
View Full Code Here

TOP

Related Classes of io.vertx.core.spi.VertxMetricsFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.