public class StatisticManager
extends java.lang.Object
RepositoryStatistics
,
QueryStat
Constructor and Description |
---|
StatisticManager(Whiteboard whiteboard,
java.util.concurrent.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.
|
MeterStats |
getMeter(RepositoryStatistics.Type type) |
CounterStats |
getStatsCounter(RepositoryStatistics.Type type) |
TimerStats |
getTimer(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() |
public StatisticManager(Whiteboard whiteboard, java.util.concurrent.ScheduledExecutorService executor)
whiteboard
.whiteboard
- whiteboard for registering the individual statistics withpublic void logQueryEvaluationTime(java.lang.String language, java.lang.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 MeterStats getMeter(RepositoryStatistics.Type type)
public CounterStats getStatsCounter(RepositoryStatistics.Type type)
public TimerStats getTimer(RepositoryStatistics.Type type)
public TimeSeriesMax maxQueLengthRecorder()
public void dispose()
Copyright © 2010 - 2020 Adobe. All Rights Reserved