|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Statistics
Interface which defines several methods allowing to access statistical data. This includes average and maximum Lucene query time and object loading time.
Method Summary | |
---|---|
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) |
Method Detail |
---|
void clear()
long getSearchQueryExecutionCount()
long getSearchQueryTotalTime()
long getSearchQueryExecutionMaxTime()
long getSearchQueryExecutionAvgTime()
String getSearchQueryExecutionMaxTimeQueryString()
long getObjectLoadingTotalTime()
long getObjectLoadingExecutionMaxTime()
long getObjectLoadingExecutionAvgTime()
long getObjectsLoadedCount()
boolean isStatisticsEnabled()
void setStatisticsEnabled(boolean b)
String getSearchVersion()
Set<String> getIndexedClassNames()
int getNumberOfIndexedEntities(String entity)
entity
- the fqc of the entity
IllegalArgumentException
- in case the entity name is not validMap<String,Integer> indexedEntitiesCount()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |