Package org.apache.jackrabbit.api.stats
Interface QueryStat
-
- All Known Subinterfaces:
QueryStatCore
- All Known Implementing Classes:
QueryStatImpl
public interface QueryStat
Statistics on query operations
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
clearPopularQueriesQueue()
clears the Popular queuevoid
clearSlowQueriesQueue()
clears the Slow queueQueryStatDto[]
getPopularQueries()
int
getPopularQueriesQueueSize()
QueryStatDto[]
getSlowQueries()
int
getSlowQueriesQueueSize()
boolean
isEnabled()
If this service is currently registering statsvoid
reset()
clears all datavoid
setEnabled(boolean enabled)
Enables/Disables the servicevoid
setPopularQueriesQueueSize(int size)
Change the size of the Popular queuevoid
setSlowQueriesQueueSize(int size)
Change the size of the Slow queue
-
-
-
Method Detail
-
getSlowQueries
QueryStatDto[] getSlowQueries()
- Returns:
- a sorted array containing the top
getSlowQueriesQueueSize()
slowest queries
-
getSlowQueriesQueueSize
int getSlowQueriesQueueSize()
- Returns:
- size of the Slow queue
-
setSlowQueriesQueueSize
void setSlowQueriesQueueSize(int size)
Change the size of the Slow queue- Parameters:
size
- the new size
-
clearSlowQueriesQueue
void clearSlowQueriesQueue()
clears the Slow queue
-
getPopularQueries
QueryStatDto[] getPopularQueries()
- Returns:
- a sorted array containing the
getPopularQueriesQueueSize()
most popular queries
-
getPopularQueriesQueueSize
int getPopularQueriesQueueSize()
- Returns:
- size of the Popular queue
-
setPopularQueriesQueueSize
void setPopularQueriesQueueSize(int size)
Change the size of the Popular queue- Parameters:
size
- the new size
-
clearPopularQueriesQueue
void clearPopularQueriesQueue()
clears the Popular queue
-
isEnabled
boolean isEnabled()
If this service is currently registering stats- Returns:
true
if the service is enabled
-
setEnabled
void setEnabled(boolean enabled)
Enables/Disables the service- Parameters:
enabled
-
-
reset
void reset()
clears all data
-
-