Interface QueryStatsMBean
-
- All Known Implementing Classes:
QueryStatsMBeanImpl
public interface QueryStatsMBean
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
TYPE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
asJson()
boolean
getCaptureStackTraces()
javax.management.openmbean.TabularData
getPopularQueries()
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.
-
-
-
Field Detail
-
TYPE
static final java.lang.String TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getSlowQueries
@Description("Get the slow queries (those that scan/traverse over many nodes).") javax.management.openmbean.TabularData getSlowQueries()
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.)- Returns:
- the slow queries table
-
getPopularQueries
@Description("Get the popular queries (those that take most of the time).") javax.management.openmbean.TabularData getPopularQueries()
-
asJson
@Description("Get all data as Json.") java.lang.String asJson()
-
resetStats
@Description("Reset the statistics (clear the list of queries).") void resetStats()
-
setCaptureStackTraces
@Description("Enable / disable capturing the thread dumps (in addition to the thread name).") void setCaptureStackTraces(boolean captureStackTraces)
Whether to capture a thread dump in addition to the thread name. No thread name / thread dump is captures for internal queries.- Parameters:
captureStackTraces
- the new valu
-
getCaptureStackTraces
boolean getCaptureStackTraces()
-
-