Package org.apache.jackrabbit.oak.stats
Class StatisticManager
- java.lang.Object
 - 
- org.apache.jackrabbit.oak.stats.StatisticManager
 
 
- 
public class StatisticManager extends java.lang.ObjectManager 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 voiddispose()Unregister all statistics previously registered with the whiteboard passed to the constructor.MeterStatsgetMeter(RepositoryStatistics.Type type)CounterStatsgetStatsCounter(RepositoryStatistics.Type type)TimerStatsgetTimer(RepositoryStatistics.Type type)voidlogQueryEvaluationTime(java.lang.String language, java.lang.String statement, long millis)Logs the call of each query ran on the repository.TimeSeriesMaxmaxQueLengthRecorder() 
 - 
 
- 
- 
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(RepositoryStatistics.Type type)
 
- 
getStatsCounter
public CounterStats getStatsCounter(RepositoryStatistics.Type type)
 
- 
getTimer
public TimerStats getTimer(RepositoryStatistics.Type type)
 
- 
maxQueLengthRecorder
public TimeSeriesMax maxQueLengthRecorder()
 
- 
dispose
public void dispose()
Unregister all statistics previously registered with the whiteboard passed to the constructor. 
 - 
 
 -