public class StatisticManager extends Object
RepositoryStatistics
,
QueryStat
Constructor and Description |
---|
StatisticManager(Whiteboard whiteboard,
ScheduledExecutorService executor)
Create a new instance of this class registering all repository wide
statistics with the passed
whiteboard . |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Unregister all statistics previously registered with the whiteboard passed
to the constructor.
|
AtomicLong |
getCounter(RepositoryStatistics.Type type)
Get the counter of the specified
type . |
void |
logQueryEvaluationTime(String language,
String statement,
long millis)
Logs the call of each query ran on the repository.
|
TimeSeriesMax |
maxQueLengthRecorder() |
public StatisticManager(Whiteboard whiteboard, ScheduledExecutorService executor)
whiteboard
.whiteboard
- whiteboard for registering the individual statistics withpublic void logQueryEvaluationTime(String language, String statement, long millis)
language
- the query languagestatement
- the querymillis
- time it took to evaluate the query in milli seconds.QueryStatCore.logQuery(java.lang.String, java.lang.String, long)
public AtomicLong getCounter(RepositoryStatistics.Type type)
type
.type
- type of the countertype
RepositoryStatisticsImpl.getCounter(org.apache.jackrabbit.api.stats.RepositoryStatistics.Type)
public TimeSeriesMax maxQueLengthRecorder()
public void dispose()
"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"