Package org.apache.jackrabbit.oak.stats
Class StatisticManager
java.lang.Object
org.apache.jackrabbit.oak.stats.StatisticManager
Manager for all repository wide statistics.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStatisticManager(Whiteboard whiteboard, ScheduledExecutorService executor) Create a new instance of this class registering all repository wide statistics with the passedwhiteboard. -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Unregister all statistics previously registered with the whiteboard passed to the constructor.voidlogQueryEvaluationTime(String language, String statement, long millis) Logs the call of each query ran on the repository.
-
Constructor Details
-
StatisticManager
Create a new instance of this class registering all repository wide statistics with the passedwhiteboard.- Parameters:
whiteboard- whiteboard for registering the individual statistics with
-
-
Method Details
-
logQueryEvaluationTime
Logs the call of each query ran on the repository.- Parameters:
language- the query languagestatement- the querymillis- time it took to evaluate the query in milli seconds.- See Also:
-
getMeter
-
getStatsCounter
-
getTimer
-
maxQueLengthRecorder
-
dispose
public void dispose()Unregister all statistics previously registered with the whiteboard passed to the constructor.
-