Class AbortingIndexerLock

  • All Implemented Interfaces:
    AsyncIndexerLock<org.apache.jackrabbit.oak.plugins.index.importer.SimpleToken>

    public class AbortingIndexerLock
    extends java.lang.Object
    implements AsyncIndexerLock<org.apache.jackrabbit.oak.plugins.index.importer.SimpleToken>
    Lock implementation for single node setup like for SegmentNodeStore It works by check async indexer status via IndexStatsMBean and then aborting it if found to be running
    • Method Detail

      • lock

        public org.apache.jackrabbit.oak.plugins.index.importer.SimpleToken lock​(java.lang.String asyncIndexerLane)
        Specified by:
        lock in interface AsyncIndexerLock<org.apache.jackrabbit.oak.plugins.index.importer.SimpleToken>
      • unlock

        public void unlock​(org.apache.jackrabbit.oak.plugins.index.importer.SimpleToken token)
        Specified by:
        unlock in interface AsyncIndexerLock<org.apache.jackrabbit.oak.plugins.index.importer.SimpleToken>