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.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)
-
-
-
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 interfaceorg.apache.jackrabbit.oak.plugins.index.search.IndexMBean
- Throws:
java.io.IOException
-
getBadIndexStats
public javax.management.openmbean.TabularData getBadIndexStats()
- Specified by:
getBadIndexStats
in interfaceLuceneIndexMBean
-
getBadPersistedIndexStats
public javax.management.openmbean.TabularData getBadPersistedIndexStats()
- Specified by:
getBadPersistedIndexStats
in interfaceLuceneIndexMBean
-
isFailing
public boolean isFailing()
- Specified by:
isFailing
in interfaceLuceneIndexMBean
-
getIndexedPaths
public java.lang.String[] getIndexedPaths(java.lang.String indexPath, int maxLevel, int maxPathCount) throws java.io.IOException
- Specified by:
getIndexedPaths
in interfaceLuceneIndexMBean
- Throws:
java.io.IOException
-
getFieldInfo
public java.lang.String[] getFieldInfo(java.lang.String indexPath) throws java.io.IOException
- Specified by:
getFieldInfo
in 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:
getFieldTermsInfo
in 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:
getFieldTermInfo
in 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:
getFieldTermsInfo
in interfaceLuceneIndexMBean
- Throws:
java.io.IOException
-
getStoredIndexDefinition
public java.lang.String getStoredIndexDefinition(@Name("indexPath") java.lang.String indexPath)
- Specified by:
getStoredIndexDefinition
in interfaceLuceneIndexMBean
-
diffStoredIndexDefinition
public java.lang.String diffStoredIndexDefinition(@Name("indexPath") java.lang.String indexPath)
- Specified by:
diffStoredIndexDefinition
in interfaceLuceneIndexMBean
-
checkConsistency
public java.lang.String checkConsistency(java.lang.String indexPath, boolean fullCheck) throws java.io.IOException
- Specified by:
checkConsistency
in interfaceLuceneIndexMBean
- Throws:
java.io.IOException
-
checkAndReportConsistencyOfAllIndexes
public java.lang.String[] checkAndReportConsistencyOfAllIndexes(boolean fullCheck) throws java.io.IOException
- Specified by:
checkAndReportConsistencyOfAllIndexes
in interfaceLuceneIndexMBean
- Throws:
java.io.IOException
-
checkConsistencyOfAllIndexes
public boolean checkConsistencyOfAllIndexes(boolean fullCheck) throws java.io.IOException
- Specified by:
checkConsistencyOfAllIndexes
in 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:
performPropertyIndexCleanup
in interfaceLuceneIndexMBean
- Throws:
CommitFailedException
-
performPropertyIndexCleanup
public java.lang.String performPropertyIndexCleanup() throws CommitFailedException
- Specified by:
performPropertyIndexCleanup
in interfaceLuceneIndexMBean
- Throws:
CommitFailedException
-
getHybridIndexInfo
public java.lang.String getHybridIndexInfo(java.lang.String indexPath)
- Specified by:
getHybridIndexInfo
in interfaceLuceneIndexMBean
-
getSize
public java.lang.String getSize(java.lang.String indexPath) throws java.io.IOException
- Specified by:
getSize
in 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:
getDocCount
in 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
-
-