当前位置: 首页>>代码示例>>Java>>正文


Java VertxMetrics类代码示例

本文整理汇总了Java中io.vertx.core.spi.metrics.VertxMetrics的典型用法代码示例。如果您正苦于以下问题:Java VertxMetrics类的具体用法?Java VertxMetrics怎么用?Java VertxMetrics使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


VertxMetrics类属于io.vertx.core.spi.metrics包,在下文中一共展示了VertxMetrics类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: metrics

import io.vertx.core.spi.metrics.VertxMetrics; //导入依赖的package包/类
@Override
public final VertxMetrics metrics(@Nonnull final Vertx vertx, @Nonnull final VertxOptions options) {
    final MetricsOptions metricsOptions = options.getMetricsOptions();

    final StatfulMetricsOptions statfulMetricsOptions;
    if (metricsOptions instanceof StatfulMetricsOptions) {
        statfulMetricsOptions = (StatfulMetricsOptions) metricsOptions;
    } else {
        statfulMetricsOptions = new StatfulMetricsOptions();
    }

    // check if there is a configuration path set, if so, load configuration from file
    final StatfulMetricsOptions effective;
    String configPath = statfulMetricsOptions.getConfigPath();
    if (Strings.isNullOrEmpty(configPath)) {
        effective = statfulMetricsOptions;
    } else {
        effective = buildFromFile(vertx, configPath);
    }

    return new VertxMetricsImpl(vertx, effective);
}
 
开发者ID:statful,项目名称:statful-client-vertx,代码行数:23,代码来源:StatfulMetricsFactoryImpl.java

示例2: metrics

import io.vertx.core.spi.metrics.VertxMetrics; //导入依赖的package包/类
@Override
public VertxMetrics metrics(Vertx vertx, VertxOptions options) {
  MetricsOptions metricsOptions = options.getMetricsOptions();
  VertxWarp10Options vertxWarp10Options;
  if (metricsOptions instanceof VertxWarp10Options) {
    vertxWarp10Options = (VertxWarp10Options) metricsOptions;
  } else {
    vertxWarp10Options = new VertxWarp10Options(metricsOptions.toJson());
  }
  return new VertxMetricsImpl(vertx, vertxWarp10Options);
}
 
开发者ID:slambour,项目名称:vertx-warp10-metrics,代码行数:12,代码来源:VertxMetricsFactoryImpl.java

示例3: metrics

import io.vertx.core.spi.metrics.VertxMetrics; //导入依赖的package包/类
@Override
public VertxMetrics metrics(Vertx vertx, VertxOptions vertxOptions) {
  MetricsOptions metricsOptions = vertxOptions.getMetricsOptions();
  VertxHawkularOptions vertxHawkularOptions;
  if (metricsOptions instanceof VertxHawkularOptions) {
    vertxHawkularOptions = (VertxHawkularOptions) metricsOptions;
  } else {
    vertxHawkularOptions = new VertxHawkularOptions(metricsOptions.toJson());
  }
  return new VertxMetricsImpl(vertx, vertxHawkularOptions);
}
 
开发者ID:vert-x3,项目名称:vertx-hawkular-metrics,代码行数:12,代码来源:VertxMetricsFactoryImpl.java

示例4: metrics

import io.vertx.core.spi.metrics.VertxMetrics; //导入依赖的package包/类
@Override
public VertxMetrics metrics(Vertx vertx, VertxOptions options) {
    dispatch("vertxStarted", listener -> listener.vertxStarted(vertx, options));
    return new ListenerAwareVertxMetrics(vertx);
}
 
开发者ID:unbroken-dome,项目名称:vertx-spring,代码行数:6,代码来源:VertxListenerAwareMetricsFactory.java

示例5: DispatchingVertxMetrics

import io.vertx.core.spi.metrics.VertxMetrics; //导入依赖的package包/类
public DispatchingVertxMetrics(List<? extends VertxMetrics> delegates) {
    super(delegates);
}
 
开发者ID:unbroken-dome,项目名称:vertx-spring,代码行数:4,代码来源:DispatchingVertxMetrics.java

示例6: metrics

import io.vertx.core.spi.metrics.VertxMetrics; //导入依赖的package包/类
@Override
public VertxMetrics metrics(Vertx vertx, VertxOptions options) {
    return new VertxMetricsImpl(counterService, gaugeService, properties);
}
 
开发者ID:unbroken-dome,项目名称:vertx-spring,代码行数:5,代码来源:VertxActuatorMetrics.java

示例7: metrics

import io.vertx.core.spi.metrics.VertxMetrics; //导入依赖的package包/类
@Override
public @NotNull VertxMetrics metrics(@NotNull Vertx vertx, @NotNull VertxOptions vertxOptions) {
  return new VertxPrometheusMetrics(vertx, asPrometheusOptions(vertxOptions));
}
 
开发者ID:nolequen,项目名称:vertx-prometheus-metrics,代码行数:5,代码来源:VertxPrometheusMetricsFactory.java


注:本文中的io.vertx.core.spi.metrics.VertxMetrics类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。