Class StatsHandler

  • All Implemented Interfaces:
    io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler, io.netty.channel.ChannelOutboundHandler

    public class StatsHandler
    extends io.netty.channel.ChannelDuplexHandler
    • Method Detail

      • setResponseStatus

        public void setResponseStatus​(io.netty.handler.codec.http.HttpResponseStatus status)
      • setStoreName

        public void setStoreName​(java.lang.String name)
      • setMetadataRequest

        public void setMetadataRequest​(boolean metadataRequest)
      • setRequestTerminatedEarly

        public void setRequestTerminatedEarly()
      • setRequestInfo

        public void setRequestInfo​(RouterRequest request)
      • setRequestSize

        public void setRequestSize​(int requestSizeInBytes)
      • getRequestStartTimeInNS

        public long getRequestStartTimeInNS()
      • setMisroutedStoreVersionRequest

        public void setMisroutedStoreVersionRequest​(boolean misroutedStoreVersionRequest)
      • channelRead

        public void channelRead​(io.netty.channel.ChannelHandlerContext ctx,
                                java.lang.Object msg)
        Specified by:
        channelRead in interface io.netty.channel.ChannelInboundHandler
        Overrides:
        channelRead in class io.netty.channel.ChannelInboundHandlerAdapter
      • write

        public void write​(io.netty.channel.ChannelHandlerContext ctx,
                          java.lang.Object msg,
                          io.netty.channel.ChannelPromise promise)
                   throws VeniceException
        Specified by:
        write in interface io.netty.channel.ChannelOutboundHandler
        Overrides:
        write in class io.netty.channel.ChannelDuplexHandler
        Throws:
        VeniceException