Class LuceneIndexMBeanImpl
java.lang.Object
javax.management.StandardMBean
org.apache.jackrabbit.oak.commons.jmx.AnnotatedStandardMBean
org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexMBeanImpl
- All Implemented Interfaces:
DynamicMBean,MBeanRegistration,LuceneIndexMBean,org.apache.jackrabbit.oak.plugins.index.search.IndexMBean
-
Field Summary
Fields inherited from interface org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexMBean
TYPE -
Constructor Summary
ConstructorsConstructorDescriptionLuceneIndexMBeanImpl(IndexTracker indexTracker, NodeStore nodeStore, IndexPathService indexPathService, File workDir, @Nullable org.apache.jackrabbit.oak.plugins.index.lucene.property.PropertyIndexCleaner cleaner) -
Method Summary
Modifier and TypeMethodDescriptionString[]checkAndReportConsistencyOfAllIndexes(boolean fullCheck) checkConsistency(String indexPath, boolean fullCheck) booleancheckConsistencyOfAllIndexes(boolean fullCheck) diffStoredIndexDefinition(String indexPath) voiddumpIndexContent(String sourcePath, String destPath) getDocCount(String indexPath) String[]getFieldInfo(String indexPath) String[]getFieldTermInfo(String indexPath, String field, String term) String[]getFieldTermsInfo(String indexPath, String field, int max) String[]getFieldTermsInfo(String indexPath, String field, String fieldType, int max) getHybridIndexInfo(String indexPath) String[]getIndexedPaths(String indexPath, int maxLevel, int maxPathCount) getStoredIndexDefinition(String indexPath) booleanperformPropertyIndexCleanup(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
-
Constructor Details
-
LuceneIndexMBeanImpl
public LuceneIndexMBeanImpl(IndexTracker indexTracker, NodeStore nodeStore, IndexPathService indexPathService, File workDir, @Nullable @Nullable org.apache.jackrabbit.oak.plugins.index.lucene.property.PropertyIndexCleaner cleaner)
-
-
Method Details
-
getIndexStats
- Specified by:
getIndexStatsin interfaceorg.apache.jackrabbit.oak.plugins.index.search.IndexMBean- Throws:
IOException
-
getBadIndexStats
- Specified by:
getBadIndexStatsin interfaceLuceneIndexMBean
-
getBadPersistedIndexStats
- Specified by:
getBadPersistedIndexStatsin interfaceLuceneIndexMBean
-
isFailing
public boolean isFailing()- Specified by:
isFailingin interfaceLuceneIndexMBean
-
getIndexedPaths
public String[] getIndexedPaths(String indexPath, int maxLevel, int maxPathCount) throws IOException - Specified by:
getIndexedPathsin interfaceLuceneIndexMBean- Throws:
IOException
-
getFieldInfo
- Specified by:
getFieldInfoin interfaceLuceneIndexMBean- Throws:
IOException
-
getFieldTermsInfo
- Specified by:
getFieldTermsInfoin interfaceLuceneIndexMBean- Throws:
IOException
-
getFieldTermInfo
- Specified by:
getFieldTermInfoin interfaceLuceneIndexMBean- Throws:
IOException
-
getFieldTermsInfo
public String[] getFieldTermsInfo(String indexPath, String field, String fieldType, int max) throws IOException - Specified by:
getFieldTermsInfoin interfaceLuceneIndexMBean- Throws:
IOException
-
getStoredIndexDefinition
- Specified by:
getStoredIndexDefinitionin interfaceLuceneIndexMBean
-
diffStoredIndexDefinition
- Specified by:
diffStoredIndexDefinitionin interfaceLuceneIndexMBean
-
checkConsistency
- Specified by:
checkConsistencyin interfaceLuceneIndexMBean- Throws:
IOException
-
checkAndReportConsistencyOfAllIndexes
- Specified by:
checkAndReportConsistencyOfAllIndexesin interfaceLuceneIndexMBean- Throws:
IOException
-
checkConsistencyOfAllIndexes
- Specified by:
checkConsistencyOfAllIndexesin interfaceLuceneIndexMBean- Throws:
IOException
-
performPropertyIndexCleanup
public String performPropertyIndexCleanup(String paths, int batchSize, int sleepPerBatch, int maxRemoveCount) throws CommitFailedException - Specified by:
performPropertyIndexCleanupin interfaceLuceneIndexMBean- Throws:
CommitFailedException
-
performPropertyIndexCleanup
- Specified by:
performPropertyIndexCleanupin interfaceLuceneIndexMBean- Throws:
CommitFailedException
-
getHybridIndexInfo
- Specified by:
getHybridIndexInfoin interfaceLuceneIndexMBean
-
getSize
- Specified by:
getSizein interfaceorg.apache.jackrabbit.oak.plugins.index.search.IndexMBean- Throws:
IOException
-
getDocCount
- Specified by:
getDocCountin interfaceorg.apache.jackrabbit.oak.plugins.index.search.IndexMBean- Throws:
IOException
-
dumpIndexContent
- Throws:
IOException
-