Package org.apache.zookeeper.server.util
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 SummaryFields Modifier and Type Field Description static StringPATH_STATS_COLLECTOR_DELAYstatic StringPATH_STATS_COLLECTOR_INITIAL_DELAYstatic StringPATH_STATS_ENABLEDstatic StringPATH_STATS_MAX_DEPTHstatic StringPATH_STATS_SAMPLE_RATEstatic StringPATH_STATS_SLOT_CAPACITYstatic StringPATH_STATS_SLOT_DURATIONstatic StringPATH_STATS_TOP_PATH_MAX
 - 
Constructor SummaryConstructors Constructor Description RequestPathMetricsCollector()RequestPathMetricsCollector(boolean accurateMode)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddumpTopPaths(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 Detail- 
PATH_STATS_SLOT_CAPACITYpublic static final String PATH_STATS_SLOT_CAPACITY - See Also:
- Constant Field Values
 
 - 
PATH_STATS_SLOT_DURATIONpublic static final String PATH_STATS_SLOT_DURATION - See Also:
- Constant Field Values
 
 - 
PATH_STATS_MAX_DEPTHpublic static final String PATH_STATS_MAX_DEPTH - See Also:
- Constant Field Values
 
 - 
PATH_STATS_SAMPLE_RATEpublic static final String PATH_STATS_SAMPLE_RATE - See Also:
- Constant Field Values
 
 - 
PATH_STATS_COLLECTOR_INITIAL_DELAYpublic static final String PATH_STATS_COLLECTOR_INITIAL_DELAY - See Also:
- Constant Field Values
 
 - 
PATH_STATS_COLLECTOR_DELAYpublic static final String PATH_STATS_COLLECTOR_DELAY - See Also:
- Constant Field Values
 
 - 
PATH_STATS_TOP_PATH_MAXpublic static final String PATH_STATS_TOP_PATH_MAX - See Also:
- Constant Field Values
 
 - 
PATH_STATS_ENABLEDpublic static final String PATH_STATS_ENABLED - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
shutdownpublic void shutdown() 
 - 
startpublic void start() 
 - 
registerRequestpublic 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
 - 
dumpTopRequestPathpublic void dumpTopRequestPath(PrintWriter pwriter, String requestTypeName, int queryMaxDepth) 
 - 
dumpTopReadPathspublic void dumpTopReadPaths(PrintWriter pwriter, int queryMaxDepth) 
 - 
dumpTopWritePathspublic void dumpTopWritePaths(PrintWriter pwriter, int queryMaxDepth) 
 - 
dumpTopPathspublic void dumpTopPaths(PrintWriter pwriter, int queryMaxDepth) 
 
- 
 
-