public class QueryStatImpl extends Object implements QueryStatCore
QueryStatCore implementation| Constructor and Description |
|---|
QueryStatImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearPopularQueriesQueue() |
void |
clearSlowQueriesQueue() |
org.apache.jackrabbit.api.stats.QueryStatDto[] |
getPopularQueries() |
int |
getPopularQueriesQueueSize() |
org.apache.jackrabbit.api.stats.QueryStatDto[] |
getSlowQueries() |
int |
getSlowQueriesQueueSize() |
boolean |
isEnabled() |
void |
logQuery(String language,
String statement,
long durationMs)
Logs the call of each query ran on the repository.
|
void |
reset() |
void |
setEnabled(boolean enabled) |
void |
setPopularQueriesQueueSize(int size) |
void |
setSlowQueriesQueueSize(int size) |
public int getSlowQueriesQueueSize()
getSlowQueriesQueueSize in interface org.apache.jackrabbit.api.stats.QueryStatpublic void setSlowQueriesQueueSize(int size)
setSlowQueriesQueueSize in interface org.apache.jackrabbit.api.stats.QueryStatpublic boolean isEnabled()
isEnabled in interface org.apache.jackrabbit.api.stats.QueryStatpublic void setEnabled(boolean enabled)
setEnabled in interface org.apache.jackrabbit.api.stats.QueryStatpublic void logQuery(String language, String statement, long durationMs)
QueryStatCorelogQuery in interface QueryStatCorelanguage - the query language, see
QueryManager.getSupportedQueryLanguages()statement - the querydurationMs - time in mspublic void clearSlowQueriesQueue()
clearSlowQueriesQueue in interface org.apache.jackrabbit.api.stats.QueryStatpublic org.apache.jackrabbit.api.stats.QueryStatDto[] getSlowQueries()
getSlowQueries in interface org.apache.jackrabbit.api.stats.QueryStatpublic org.apache.jackrabbit.api.stats.QueryStatDto[] getPopularQueries()
getPopularQueries in interface org.apache.jackrabbit.api.stats.QueryStatpublic int getPopularQueriesQueueSize()
getPopularQueriesQueueSize in interface org.apache.jackrabbit.api.stats.QueryStatpublic void setPopularQueriesQueueSize(int size)
setPopularQueriesQueueSize in interface org.apache.jackrabbit.api.stats.QueryStatpublic void clearPopularQueriesQueue()
clearPopularQueriesQueue in interface org.apache.jackrabbit.api.stats.QueryStatpublic void reset()
reset in interface org.apache.jackrabbit.api.stats.QueryStatCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.