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
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.jackrabbit.oak.plugins.index.importer.AsyncIndexerLock
AsyncIndexerLock.LockToken -
Field Summary
FieldsFields inherited from interface org.apache.jackrabbit.oak.plugins.index.importer.AsyncIndexerLock
NOOP_LOCK -
Constructor Summary
ConstructorsConstructorDescriptionAbortingIndexerLock(AsyncIndexInfoService infoService) AbortingIndexerLock(AsyncIndexInfoService infoService, Clock clock) -
Method Summary
-
Field Details
-
TIMEOUT_SECONDS
public static final int TIMEOUT_SECONDS- See Also:
-
-
Constructor Details
-
AbortingIndexerLock
-
AbortingIndexerLock
-
-
Method Details
-
lock
- Specified by:
lockin interfaceAsyncIndexerLock<org.apache.jackrabbit.oak.plugins.index.importer.SimpleToken>
-
unlock
public void unlock(org.apache.jackrabbit.oak.plugins.index.importer.SimpleToken token) - Specified by:
unlockin interfaceAsyncIndexerLock<org.apache.jackrabbit.oak.plugins.index.importer.SimpleToken>
-