Package org.apache.jackrabbit.stats.jmx
Class QueryStatManager
- java.lang.Object
-
- org.apache.jackrabbit.stats.jmx.QueryStatManager
-
- All Implemented Interfaces:
QueryStatManagerMBean
public class QueryStatManager extends java.lang.Object implements QueryStatManagerMBean
The QueryStatManagerMBean default implementation
-
-
Field Summary
-
Fields inherited from interface org.apache.jackrabbit.api.jmx.QueryStatManagerMBean
NAME
-
-
Constructor Summary
Constructors Constructor Description QueryStatManager(QueryStat queryStat)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearPopularQueriesQueue()clears the Popular queuevoidclearSlowQueriesQueue()clears the Slow queuevoiddisable()voidenable()javax.management.openmbean.TabularDatagetPopularQueries()intgetPopularQueriesQueueSize()javax.management.openmbean.TabularDatagetSlowQueries()intgetSlowQueriesQueueSize()booleanisEnabled()voidreset()voidsetPopularQueriesQueueSize(int size)Change the size of the Popular queuevoidsetSlowQueriesQueueSize(int size)Change the size of the Slow queue
-
-
-
Constructor Detail
-
QueryStatManager
public QueryStatManager(QueryStat queryStat)
-
-
Method Detail
-
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
public javax.management.openmbean.TabularData getSlowQueries()
- Specified by:
getSlowQueriesin interfaceQueryStatManagerMBean- Returns:
- a sorted array containing the top
QueryStatManagerMBean.getSlowQueriesQueueSize()slowest queries
-
getPopularQueries
public javax.management.openmbean.TabularData getPopularQueries()
- Specified by:
getPopularQueriesin interfaceQueryStatManagerMBean- Returns:
- a sorted array containing the
QueryStatManagerMBean.getPopularQueriesQueueSize()most popular queries
-
-