org.hibernate.search.jmx
public class StatisticsInfo extends Object implements StatisticsInfoMBean
STATISTICS_MBEAN_OBJECT_NAME| Constructor and Description |
|---|
StatisticsInfo(Statistics delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Reset all statistics.
|
Set<String> |
getIndexedClassNames()
Returns a list of all indexed classes.
|
int |
getNumberOfIndexedEntities(String entity)
Returns the number of documents for the given entity.
|
long |
getObjectLoadingExecutionAvgTime()
Get the average object loading time in nanoseconds.
|
long |
getObjectLoadingExecutionMaxTime()
Get the time in nanoseconds for the slowest object load.
|
long |
getObjectLoadingTotalTime()
Get the total object loading in nanoseconds.
|
long |
getObjectsLoadedCount()
Gets the total number of objects loaded
|
long |
getSearchQueryExecutionAvgTime()
Get the average search time in nanoseconds.
|
long |
getSearchQueryExecutionCount()
Get global number of executed search queries
|
long |
getSearchQueryExecutionMaxTime()
Get the time in nanoseconds of the slowest search.
|
String |
getSearchQueryExecutionMaxTimeQueryString()
Get the query string for the slowest query.
|
long |
getSearchQueryTotalTime()
Get the total search time in nanoseconds.
|
String |
getSearchVersion()
Returns the Hibernate Search version.
|
Map<String,Integer> |
indexedEntitiesCount()
Returns a map of all indexed entities and their document count in the index.
|
boolean |
isStatisticsEnabled()
Are statistics logged
|
void |
setStatisticsEnabled(boolean b)
Enable statistics logs (this is a dynamic parameter)
|
public StatisticsInfo(Statistics delegate)
public void clear()
Statisticsclear in interface Statisticspublic long getSearchQueryExecutionCount()
StatisticsgetSearchQueryExecutionCount in interface Statisticspublic long getSearchQueryTotalTime()
StatisticsgetSearchQueryTotalTime in interface Statisticspublic long getSearchQueryExecutionMaxTime()
StatisticsgetSearchQueryExecutionMaxTime in interface Statisticspublic long getSearchQueryExecutionAvgTime()
StatisticsgetSearchQueryExecutionAvgTime in interface Statisticspublic String getSearchQueryExecutionMaxTimeQueryString()
StatisticsgetSearchQueryExecutionMaxTimeQueryString in interface Statisticspublic long getObjectLoadingTotalTime()
StatisticsgetObjectLoadingTotalTime in interface Statisticspublic long getObjectLoadingExecutionMaxTime()
StatisticsgetObjectLoadingExecutionMaxTime in interface Statisticspublic long getObjectLoadingExecutionAvgTime()
StatisticsgetObjectLoadingExecutionAvgTime in interface Statisticspublic long getObjectsLoadedCount()
StatisticsgetObjectsLoadedCount in interface Statisticspublic boolean isStatisticsEnabled()
StatisticsisStatisticsEnabled in interface Statisticspublic void setStatisticsEnabled(boolean b)
StatisticssetStatisticsEnabled in interface Statisticspublic String getSearchVersion()
StatisticsgetSearchVersion in interface Statisticspublic Set<String> getIndexedClassNames()
StatisticsgetIndexedClassNames in interface Statisticspublic int getNumberOfIndexedEntities(String entity)
StatisticsgetNumberOfIndexedEntities in interface Statisticsentity - the fqc of the entitypublic Map<String,Integer> indexedEntitiesCount()
StatisticsindexedEntitiesCount in interface StatisticsCopyright © 2006-2015 Red Hat, Inc. All Rights Reserved