Package org.apache.jackrabbit.stats.jmx
Class QueryStatManager
java.lang.Object
org.apache.jackrabbit.stats.jmx.QueryStatManager
- All Implemented Interfaces:
QueryStatManagerMBean
The QueryStatManagerMBean default implementation
-
Field Summary
Fields inherited from interface org.apache.jackrabbit.api.jmx.QueryStatManagerMBean
NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclears the Popular queuevoidclears the Slow queuevoiddisable()voidenable()intintbooleanvoidreset()voidsetPopularQueriesQueueSize(int size) Change the size of the Popular queuevoidsetSlowQueriesQueueSize(int size) Change the size of the Slow queue
-
Constructor Details
-
QueryStatManager
-
-
Method Details
-
isEnabled
public boolean isEnabled() -
enable
public void enable() -
disable
public void disable() -
reset
public void reset() -
getSlowQueriesQueueSize
public int getSlowQueriesQueueSize()- Specified by:
getSlowQueriesQueueSizein interfaceQueryStatManagerMBean- Returns:
- size of the Slow queue
-
setSlowQueriesQueueSize
public void setSlowQueriesQueueSize(int size) Description copied from interface:QueryStatManagerMBeanChange the size of the Slow queue- Specified by:
setSlowQueriesQueueSizein interfaceQueryStatManagerMBean- Parameters:
size- the new size
-
clearSlowQueriesQueue
public void clearSlowQueriesQueue()Description copied from interface:QueryStatManagerMBeanclears the Slow queue- Specified by:
clearSlowQueriesQueuein interfaceQueryStatManagerMBean
-
getPopularQueriesQueueSize
public int getPopularQueriesQueueSize()- Specified by:
getPopularQueriesQueueSizein interfaceQueryStatManagerMBean- Returns:
- size of the Popular queue
-
setPopularQueriesQueueSize
public void setPopularQueriesQueueSize(int size) Description copied from interface:QueryStatManagerMBeanChange the size of the Popular queue- Specified by:
setPopularQueriesQueueSizein interfaceQueryStatManagerMBean- Parameters:
size- the new size
-
clearPopularQueriesQueue
public void clearPopularQueriesQueue()Description copied from interface:QueryStatManagerMBeanclears the Popular queue- Specified by:
clearPopularQueriesQueuein interfaceQueryStatManagerMBean
-
getSlowQueries
- Specified by:
getSlowQueriesin interfaceQueryStatManagerMBean- Returns:
- a sorted array containing the top
QueryStatManagerMBean.getSlowQueriesQueueSize()slowest queries
-
getPopularQueries
- Specified by:
getPopularQueriesin interfaceQueryStatManagerMBean- Returns:
- a sorted array containing the
QueryStatManagerMBean.getPopularQueriesQueueSize()most popular queries
-