Class AbortingIndexerLock

java.lang.Object
org.apache.jackrabbit.oak.plugins.index.importer.AbortingIndexerLock
All Implemented Interfaces:
AsyncIndexerLock<org.apache.jackrabbit.oak.plugins.index.importer.SimpleToken>

public class AbortingIndexerLock extends 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
  • Field Details

  • Constructor Details

  • Method Details

    • lock

      public org.apache.jackrabbit.oak.plugins.index.importer.SimpleToken lock(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>