Package org.apache.jackrabbit.oak.stats
Class StatisticManager
- java.lang.Object
-
- org.apache.jackrabbit.oak.stats.StatisticManager
-
public class StatisticManager extends java.lang.Object
Manager for all repository wide statistics.- See Also:
RepositoryStatistics
,QueryStat
-
-
Constructor Summary
Constructors Constructor Description StatisticManager(Whiteboard whiteboard, java.util.concurrent.ScheduledExecutorService executor)
Create a new instance of this class registering all repository wide statistics with the passedwhiteboard
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
Unregister all statistics previously registered with the whiteboard passed to the constructor.MeterStats
getMeter(org.apache.jackrabbit.api.stats.RepositoryStatistics.Type type)
CounterStats
getStatsCounter(org.apache.jackrabbit.api.stats.RepositoryStatistics.Type type)
TimerStats
getTimer(org.apache.jackrabbit.api.stats.RepositoryStatistics.Type type)
void
logQueryEvaluationTime(java.lang.String language, java.lang.String statement, long millis)
Logs the call of each query ran on the repository.TimeSeriesMax
maxQueLengthRecorder()
-
-
-
Constructor Detail
-
StatisticManager
public StatisticManager(Whiteboard whiteboard, java.util.concurrent.ScheduledExecutorService executor)
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 Detail
-
logQueryEvaluationTime
public void logQueryEvaluationTime(java.lang.String language, java.lang.String statement, long millis)
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:
QueryStatCore.logQuery(java.lang.String, java.lang.String, long)
-
getMeter
public MeterStats getMeter(org.apache.jackrabbit.api.stats.RepositoryStatistics.Type type)
-
getStatsCounter
public CounterStats getStatsCounter(org.apache.jackrabbit.api.stats.RepositoryStatistics.Type type)
-
getTimer
public TimerStats getTimer(org.apache.jackrabbit.api.stats.RepositoryStatistics.Type type)
-
maxQueLengthRecorder
public TimeSeriesMax maxQueLengthRecorder()
-
dispose
public void dispose()
Unregister all statistics previously registered with the whiteboard passed to the constructor.
-
-