Class RequestPathMetricsCollector

java.lang.Object
org.apache.zookeeper.server.util.RequestPathMetricsCollector

public class RequestPathMetricsCollector extends Object
This class holds the requests path ( up till a certain depth) stats per request type
  • Field Details

  • Constructor Details

    • RequestPathMetricsCollector

      public RequestPathMetricsCollector()
    • RequestPathMetricsCollector

      public RequestPathMetricsCollector(boolean accurateMode)
  • Method Details

    • shutdown

      public void shutdown()
    • start

      public void start()
    • registerRequest

      public void registerRequest(int type, String path)
      The public interface of the buffer. FinalRequestHandler will call into this for each request that has a path and this needs to be fast. we sample the path so that we don't have to store too many paths in memory
    • dumpTopRequestPath

      public void dumpTopRequestPath(PrintWriter pwriter, String requestTypeName, int queryMaxDepth)
    • dumpTopReadPaths

      public void dumpTopReadPaths(PrintWriter pwriter, int queryMaxDepth)
    • dumpTopWritePaths

      public void dumpTopWritePaths(PrintWriter pwriter, int queryMaxDepth)
    • dumpTopPaths

      public void dumpTopPaths(PrintWriter pwriter, int queryMaxDepth)