public class QueryStatManager extends Object implements QueryStatManagerMBean
NAME
Constructor and Description |
---|
QueryStatManager(QueryStat queryStat) |
Modifier and Type | Method and Description |
---|---|
void |
clearPopularQueriesQueue()
clears the Popular queue
|
void |
clearSlowQueriesQueue()
clears the Slow queue
|
void |
disable() |
void |
enable() |
TabularData |
getPopularQueries() |
int |
getPopularQueriesQueueSize() |
TabularData |
getSlowQueries() |
int |
getSlowQueriesQueueSize() |
boolean |
isEnabled() |
void |
reset() |
void |
setPopularQueriesQueueSize(int size)
Change the size of the Popular queue
|
void |
setSlowQueriesQueueSize(int size)
Change the size of the Slow queue
|
public QueryStatManager(QueryStat queryStat)
public boolean isEnabled()
public void enable()
public void disable()
public void reset()
public int getSlowQueriesQueueSize()
getSlowQueriesQueueSize
in interface QueryStatManagerMBean
public void setSlowQueriesQueueSize(int size)
QueryStatManagerMBean
setSlowQueriesQueueSize
in interface QueryStatManagerMBean
size
- the new sizepublic void clearSlowQueriesQueue()
QueryStatManagerMBean
clearSlowQueriesQueue
in interface QueryStatManagerMBean
public int getPopularQueriesQueueSize()
getPopularQueriesQueueSize
in interface QueryStatManagerMBean
public void setPopularQueriesQueueSize(int size)
QueryStatManagerMBean
setPopularQueriesQueueSize
in interface QueryStatManagerMBean
size
- the new sizepublic void clearPopularQueriesQueue()
QueryStatManagerMBean
clearPopularQueriesQueue
in interface QueryStatManagerMBean
public TabularData getSlowQueries()
getSlowQueries
in interface QueryStatManagerMBean
QueryStatManagerMBean.getSlowQueriesQueueSize()
slowest queriespublic TabularData getPopularQueries()
getPopularQueries
in interface QueryStatManagerMBean
QueryStatManagerMBean.getPopularQueriesQueueSize()
most popular queriesCopyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.