Class InfinispanQueryStatisticsInfo

  • All Implemented Interfaces:
    org.hibernate.search.jmx.StatisticsInfoMBean, org.hibernate.search.stat.Statistics, InfinispanQueryStatisticsInfoMBean

    public class InfinispanQueryStatisticsInfo
    extends Object
    implements InfinispanQueryStatisticsInfoMBean
    This MBean exposes the query statistics from the Hibernate Search's SearchIntegrator Statistics object via delegation. The Statistics object is transient during search factory in-flight reconfiguration so the instance returned by getStatistics() cannot be registered directly as an MBean.
    Since:
    6.1
    Author:
    anistor@redhat.com
    • Constructor Detail

      • InfinispanQueryStatisticsInfo

        public InfinispanQueryStatisticsInfo​(org.hibernate.search.spi.SearchIntegrator searchIntegrator,
                                             ObjectName objectName)
    • Method Detail

      • getObjectName

        public ObjectName getObjectName()
      • clear

        public void clear()
        Specified by:
        clear in interface org.hibernate.search.stat.Statistics
      • getSearchQueryExecutionCount

        public long getSearchQueryExecutionCount()
        Specified by:
        getSearchQueryExecutionCount in interface org.hibernate.search.stat.Statistics
      • getSearchQueryTotalTime

        public long getSearchQueryTotalTime()
        Specified by:
        getSearchQueryTotalTime in interface org.hibernate.search.stat.Statistics
      • getSearchQueryExecutionMaxTime

        public long getSearchQueryExecutionMaxTime()
        Specified by:
        getSearchQueryExecutionMaxTime in interface org.hibernate.search.stat.Statistics
      • getSearchQueryExecutionAvgTime

        public long getSearchQueryExecutionAvgTime()
        Specified by:
        getSearchQueryExecutionAvgTime in interface org.hibernate.search.stat.Statistics
      • getSearchQueryExecutionMaxTimeQueryString

        public String getSearchQueryExecutionMaxTimeQueryString()
        Specified by:
        getSearchQueryExecutionMaxTimeQueryString in interface org.hibernate.search.stat.Statistics
      • getObjectLoadingTotalTime

        public long getObjectLoadingTotalTime()
        Specified by:
        getObjectLoadingTotalTime in interface org.hibernate.search.stat.Statistics
      • getObjectLoadingExecutionMaxTime

        public long getObjectLoadingExecutionMaxTime()
        Specified by:
        getObjectLoadingExecutionMaxTime in interface org.hibernate.search.stat.Statistics
      • getObjectLoadingExecutionAvgTime

        public long getObjectLoadingExecutionAvgTime()
        Specified by:
        getObjectLoadingExecutionAvgTime in interface org.hibernate.search.stat.Statistics
      • getObjectsLoadedCount

        public long getObjectsLoadedCount()
        Specified by:
        getObjectsLoadedCount in interface org.hibernate.search.stat.Statistics
      • isStatisticsEnabled

        public boolean isStatisticsEnabled()
        Specified by:
        isStatisticsEnabled in interface org.hibernate.search.stat.Statistics
      • setStatisticsEnabled

        public void setStatisticsEnabled​(boolean isStatisticsEnabled)
        Specified by:
        setStatisticsEnabled in interface org.hibernate.search.stat.Statistics
      • getSearchVersion

        public String getSearchVersion()
        Specified by:
        getSearchVersion in interface org.hibernate.search.stat.Statistics
      • getIndexedClassNames

        public Set<String> getIndexedClassNames()
        Specified by:
        getIndexedClassNames in interface org.hibernate.search.stat.Statistics
      • getNumberOfIndexedEntities

        public int getNumberOfIndexedEntities​(String entity)
        Specified by:
        getNumberOfIndexedEntities in interface org.hibernate.search.stat.Statistics
      • indexedEntitiesCount

        public Map<String,​Integer> indexedEntitiesCount()
        Specified by:
        indexedEntitiesCount in interface org.hibernate.search.stat.Statistics
      • getIndexSize

        public long getIndexSize​(String indexName)
        Specified by:
        getIndexSize in interface org.hibernate.search.stat.Statistics
      • indexSizes

        public Map<String,​Long> indexSizes()
        Specified by:
        indexSizes in interface org.hibernate.search.stat.Statistics