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:
javax.management.DynamicMBean,javax.management.MBeanRegistration,LuceneIndexMBean,org.apache.jackrabbit.oak.plugins.index.search.IndexMBean
public class LuceneIndexMBeanImpl extends AnnotatedStandardMBean implements LuceneIndexMBean
-
-
Field Summary
-
Fields inherited from interface org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexMBean
TYPE
-
-
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.StringcheckConsistency(java.lang.String indexPath, boolean fullCheck)booleancheckConsistencyOfAllIndexes(boolean fullCheck)java.lang.StringdiffStoredIndexDefinition(java.lang.String indexPath)voiddumpIndexContent(java.lang.String sourcePath, java.lang.String destPath)javax.management.openmbean.TabularDatagetBadIndexStats()javax.management.openmbean.TabularDatagetBadPersistedIndexStats()java.lang.StringgetDocCount(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.StringgetHybridIndexInfo(java.lang.String indexPath)java.lang.String[]getIndexedPaths(java.lang.String indexPath, int maxLevel, int maxPathCount)javax.management.openmbean.TabularDatagetIndexStats()java.lang.StringgetSize(java.lang.String indexPath)java.lang.StringgetStoredIndexDefinition(java.lang.String indexPath)booleanisFailing()java.lang.StringperformPropertyIndexCleanup()java.lang.StringperformPropertyIndexCleanup(java.lang.String paths, int batchSize, int sleepPerBatch, int maxRemoveCount)
-
-
-
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:
getIndexStatsin interfaceorg.apache.jackrabbit.oak.plugins.index.search.IndexMBean- Throws:
java.io.IOException
-
getBadIndexStats
public javax.management.openmbean.TabularData getBadIndexStats()
- Specified by:
getBadIndexStatsin interfaceLuceneIndexMBean
-
getBadPersistedIndexStats
public javax.management.openmbean.TabularData getBadPersistedIndexStats()
- Specified by:
getBadPersistedIndexStatsin interfaceLuceneIndexMBean
-
isFailing
public boolean isFailing()
- Specified by:
isFailingin interfaceLuceneIndexMBean
-
getIndexedPaths
public java.lang.String[] getIndexedPaths(java.lang.String indexPath, int maxLevel, int maxPathCount) throws java.io.IOException- Specified by:
getIndexedPathsin interfaceLuceneIndexMBean- Throws:
java.io.IOException
-
getFieldInfo
public java.lang.String[] getFieldInfo(java.lang.String indexPath) throws java.io.IOException- Specified by:
getFieldInfoin interfaceLuceneIndexMBean- 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:
getFieldTermsInfoin interfaceLuceneIndexMBean- 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:
getFieldTermInfoin interfaceLuceneIndexMBean- 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:
getFieldTermsInfoin interfaceLuceneIndexMBean- Throws:
java.io.IOException
-
getStoredIndexDefinition
public java.lang.String getStoredIndexDefinition(@Name("indexPath") java.lang.String indexPath)
- Specified by:
getStoredIndexDefinitionin interfaceLuceneIndexMBean
-
diffStoredIndexDefinition
public java.lang.String diffStoredIndexDefinition(@Name("indexPath") java.lang.String indexPath)
- Specified by:
diffStoredIndexDefinitionin interfaceLuceneIndexMBean
-
checkConsistency
public java.lang.String checkConsistency(java.lang.String indexPath, boolean fullCheck) throws java.io.IOException- Specified by:
checkConsistencyin interfaceLuceneIndexMBean- Throws:
java.io.IOException
-
checkAndReportConsistencyOfAllIndexes
public java.lang.String[] checkAndReportConsistencyOfAllIndexes(boolean fullCheck) throws java.io.IOException- Specified by:
checkAndReportConsistencyOfAllIndexesin interfaceLuceneIndexMBean- Throws:
java.io.IOException
-
checkConsistencyOfAllIndexes
public boolean checkConsistencyOfAllIndexes(boolean fullCheck) throws java.io.IOException- Specified by:
checkConsistencyOfAllIndexesin interfaceLuceneIndexMBean- Throws:
java.io.IOException
-
performPropertyIndexCleanup
public java.lang.String performPropertyIndexCleanup(java.lang.String paths, int batchSize, int sleepPerBatch, int maxRemoveCount) throws CommitFailedException- Specified by:
performPropertyIndexCleanupin interfaceLuceneIndexMBean- Throws:
CommitFailedException
-
performPropertyIndexCleanup
public java.lang.String performPropertyIndexCleanup() throws CommitFailedException- Specified by:
performPropertyIndexCleanupin interfaceLuceneIndexMBean- Throws:
CommitFailedException
-
getHybridIndexInfo
public java.lang.String getHybridIndexInfo(java.lang.String indexPath)
- Specified by:
getHybridIndexInfoin interfaceLuceneIndexMBean
-
getSize
public java.lang.String getSize(java.lang.String indexPath) throws java.io.IOException- Specified by:
getSizein interfaceorg.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:
getDocCountin interfaceorg.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
-
-