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 void
clearPopularQueriesQueue()
clears the Popular queuevoid
clearSlowQueriesQueue()
clears the Slow queuevoid
disable()
void
enable()
javax.management.openmbean.TabularData
getPopularQueries()
int
getPopularQueriesQueueSize()
javax.management.openmbean.TabularData
getSlowQueries()
int
getSlowQueriesQueueSize()
boolean
isEnabled()
void
reset()
void
setPopularQueriesQueueSize(int size)
Change the size of the Popular queuevoid
setSlowQueriesQueueSize(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:
getSlowQueriesQueueSize
in interfaceQueryStatManagerMBean
- Returns:
- size of the Slow queue
-
setSlowQueriesQueueSize
public void setSlowQueriesQueueSize(int size)
Description copied from interface:QueryStatManagerMBean
Change the size of the Slow queue- Specified by:
setSlowQueriesQueueSize
in interfaceQueryStatManagerMBean
- Parameters:
size
- the new size
-
clearSlowQueriesQueue
public void clearSlowQueriesQueue()
Description copied from interface:QueryStatManagerMBean
clears the Slow queue- Specified by:
clearSlowQueriesQueue
in interfaceQueryStatManagerMBean
-
getPopularQueriesQueueSize
public int getPopularQueriesQueueSize()
- Specified by:
getPopularQueriesQueueSize
in interfaceQueryStatManagerMBean
- Returns:
- size of the Popular queue
-
setPopularQueriesQueueSize
public void setPopularQueriesQueueSize(int size)
Description copied from interface:QueryStatManagerMBean
Change the size of the Popular queue- Specified by:
setPopularQueriesQueueSize
in interfaceQueryStatManagerMBean
- Parameters:
size
- the new size
-
clearPopularQueriesQueue
public void clearPopularQueriesQueue()
Description copied from interface:QueryStatManagerMBean
clears the Popular queue- Specified by:
clearPopularQueriesQueue
in interfaceQueryStatManagerMBean
-
getSlowQueries
public javax.management.openmbean.TabularData getSlowQueries()
- Specified by:
getSlowQueries
in interfaceQueryStatManagerMBean
- Returns:
- a sorted array containing the top
QueryStatManagerMBean.getSlowQueriesQueueSize()
slowest queries
-
getPopularQueries
public javax.management.openmbean.TabularData getPopularQueries()
- Specified by:
getPopularQueries
in interfaceQueryStatManagerMBean
- Returns:
- a sorted array containing the
QueryStatManagerMBean.getPopularQueriesQueueSize()
most popular queries
-
-