Class StatsHandler

java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.ChannelDuplexHandler
com.linkedin.venice.listener.StatsHandler
All Implemented Interfaces:
io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler, io.netty.channel.ChannelOutboundHandler

public class StatsHandler extends io.netty.channel.ChannelDuplexHandler
  • Constructor Details

  • Method Details

    • getNewStatsContext

      public ServerStatsContext getNewStatsContext()
    • setResponseStatus

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

      public void setStoreName(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()
    • getServerStatsContext

      public ServerStatsContext getServerStatsContext()
    • setMisroutedStoreVersionRequest

      public void setMisroutedStoreVersionRequest(boolean misroutedStoreVersionRequest)
    • channelRead

      public void channelRead(io.netty.channel.ChannelHandlerContext ctx, 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, 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