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

项目:statful-client-vertx    文件:VertxMetricsImpl.java   
@Override
public HttpServerMetrics createMetrics(final HttpServer server, final SocketAddress localAddress, final HttpServerOptions options) {
    HttpServerMetricsImpl httpServerMetricsImpl = new HttpServerMetricsImpl(statfulMetricsOptions);
    httpServerMetricsImpl.setSender(this.getOrCreateSender());
    this.poolMetricsCollectors.forEach(collector -> collector.setSender(this.getOrCreateSender()));
    return httpServerMetricsImpl;
}
项目:vertx-spring    文件:VertxMetricsAdapter.java   
@Override
default HttpServerMetrics<?, ?, ?> createMetrics(HttpServer server, SocketAddress localAddress, HttpServerOptions options) {
    return DummyVertxMetrics.DummyHttpServerMetrics.INSTANCE;
}
项目:vertx-spring    文件:DispatchingHttpServerMetrics.java   
public DispatchingHttpServerMetrics(List<? extends HttpServerMetrics> delegates) {
    super(delegates);
}
项目:vertx-spring    文件:DispatchingHttpServerMetrics.java   
@Override
public Map<HttpServerMetrics, ?> requestBegin(Map<HttpServerMetrics, ?> socketMetric,
                                              HttpServerRequest request) {
    return unmapWithResult(socketMetric, (m, c) -> m.requestBegin(c, request));
}
项目:vertx-spring    文件:DispatchingHttpServerMetrics.java   
@Override
public void requestReset(Map<HttpServerMetrics, ?> requestMetric) {
    unmap(requestMetric, (m, c) -> m.requestReset(c));
}
项目:vertx-spring    文件:DispatchingHttpServerMetrics.java   
@Override
public Map<HttpServerMetrics, ?> responsePushed(Map<HttpServerMetrics, ?> socketMetric,
                                                HttpMethod method, String uri, HttpServerResponse response) {
    return unmapWithResult(socketMetric,
            (m, c) -> m.responsePushed(c, method, uri, response));
}
项目:vertx-spring    文件:DispatchingHttpServerMetrics.java   
@Override
public void responseEnd(Map<HttpServerMetrics, ?> requestMetric, HttpServerResponse response) {
    unmap(requestMetric, (m, c) -> m.responseEnd(c, response));
}
项目:vertx-spring    文件:DispatchingHttpServerMetrics.java   
@Override
public Map<HttpServerMetrics, ?> upgrade(Map<HttpServerMetrics, ?> requestMetric, ServerWebSocket serverWebSocket) {
    return unmapWithResult(requestMetric, (m, c) -> m.upgrade(c, serverWebSocket));
}
项目:vertx-spring    文件:DispatchingHttpServerMetrics.java   
@Override
public Map<HttpServerMetrics, ?> connected(Map<HttpServerMetrics, ?> socketMetric, ServerWebSocket serverWebSocket) {
    return unmapWithResult(socketMetric, (m, c) -> m.connected(c, serverWebSocket));
}
项目:vertx-spring    文件:DispatchingHttpServerMetrics.java   
@Override
public void disconnected(Map<HttpServerMetrics, ?> serverWebSocketMetric) {
    unmap(serverWebSocketMetric, (m, c) -> m.disconnected(c));
}
项目:vertx-spring    文件:DispatchingVertxMetrics.java   
@Override
public HttpServerMetrics<?, ?, ?> createMetrics(HttpServer server, SocketAddress localAddress, HttpServerOptions options) {
    return this.<HttpServerMetrics<?, ?, ?>> createSubMetrics(v -> v.createMetrics(server, localAddress, options),
            d -> new DispatchingHttpServerMetrics(d));
}
项目:vertx-spring    文件:VertxActuatorMetrics.java   
@Override
public HttpServerMetrics<?, ?, ?> createMetrics(HttpServer server, SocketAddress localAddress,
                                                HttpServerOptions options) {
    return new HttpServerMetricsImpl(counterService, gaugeService, properties.getHttp().getServer());
}
项目:vertx-hawkular-metrics    文件:VertxMetricsImpl.java   
@Override
public HttpServerMetrics<Long, Void, Void> createMetrics(HttpServer server, SocketAddress localAddress, HttpServerOptions options) {
  HttpServerMetricsSupplier supplier = (HttpServerMetricsSupplier) metricSuppliers.get(HTTP_SERVER);
  return supplier != null ? new HttpServerMetricsImpl(localAddress, supplier) : super.createMetrics(server, localAddress, options);
}
项目:vertx-dropwizard-metrics    文件:VertxMetricsImpl.java   
@Override
public HttpServerMetrics<?, ?, ?> createMetrics(HttpServer server, SocketAddress localAddress, HttpServerOptions options) {
  String baseName = MetricRegistry.name(nameOf("http.servers"), TCPMetricsImpl.addressName(localAddress));
  return new HttpServerMetricsImpl(registry, baseName, this.options.getMonitoredHttpServerUris(), localAddress);
}