Class 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 passed whiteboard.
    • 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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 passed whiteboard.
        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 language
        statement - the query
        millis - 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.