|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.search.stat.impl.StatisticsImpl
public class StatisticsImpl
A concurrent implementation of the Statistics interface.
| Constructor Summary | |
|---|---|
StatisticsImpl(SearchFactoryImplementor searchFactoryImplementor)
|
|
| 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 |
objectLoadExecuted(long numberOfObjectsLoaded,
long time)
Callback for number of object loaded from the db. |
void |
searchExecuted(String searchString,
long time)
Callback for an executed Lucene search. |
void |
setStatisticsEnabled(boolean b)
Enable statistics logs (this is a dynamic parameter) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StatisticsImpl(SearchFactoryImplementor searchFactoryImplementor)
| Method Detail |
|---|
public void clear()
Statistics
clear in interface Statisticspublic long getSearchQueryExecutionCount()
Statistics
getSearchQueryExecutionCount in interface Statisticspublic long getSearchQueryTotalTime()
Statistics
getSearchQueryTotalTime in interface Statisticspublic long getSearchQueryExecutionMaxTime()
Statistics
getSearchQueryExecutionMaxTime in interface Statisticspublic long getSearchQueryExecutionAvgTime()
Statistics
getSearchQueryExecutionAvgTime in interface Statisticspublic String getSearchQueryExecutionMaxTimeQueryString()
Statistics
getSearchQueryExecutionMaxTimeQueryString in interface Statistics
public void searchExecuted(String searchString,
long time)
StatisticsImplementor
searchExecuted in interface StatisticsImplementorsearchString - executed query stringtime - time in nanoseconds to execute the searchpublic long getObjectsLoadedCount()
Statistics
getObjectsLoadedCount in interface Statisticspublic long getObjectLoadingTotalTime()
Statistics
getObjectLoadingTotalTime in interface Statisticspublic long getObjectLoadingExecutionMaxTime()
Statistics
getObjectLoadingExecutionMaxTime in interface Statisticspublic long getObjectLoadingExecutionAvgTime()
Statistics
getObjectLoadingExecutionAvgTime in interface Statistics
public void objectLoadExecuted(long numberOfObjectsLoaded,
long time)
StatisticsImplementor
objectLoadExecuted in interface StatisticsImplementornumberOfObjectsLoaded - Number of objects loadedtime - time in nanoseconds to load the objectspublic boolean isStatisticsEnabled()
Statistics
isStatisticsEnabled in interface Statisticspublic void setStatisticsEnabled(boolean b)
Statistics
setStatisticsEnabled in interface Statisticspublic String getSearchVersion()
Statistics
getSearchVersion in interface Statisticspublic Set<String> getIndexedClassNames()
Statistics
getIndexedClassNames in interface Statisticspublic int getNumberOfIndexedEntities(String entity)
Statistics
getNumberOfIndexedEntities in interface Statisticsentity - the fqc of the entity
public Map<String,Integer> indexedEntitiesCount()
Statistics
indexedEntitiesCount in interface Statistics
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||