Java 类io.vertx.core.spi.metrics.TCPMetrics 实例源码

项目:vertx-dropwizard-metrics    文件:VertxMetricsImpl.java   
@Override
public TCPMetrics<?> createMetrics(NetClientOptions options) {
  String baseName;
  if (options.getMetricsName() != null) {
    baseName = nameOf("net.clients", options.getMetricsName());
  } else {
   baseName = nameOf("net.clients");
  }
  return new TCPMetricsImpl(registry, baseName);
}
项目:vertx-spring    文件:DispatchingTcpMetrics.java   
public DispatchingTcpMetrics(List<? extends TCPMetrics> delegates) {
    super(delegates);
}
项目:vertx-spring    文件:VertxMetricsAdapter.java   
@Override
default TCPMetrics<?> createMetrics(SocketAddress localAddress, NetServerOptions options) {
    return DummyVertxMetrics.DummyTCPMetrics.INSTANCE;
}
项目:vertx-spring    文件:VertxMetricsAdapter.java   
@Override
default TCPMetrics<?> createMetrics(NetClientOptions options) {
    return DummyVertxMetrics.DummyTCPMetrics.INSTANCE;
}
项目:vertx-spring    文件:DispatchingVertxMetrics.java   
@Override
public TCPMetrics<?> createMetrics(SocketAddress localAddress, NetServerOptions options) {
    return this.<TCPMetrics<?>> createSubMetrics(v -> v.createMetrics(localAddress, options),
            d -> new DispatchingTcpMetrics(d));
}
项目:vertx-spring    文件:DispatchingVertxMetrics.java   
@Override
public TCPMetrics<?> createMetrics(NetClientOptions options) {
    return this.<TCPMetrics<?>> createSubMetrics(v -> v.createMetrics(options),
            d -> new DispatchingTcpMetrics(d));
}
项目:vertx-spring    文件:VertxActuatorMetrics.java   
@Override
public TCPMetrics<?> createMetrics(SocketAddress localAddress, NetServerOptions options) {
    return new NetServerMetricsImpl(counterService, gaugeService, properties.getNet().getServer());
}
项目:vertx-spring    文件:VertxActuatorMetrics.java   
@Override
public TCPMetrics<?> createMetrics(NetClientOptions options) {
    return new NetClientMetricsImpl(counterService, gaugeService, properties.getNet().getClient());
}
项目:vertx-hawkular-metrics    文件:VertxMetricsImpl.java   
@Override
public TCPMetrics createMetrics(SocketAddress localAddress, NetServerOptions options) {
  NetServerMetricsSupplier supplier = (NetServerMetricsSupplier) metricSuppliers.get(NET_SERVER);
  return supplier != null ? new NetServerMetricsImpl(localAddress, supplier) : super.createMetrics(localAddress, options);
}
项目:vertx-hawkular-metrics    文件:VertxMetricsImpl.java   
@Override
public TCPMetrics createMetrics(NetClientOptions options) {
  NetClientMetricsSupplier supplier = (NetClientMetricsSupplier) metricSuppliers.get(NET_CLIENT);
  return supplier != null ? new NetClientMetricsImpl(supplier) : super.createMetrics(options);
}
项目:vertx-dropwizard-metrics    文件:VertxMetricsImpl.java   
@Override
public TCPMetrics<?> createMetrics(SocketAddress localAddress, NetServerOptions options) {
  String baseName = MetricRegistry.name(nameOf("net.servers"), TCPMetricsImpl.addressName(localAddress));
  return new TCPMetricsImpl(registry, baseName);
}