• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java HttpServerMetrics类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java EnumBlockHalf类代码示例发布时间:2022-05-22
下一篇:
Java WXFrameLayout类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap