io.vertx.core.metrics.impl.DummyVertxMetrics Java Examples

The following examples show how to use io.vertx.core.metrics.impl.DummyVertxMetrics. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: VertxMetricsImpl.java    From vertx-micrometer-metrics with Apache License 2.0 5 votes vote down vote up
@Override
public EventBusMetrics createEventBusMetrics() {
  if (eventBusMetrics != null) {
    return eventBusMetrics;
  }
  return DummyVertxMetrics.DummyEventBusMetrics.INSTANCE;
}
 
Example #2
Source File: VertxMetricsImpl.java    From vertx-micrometer-metrics with Apache License 2.0 5 votes vote down vote up
@Override
public HttpServerMetrics<?, ?, ?> createHttpServerMetrics(HttpServerOptions httpClientOptions, SocketAddress socketAddress) {
  if (httpServerMetrics != null) {
    return httpServerMetrics.forAddress(socketAddress);
  }
  return DummyVertxMetrics.DummyHttpServerMetrics.INSTANCE;
}
 
Example #3
Source File: VertxMetricsImpl.java    From vertx-micrometer-metrics with Apache License 2.0 5 votes vote down vote up
@Override
public HttpClientMetrics<?, ?, ?, ?> createHttpClientMetrics(HttpClientOptions httpClientOptions) {
  if (httpClientMetrics != null) {
    return httpClientMetrics.forAddress(httpClientOptions.getLocalAddress());
  }
  return DummyVertxMetrics.DummyHttpClientMetrics.INSTANCE;
}
 
Example #4
Source File: VertxMetricsImpl.java    From vertx-micrometer-metrics with Apache License 2.0 5 votes vote down vote up
@Override
public TCPMetrics<?> createNetServerMetrics(NetServerOptions netServerOptions, SocketAddress socketAddress) {
  if (netServerMetrics != null) {
    return netServerMetrics.forAddress(socketAddress);
  }
  return DummyVertxMetrics.DummyTCPMetrics.INSTANCE;
}
 
Example #5
Source File: VertxMetricsImpl.java    From vertx-micrometer-metrics with Apache License 2.0 5 votes vote down vote up
@Override
public TCPMetrics<?> createNetClientMetrics(NetClientOptions netClientOptions) {
  if (netClientMetrics != null) {
    return netClientMetrics.forAddress(netClientOptions.getLocalAddress());
  }
  return DummyVertxMetrics.DummyTCPMetrics.INSTANCE;
}
 
Example #6
Source File: VertxMetricsImpl.java    From vertx-micrometer-metrics with Apache License 2.0 5 votes vote down vote up
@Override
public DatagramSocketMetrics createDatagramSocketMetrics(DatagramSocketOptions options) {
  if (datagramSocketMetrics != null) {
    return datagramSocketMetrics;
  }
  return DummyVertxMetrics.DummyDatagramMetrics.INSTANCE;
}
 
Example #7
Source File: VertxMetricsImpl.java    From vertx-micrometer-metrics with Apache License 2.0 5 votes vote down vote up
@Override
public PoolMetrics<?> createPoolMetrics(String poolType, String poolName, int maxPoolSize) {
  if (poolMetrics != null) {
    return poolMetrics.forInstance(poolType, poolName, maxPoolSize);
  }
  return DummyVertxMetrics.DummyWorkerPoolMetrics.INSTANCE;
}