Class LuceneIndexMBeanImpl

    • Field Summary

    • Constructor Summary

      Constructors 
      Constructor Description
      LuceneIndexMBeanImpl​(IndexTracker indexTracker, NodeStore nodeStore, IndexPathService indexPathService, java.io.File workDir, @Nullable org.apache.jackrabbit.oak.plugins.index.lucene.property.PropertyIndexCleaner cleaner)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String[] checkAndReportConsistencyOfAllIndexes​(boolean fullCheck)  
      java.lang.String checkConsistency​(java.lang.String indexPath, boolean fullCheck)  
      boolean checkConsistencyOfAllIndexes​(boolean fullCheck)  
      java.lang.String diffStoredIndexDefinition​(java.lang.String indexPath)  
      void dumpIndexContent​(java.lang.String sourcePath, java.lang.String destPath)  
      javax.management.openmbean.TabularData getBadIndexStats()  
      javax.management.openmbean.TabularData getBadPersistedIndexStats()  
      java.lang.String getDocCount​(java.lang.String indexPath)  
      java.lang.String[] getFieldInfo​(java.lang.String indexPath)  
      java.lang.String[] getFieldTermInfo​(java.lang.String indexPath, java.lang.String field, java.lang.String term)  
      java.lang.String[] getFieldTermsInfo​(java.lang.String indexPath, java.lang.String field, int max)  
      java.lang.String[] getFieldTermsInfo​(java.lang.String indexPath, java.lang.String field, java.lang.String fieldType, int max)  
      java.lang.String getHybridIndexInfo​(java.lang.String indexPath)  
      java.lang.String[] getIndexedPaths​(java.lang.String indexPath, int maxLevel, int maxPathCount)  
      javax.management.openmbean.TabularData getIndexStats()  
      java.lang.String getSize​(java.lang.String indexPath)  
      java.lang.String getStoredIndexDefinition​(java.lang.String indexPath)  
      boolean isFailing()  
      java.lang.String performPropertyIndexCleanup()  
      java.lang.String performPropertyIndexCleanup​(java.lang.String paths, int batchSize, int sleepPerBatch, int maxRemoveCount)  
      • Methods inherited from class javax.management.StandardMBean

        getAttribute, getAttributes, getImplementation, getImplementationClass, getMBeanInfo, getMBeanInterface, invoke, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementation
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LuceneIndexMBeanImpl

        public LuceneIndexMBeanImpl​(IndexTracker indexTracker,
                                    NodeStore nodeStore,
                                    IndexPathService indexPathService,
                                    java.io.File workDir,
                                    @Nullable
                                    @Nullable org.apache.jackrabbit.oak.plugins.index.lucene.property.PropertyIndexCleaner cleaner)
    • Method Detail

      • getIndexStats

        public javax.management.openmbean.TabularData getIndexStats()
                                                             throws java.io.IOException
        Specified by:
        getIndexStats in interface org.apache.jackrabbit.oak.plugins.index.search.IndexMBean
        Throws:
        java.io.IOException
      • getIndexedPaths

        public java.lang.String[] getIndexedPaths​(java.lang.String indexPath,
                                                  int maxLevel,
                                                  int maxPathCount)
                                           throws java.io.IOException
        Specified by:
        getIndexedPaths in interface LuceneIndexMBean
        Throws:
        java.io.IOException
      • getFieldInfo

        public java.lang.String[] getFieldInfo​(java.lang.String indexPath)
                                        throws java.io.IOException
        Specified by:
        getFieldInfo in interface LuceneIndexMBean
        Throws:
        java.io.IOException
      • getFieldTermsInfo

        public java.lang.String[] getFieldTermsInfo​(java.lang.String indexPath,
                                                    java.lang.String field,
                                                    int max)
                                             throws java.io.IOException
        Specified by:
        getFieldTermsInfo in interface LuceneIndexMBean
        Throws:
        java.io.IOException
      • getFieldTermInfo

        public java.lang.String[] getFieldTermInfo​(java.lang.String indexPath,
                                                   java.lang.String field,
                                                   java.lang.String term)
                                            throws java.io.IOException
        Specified by:
        getFieldTermInfo in interface LuceneIndexMBean
        Throws:
        java.io.IOException
      • getFieldTermsInfo

        public java.lang.String[] getFieldTermsInfo​(java.lang.String indexPath,
                                                    java.lang.String field,
                                                    java.lang.String fieldType,
                                                    int max)
                                             throws java.io.IOException
        Specified by:
        getFieldTermsInfo in interface LuceneIndexMBean
        Throws:
        java.io.IOException
      • checkConsistency

        public java.lang.String checkConsistency​(java.lang.String indexPath,
                                                 boolean fullCheck)
                                          throws java.io.IOException
        Specified by:
        checkConsistency in interface LuceneIndexMBean
        Throws:
        java.io.IOException
      • checkAndReportConsistencyOfAllIndexes

        public java.lang.String[] checkAndReportConsistencyOfAllIndexes​(boolean fullCheck)
                                                                 throws java.io.IOException
        Specified by:
        checkAndReportConsistencyOfAllIndexes in interface LuceneIndexMBean
        Throws:
        java.io.IOException
      • checkConsistencyOfAllIndexes

        public boolean checkConsistencyOfAllIndexes​(boolean fullCheck)
                                             throws java.io.IOException
        Specified by:
        checkConsistencyOfAllIndexes in interface LuceneIndexMBean
        Throws:
        java.io.IOException
      • getSize

        public java.lang.String getSize​(java.lang.String indexPath)
                                 throws java.io.IOException
        Specified by:
        getSize in interface org.apache.jackrabbit.oak.plugins.index.search.IndexMBean
        Throws:
        java.io.IOException
      • getDocCount

        public java.lang.String getDocCount​(java.lang.String indexPath)
                                     throws java.io.IOException
        Specified by:
        getDocCount in interface org.apache.jackrabbit.oak.plugins.index.search.IndexMBean
        Throws:
        java.io.IOException
      • dumpIndexContent

        public void dumpIndexContent​(java.lang.String sourcePath,
                                     java.lang.String destPath)
                              throws java.io.IOException
        Throws:
        java.io.IOException