public interface Statistics
Modifier and Type | Method and Description |
---|---|
void |
clear()
Reset all statistics.
|
Set<String> |
getIndexedClassNames()
Returns a list of all indexed classes.
|
long |
getIndexSize(String indexName)
Returns the size of the index with the given name, in bytes.
|
int |
getNumberOfIndexedEntities(String entity)
Returns the number of documents for the given entity.
|
long |
getObjectLoadingExecutionAvgTime() |
long |
getObjectLoadingExecutionMaxTime() |
long |
getObjectLoadingTotalTime() |
long |
getObjectsLoadedCount() |
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.
|
Map<String,Long> |
indexSizes() |
boolean |
isStatisticsEnabled() |
void |
setStatisticsEnabled(boolean b)
Enable statistics logs (this is a dynamic parameter)
|
void clear()
long getSearchQueryExecutionCount()
long getSearchQueryTotalTime()
long getSearchQueryExecutionMaxTime()
long getSearchQueryExecutionAvgTime()
String getSearchQueryExecutionMaxTimeQueryString()
long getObjectLoadingTotalTime()
long getObjectLoadingExecutionMaxTime()
long getObjectLoadingExecutionAvgTime()
long getObjectsLoadedCount()
boolean isStatisticsEnabled()
true
if statistics are enabled, false
otherwisevoid setStatisticsEnabled(boolean b)
b
- if true
, it enables the statistics.String getSearchVersion()
Set<String> getIndexedClassNames()
int getNumberOfIndexedEntities(String entity)
entity
- the fqc of the entityIllegalArgumentException
- in case the entity name is not validMap<String,Integer> indexedEntitiesCount()
long getIndexSize(String indexName)
indexName
- the index name (which may differ from the entity name,
depending on configuration settings)IllegalArgumentException
- in case the index name is not validCopyright © 2006-2017 Red Hat, Inc. All Rights Reserved