public DefaultOriginChannelInitializer(ConnectionPoolConfig connPoolConfig, Registry spectatorRegistry) { this.connectionPoolConfig = connPoolConfig; final String originName = connectionPoolConfig.getOriginName(); this.connectionPoolHandler = new ConnectionPoolHandler(originName); this.httpMetricsHandler = new HttpMetricsChannelHandler(spectatorRegistry, "client", originName); this.nettyLogger = new LoggingHandler("zuul.origin.nettylog." + originName, LogLevel.INFO); this.sslContext = getClientSslContext(spectatorRegistry); }
@Override public void userEventTriggered(ChannelHandlerContext ctx, Object evt) throws Exception { if (evt instanceof HttpServerLifecycleChannelHandler.StartEvent) { incrementCurrentRequestsInFlight(ctx); } else if (evt instanceof HttpServerLifecycleChannelHandler.CompleteEvent) { decrementCurrentRequestsIfOneInflight(ctx); } else if (evt instanceof HttpLifecycleChannelHandler.RejectedPipeliningEvent) { unSupportedPipeliningCounter.increment(); } super.userEventTriggered(ctx, evt); }
@Override public int getInflightRequestsCount() { return this.channelInitializer.getHttpMetricsHandler().getInflightRequestsCount(); }
LOG.debug("State after complete. " + ", current-server-conns = " + ServerChannelMetrics.currentConnectionCountFromChannel(channel) + ", current-http-reqs = " + HttpMetricsChannelHandler.getInflightRequestCountFromChannel(channel) + ", status = " + (response == null ? getRequestId(channel, ctx) : response.getStatus()) + ", nfstatus = " + String.valueOf(StatusCategoryUtils.getStatusCategory(ctx)) LOG.debug("State after complete. " + ", context-error = " + String.valueOf(ctx.getError()) + ", current-http-reqs = " + HttpMetricsChannelHandler.getInflightRequestCountFromChannel(channel) + ", toplevelid = " + topLevelRequestId + ", req = " + request.getInfoForLogging()
LOG.debug("State after complete. " + ", current-server-conns = " + ServerChannelMetrics.currentConnectionCountFromChannel(channel) + ", current-http-reqs = " + HttpMetricsChannelHandler.getInflightRequestCountFromChannel(channel) + ", status = " + (response == null ? getRequestId(channel, ctx) : response.getStatus()) + ", nfstatus = " + String.valueOf(StatusCategoryUtils.getStatusCategory(ctx)) LOG.debug("State after complete. " + ", context-error = " + String.valueOf(ctx.getError()) + ", current-http-reqs = " + HttpMetricsChannelHandler.getInflightRequestCountFromChannel(channel) + ", toplevelid = " + topLevelRequestId + ", req = " + request.getInfoForLogging()
@Override public void userEventTriggered(ChannelHandlerContext ctx, Object evt) throws Exception { if (evt instanceof HttpServerLifecycleChannelHandler.StartEvent) { incrementCurrentRequestsInFlight(ctx); } else if (evt instanceof HttpServerLifecycleChannelHandler.CompleteEvent) { decrementCurrentRequestsIfOneInflight(ctx); } else if (evt instanceof HttpLifecycleChannelHandler.RejectedPipeliningEvent) { unSupportedPipeliningCounter.increment(); } super.userEventTriggered(ctx, evt); }
public DefaultOriginChannelInitializer(ConnectionPoolConfig connPoolConfig, Registry spectatorRegistry) { this.connectionPoolConfig = connPoolConfig; final String originName = connectionPoolConfig.getOriginName(); this.connectionPoolHandler = new ConnectionPoolHandler(originName); this.httpMetricsHandler = new HttpMetricsChannelHandler(spectatorRegistry, "client", originName); this.nettyLogger = new LoggingHandler("zuul.origin.nettylog." + originName, LogLevel.INFO); this.sslContext = getClientSslContext(spectatorRegistry); }
@Override public int getInflightRequestsCount() { return this.channelInitializer.getHttpMetricsHandler().getInflightRequestsCount(); }
LOG.debug("State after complete. " + ", current-server-conns = " + ServerChannelMetrics.currentConnectionCountFromChannel(channel) + ", current-http-reqs = " + HttpMetricsChannelHandler.getInflightRequestCountFromChannel(channel) + ", status = " + (response == null ? getRequestId(channel, ctx) : response.getStatus()) + ", nfstatus = " + String.valueOf(StatusCategoryUtils.getStatusCategory(ctx)) LOG.debug("State after complete. " + ", context-error = " + String.valueOf(ctx.getError()) + ", current-http-reqs = " + HttpMetricsChannelHandler.getInflightRequestCountFromChannel(channel) + ", toplevelid = " + topLevelRequestId + ", req = " + request.getInfoForLogging()
@Override public void userEventTriggered(ChannelHandlerContext ctx, Object evt) throws Exception { if (evt instanceof HttpServerLifecycleChannelHandler.StartEvent) { incrementCurrentRequestsInFlight(ctx); } else if (evt instanceof HttpServerLifecycleChannelHandler.CompleteEvent) { decrementCurrentRequestsIfOneInflight(ctx); } else if (evt instanceof HttpLifecycleChannelHandler.RejectedPipeliningEvent) { unSupportedPipeliningCounter.increment(); } super.userEventTriggered(ctx, evt); }
this.channelMetrics = new ServerChannelMetrics("http-" + port); this.registry = channelDependencies.get(ZuulDependencyKeys.registry); this.httpMetricsHandler = new HttpMetricsChannelHandler(registry, "server", "http-" + port);
@Override public int getInflightRequestsCount() { return this.channelInitializer.getHttpMetricsHandler().getInflightRequestsCount(); }
this.channelMetrics = new ServerChannelMetrics("http-" + port); this.registry = channelDependencies.get(ZuulDependencyKeys.registry); this.httpMetricsHandler = new HttpMetricsChannelHandler(registry, "server", "http-" + port);
public DefaultOriginChannelInitializer(ConnectionPoolConfig connPoolConfig, Registry spectatorRegistry) { this.connectionPoolConfig = connPoolConfig; final String originName = connectionPoolConfig.getOriginName(); this.connectionPoolHandler = new ConnectionPoolHandler(originName); this.httpMetricsHandler = new HttpMetricsChannelHandler(spectatorRegistry, "client", originName); this.nettyLogger = new LoggingHandler("zuul.origin.nettylog." + originName, LogLevel.INFO); this.sslContext = getClientSslContext(spectatorRegistry); }
this.channelMetrics = new ServerChannelMetrics("http-" + port); this.registry = channelDependencies.get(ZuulDependencyKeys.registry); this.httpMetricsHandler = new HttpMetricsChannelHandler(registry, "server", "http-" + port);