Class QueryStatsMBeanImpl
java.lang.Object
javax.management.StandardMBean
org.apache.jackrabbit.oak.commons.jmx.AnnotatedStandardMBean
org.apache.jackrabbit.oak.query.stats.QueryStatsMBeanImpl
- All Implemented Interfaces:
DynamicMBean,MBeanRegistration,QueryStatsMBean,QueryStatsReporter
public class QueryStatsMBeanImpl
extends AnnotatedStandardMBean
implements QueryStatsMBean, QueryStatsReporter
-
Field Summary
Fields inherited from interface org.apache.jackrabbit.oak.query.stats.QueryStatsMBean
TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasJson()booleanintgetQueryExecution(String statement, String language) Get the slow queries.voidvoidsetCaptureStackTraces(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, getParameterNameMethods 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
-
Constructor Details
-
QueryStatsMBeanImpl
-
-
Method Details
-
getSlowQueries
Description copied from interface:QueryStatsMBeanGet 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:
getSlowQueriesin interfaceQueryStatsMBean- Returns:
- the slow queries table
-
getPopularQueries
- Specified by:
getPopularQueriesin interfaceQueryStatsMBean
-
resetStats
public void resetStats()- Specified by:
resetStatsin interfaceQueryStatsMBean
-
setCaptureStackTraces
public void setCaptureStackTraces(boolean captureStackTraces) Description copied from interface:QueryStatsMBeanWhether to capture a thread dump in addition to the thread name. No thread name / thread dump is captures for internal queries.- Specified by:
setCaptureStackTracesin interfaceQueryStatsMBean- Parameters:
captureStackTraces- the new valu
-
getCaptureStackTraces
public boolean getCaptureStackTraces()- Specified by:
getCaptureStackTracesin interfaceQueryStatsMBean
-
asJson
- Specified by:
asJsonin interfaceQueryStatsMBean
-
getQueryExecution
- Specified by:
getQueryExecutionin interfaceQueryStatsReporter
-
getEvictionCount
public int getEvictionCount()
-