Class IndexTracker

  • public class IndexTracker
    extends java.lang.Object
    Keeps track of all Lucene indexes in a repository (all readers, writers, and definitions).
    • Constructor Detail

      • IndexTracker

        public IndexTracker()
      • IndexTracker

        public IndexTracker​(IndexCopier cloner)
      • IndexTracker

        public IndexTracker​(org.apache.jackrabbit.oak.plugins.index.lucene.reader.LuceneIndexReaderFactory readerFactory)
      • IndexTracker

        public IndexTracker​(org.apache.jackrabbit.oak.plugins.index.lucene.reader.LuceneIndexReaderFactory readerFactory,
                            @Nullable org.apache.jackrabbit.oak.plugins.index.lucene.hybrid.NRTIndexFactory nrtFactory)
    • Method Detail

      • close

        public void close()
      • update

        public void update​(NodeState root)
      • setAsyncIndexInfoService

        public void setAsyncIndexInfoService​(AsyncIndexInfoService asyncIndexInfoService)
      • refresh

        public void refresh()
      • acquireIndexNode

        public @Nullable LuceneIndexNode acquireIndexNode​(java.lang.String path)
        Acquire the index node, if the index is good.
        path - the index path
        the index node, or null if it's a bad (corrupt) index
      • getIndexDefinition

        public @Nullable LuceneIndexDefinition getIndexDefinition​(java.lang.String indexPath)
      • getIndexNodePaths

        public java.util.Set<java.lang.String> getIndexNodePaths()
      • getBadIndexTracker

        public getBadIndexTracker()