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


Java HttpServerMetrics类代码示例

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


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

示例1: createMetrics

import io.vertx.core.spi.metrics.HttpServerMetrics; //导入依赖的package包/类
@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;
}
 
开发者ID:statful,项目名称:statful-client-vertx,代码行数:8,代码来源:VertxMetricsImpl.java

示例2: createMetrics

import io.vertx.core.spi.metrics.HttpServerMetrics; //导入依赖的package包/类
@Override
default HttpServerMetrics<?, ?, ?> createMetrics(HttpServer server, SocketAddress localAddress, HttpServerOptions options) {
    return DummyVertxMetrics.DummyHttpServerMetrics.INSTANCE;
}
 
开发者ID:unbroken-dome,项目名称:vertx-spring,代码行数:5,代码来源:VertxMetricsAdapter.java

示例3: DispatchingHttpServerMetrics

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

示例4: requestBegin

import io.vertx.core.spi.metrics.HttpServerMetrics; //导入依赖的package包/类
@Override
public Map<HttpServerMetrics, ?> requestBegin(Map<HttpServerMetrics, ?> socketMetric,
                                              HttpServerRequest request) {
    return unmapWithResult(socketMetric, (m, c) -> m.requestBegin(c, request));
}
 
开发者ID:unbroken-dome,项目名称:vertx-spring,代码行数:6,代码来源:DispatchingHttpServerMetrics.java

示例5: requestReset

import io.vertx.core.spi.metrics.HttpServerMetrics; //导入依赖的package包/类
@Override
public void requestReset(Map<HttpServerMetrics, ?> requestMetric) {
    unmap(requestMetric, (m, c) -> m.requestReset(c));
}
 
开发者ID:unbroken-dome,项目名称:vertx-spring,代码行数:5,代码来源:DispatchingHttpServerMetrics.java

示例6: responsePushed

import io.vertx.core.spi.metrics.HttpServerMetrics; //导入依赖的package包/类
@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));
}
 
开发者ID:unbroken-dome,项目名称:vertx-spring,代码行数:7,代码来源:DispatchingHttpServerMetrics.java

示例7: responseEnd

import io.vertx.core.spi.metrics.HttpServerMetrics; //导入依赖的package包/类
@Override
public void responseEnd(Map<HttpServerMetrics, ?> requestMetric, HttpServerResponse response) {
    unmap(requestMetric, (m, c) -> m.responseEnd(c, response));
}
 
开发者ID:unbroken-dome,项目名称:vertx-spring,代码行数:5,代码来源:DispatchingHttpServerMetrics.java

示例8: upgrade

import io.vertx.core.spi.metrics.HttpServerMetrics; //导入依赖的package包/类
@Override
public Map<HttpServerMetrics, ?> upgrade(Map<HttpServerMetrics, ?> requestMetric, ServerWebSocket serverWebSocket) {
    return unmapWithResult(requestMetric, (m, c) -> m.upgrade(c, serverWebSocket));
}
 
开发者ID:unbroken-dome,项目名称:vertx-spring,代码行数:5,代码来源:DispatchingHttpServerMetrics.java

示例9: connected

import io.vertx.core.spi.metrics.HttpServerMetrics; //导入依赖的package包/类
@Override
public Map<HttpServerMetrics, ?> connected(Map<HttpServerMetrics, ?> socketMetric, ServerWebSocket serverWebSocket) {
    return unmapWithResult(socketMetric, (m, c) -> m.connected(c, serverWebSocket));
}
 
开发者ID:unbroken-dome,项目名称:vertx-spring,代码行数:5,代码来源:DispatchingHttpServerMetrics.java

示例10: disconnected

import io.vertx.core.spi.metrics.HttpServerMetrics; //导入依赖的package包/类
@Override
public void disconnected(Map<HttpServerMetrics, ?> serverWebSocketMetric) {
    unmap(serverWebSocketMetric, (m, c) -> m.disconnected(c));
}
 
开发者ID:unbroken-dome,项目名称:vertx-spring,代码行数:5,代码来源:DispatchingHttpServerMetrics.java

示例11: createMetrics

import io.vertx.core.spi.metrics.HttpServerMetrics; //导入依赖的package包/类
@Override
public HttpServerMetrics<?, ?, ?> createMetrics(HttpServer server, SocketAddress localAddress, HttpServerOptions options) {
    return this.<HttpServerMetrics<?, ?, ?>> createSubMetrics(v -> v.createMetrics(server, localAddress, options),
            d -> new DispatchingHttpServerMetrics(d));
}
 
开发者ID:unbroken-dome,项目名称:vertx-spring,代码行数:6,代码来源:DispatchingVertxMetrics.java

示例12: createMetrics

import io.vertx.core.spi.metrics.HttpServerMetrics; //导入依赖的package包/类
@Override
public HttpServerMetrics<?, ?, ?> createMetrics(HttpServer server, SocketAddress localAddress,
                                                HttpServerOptions options) {
    return new HttpServerMetricsImpl(counterService, gaugeService, properties.getHttp().getServer());
}
 
开发者ID:unbroken-dome,项目名称:vertx-spring,代码行数:6,代码来源:VertxActuatorMetrics.java

示例13: createMetrics

import io.vertx.core.spi.metrics.HttpServerMetrics; //导入依赖的package包/类
@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);
}
 
开发者ID:vert-x3,项目名称:vertx-hawkular-metrics,代码行数:6,代码来源:VertxMetricsImpl.java

示例14: createMetrics

import io.vertx.core.spi.metrics.HttpServerMetrics; //导入依赖的package包/类
@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);
}
 
开发者ID:vert-x3,项目名称:vertx-dropwizard-metrics,代码行数:6,代码来源:VertxMetricsImpl.java


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