Class QueryStatImpl

    • Constructor Detail

      • QueryStatImpl

        public QueryStatImpl()
    • Method Detail

      • setSlowQueriesQueueSize

        public void setSlowQueriesQueueSize​(int size)
        Description copied from interface: QueryStat
        Change the size of the Slow queue
        Specified by:
        setSlowQueriesQueueSize in interface QueryStat
        Parameters:
        size - the new size
      • isEnabled

        public boolean isEnabled()
        Description copied from interface: QueryStat
        If this service is currently registering stats
        Specified by:
        isEnabled in interface QueryStat
        Returns:
        true if the service is enabled
      • setEnabled

        public void setEnabled​(boolean enabled)
        Description copied from interface: QueryStat
        Enables/Disables the service
        Specified by:
        setEnabled in interface QueryStat
      • logQuery

        public void logQuery​(java.lang.String language,
                             java.lang.String statement,
                             long durationMs)
        Description copied from interface: QueryStatCore
        Logs the call of each query ran on the repository.
        Specified by:
        logQuery in interface QueryStatCore
        Parameters:
        language - the query language, see QueryManager.getSupportedQueryLanguages()
        statement - the query
        durationMs - time in ms
      • setPopularQueriesQueueSize

        public void setPopularQueriesQueueSize​(int size)
        Description copied from interface: QueryStat
        Change the size of the Popular queue
        Specified by:
        setPopularQueriesQueueSize in interface QueryStat
        Parameters:
        size - the new size
      • reset

        public void reset()
        Description copied from interface: QueryStat
        clears all data
        Specified by:
        reset in interface QueryStat