Class QueryStatsMBeanImpl

    • Field Summary

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String asJson()  
      boolean getCaptureStackTraces()  
      int getEvictionCount()  
      javax.management.openmbean.TabularData getPopularQueries()  
      QueryStatsData.QueryExecutionStats getQueryExecution​(java.lang.String statement, java.lang.String language)  
      javax.management.openmbean.TabularData getSlowQueries()
      Get the slow queries.
      void resetStats()  
      void setCaptureStackTraces​(boolean captureStackTraces)
      Whether to capture a thread dump in addition to the thread name.
      • Methods inherited from class org.apache.jackrabbit.oak.commons.jmx.AnnotatedStandardMBean

        getDescription, getDescription, getDescription, getDescription, getImpact, getParameterName
      • Methods inherited from class javax.management.StandardMBean

        cacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getImplementation, getImplementationClass, getMBeanInfo, getMBeanInterface, getParameterName, invoke, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementation
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getSlowQueries

        public javax.management.openmbean.TabularData getSlowQueries()
        Description copied from interface: QueryStatsMBean
        Get the slow queries. Those are the ones that scan more than 100'000 nodes, or the configured maximum number of nodes to scan. (Raw execution time is not taken into account, as execution can be slow if the code is not compiled yet.)
        Specified by:
        getSlowQueries in interface QueryStatsMBean
        Returns:
        the slow queries table
      • setCaptureStackTraces

        public void setCaptureStackTraces​(boolean captureStackTraces)
        Description copied from interface: QueryStatsMBean
        Whether to capture a thread dump in addition to the thread name. No thread name / thread dump is captures for internal queries.
        Specified by:
        setCaptureStackTraces in interface QueryStatsMBean
        Parameters:
        captureStackTraces - the new valu
      • getEvictionCount

        public int getEvictionCount()