public class QueryStatImpl extends java.lang.Object implements QueryStatCore
QueryStatCore implementation| Constructor and Description |
|---|
QueryStatImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearPopularQueriesQueue()
clears the Popular queue
|
void |
clearSlowQueriesQueue()
clears the Slow queue
|
QueryStatDto[] |
getPopularQueries() |
int |
getPopularQueriesQueueSize() |
QueryStatDto[] |
getSlowQueries() |
int |
getSlowQueriesQueueSize() |
boolean |
isEnabled()
If this service is currently registering stats
|
void |
logQuery(java.lang.String language,
java.lang.String statement,
long durationMs)
Logs the call of each query ran on the repository.
|
void |
reset()
clears all data
|
void |
setEnabled(boolean enabled)
Enables/Disables the service
|
void |
setPopularQueriesQueueSize(int size)
Change the size of the Popular queue
|
void |
setSlowQueriesQueueSize(int size)
Change the size of the Slow queue
|
public int getSlowQueriesQueueSize()
getSlowQueriesQueueSize in interface QueryStatpublic void setSlowQueriesQueueSize(int size)
QueryStatsetSlowQueriesQueueSize in interface QueryStatsize - the new sizepublic boolean isEnabled()
QueryStatpublic void setEnabled(boolean enabled)
QueryStatsetEnabled in interface QueryStatpublic void logQuery(java.lang.String language,
java.lang.String statement,
long durationMs)
QueryStatCorelogQuery in interface QueryStatCorelanguage - the query language, see
QueryManager.getSupportedQueryLanguages()statement - the querydurationMs - time in mspublic void clearSlowQueriesQueue()
QueryStatclearSlowQueriesQueue in interface QueryStatpublic QueryStatDto[] getSlowQueries()
getSlowQueries in interface QueryStatQueryStat.getSlowQueriesQueueSize() slowest queriespublic QueryStatDto[] getPopularQueries()
getPopularQueries in interface QueryStatQueryStat.getPopularQueriesQueueSize() most popular queriespublic int getPopularQueriesQueueSize()
getPopularQueriesQueueSize in interface QueryStatpublic void setPopularQueriesQueueSize(int size)
QueryStatsetPopularQueriesQueueSize in interface QueryStatsize - the new sizepublic void clearPopularQueriesQueue()
QueryStatclearPopularQueriesQueue in interface QueryStatCopyright © 2010 - 2023 Adobe. All Rights Reserved