public class QueryStatImpl extends Object implements QueryStatCore
QueryStatCore
implementationConstructor 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.QueryStat
public void setSlowQueriesQueueSize(int size)
setSlowQueriesQueueSize
in interface org.apache.jackrabbit.api.stats.QueryStat
public boolean isEnabled()
isEnabled
in interface org.apache.jackrabbit.api.stats.QueryStat
public void setEnabled(boolean enabled)
setEnabled
in interface org.apache.jackrabbit.api.stats.QueryStat
public void logQuery(String language, String statement, long durationMs)
QueryStatCore
logQuery
in interface QueryStatCore
language
- the query language, see
QueryManager.getSupportedQueryLanguages()
statement
- the querydurationMs
- time in mspublic void clearSlowQueriesQueue()
clearSlowQueriesQueue
in interface org.apache.jackrabbit.api.stats.QueryStat
public org.apache.jackrabbit.api.stats.QueryStatDto[] getSlowQueries()
getSlowQueries
in interface org.apache.jackrabbit.api.stats.QueryStat
public org.apache.jackrabbit.api.stats.QueryStatDto[] getPopularQueries()
getPopularQueries
in interface org.apache.jackrabbit.api.stats.QueryStat
public int getPopularQueriesQueueSize()
getPopularQueriesQueueSize
in interface org.apache.jackrabbit.api.stats.QueryStat
public void setPopularQueriesQueueSize(int size)
setPopularQueriesQueueSize
in interface org.apache.jackrabbit.api.stats.QueryStat
public void clearPopularQueriesQueue()
clearPopularQueriesQueue
in interface org.apache.jackrabbit.api.stats.QueryStat
public void reset()
reset
in interface org.apache.jackrabbit.api.stats.QueryStat
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.