Package org.apache.zookeeper.server.util
Class RequestPathMetricsCollector
java.lang.Object
org.apache.zookeeper.server.util.RequestPathMetricsCollector
This class holds the requests path ( up till a certain depth) stats per request type
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddumpTopPaths(PrintWriter pwriter, int queryMaxDepth) voiddumpTopReadPaths(PrintWriter pwriter, int queryMaxDepth) voiddumpTopRequestPath(PrintWriter pwriter, String requestTypeName, int queryMaxDepth) voiddumpTopWritePaths(PrintWriter pwriter, int queryMaxDepth) voidregisterRequest(int type, String path) The public interface of the buffer.voidshutdown()voidstart()
-
Field Details
-
PATH_STATS_SLOT_CAPACITY
- See Also:
-
PATH_STATS_SLOT_DURATION
- See Also:
-
PATH_STATS_MAX_DEPTH
- See Also:
-
PATH_STATS_SAMPLE_RATE
- See Also:
-
PATH_STATS_COLLECTOR_INITIAL_DELAY
- See Also:
-
PATH_STATS_COLLECTOR_DELAY
- See Also:
-
PATH_STATS_TOP_PATH_MAX
- See Also:
-
PATH_STATS_ENABLED
- See Also:
-
-
Constructor Details
-
RequestPathMetricsCollector
public RequestPathMetricsCollector() -
RequestPathMetricsCollector
public RequestPathMetricsCollector(boolean accurateMode)
-
-
Method Details
-
shutdown
public void shutdown() -
start
public void start() -
registerRequest
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
-
dumpTopReadPaths
-
dumpTopWritePaths
-
dumpTopPaths
-