Class ActiveDeletedBlobCollectorMBeanImpl
java.lang.Object
org.apache.jackrabbit.oak.plugins.index.lucene.ActiveDeletedBlobCollectorMBeanImpl
- All Implemented Interfaces:
ActiveDeletedBlobCollectorMBean
public class ActiveDeletedBlobCollectorMBeanImpl
extends Object
implements ActiveDeletedBlobCollectorMBean
-
Field Summary
Fields inherited from interface org.apache.jackrabbit.oak.plugins.index.lucene.ActiveDeletedBlobCollectorMBean
TYPE -
Constructor Summary
ConstructorsConstructorDescriptionActiveDeletedBlobCollectorMBeanImpl(@NotNull org.apache.jackrabbit.oak.plugins.index.lucene.directory.ActiveDeletedBlobCollectorFactory.ActiveDeletedBlobCollector activeDeletedBlobCollector, @NotNull Whiteboard whiteboard, @NotNull NodeStore store, @NotNull IndexPathService indexPathService, @NotNull AsyncIndexInfoService asyncIndexInfoService, @NotNull GarbageCollectableBlobStore blobStore, @NotNull Executor executor) -
Method Summary
Modifier and TypeMethodDescription@NotNull CompositeDataCancel a running collection of deleted lucene index blobs operation.voidResets the in-memory flag so that new blobs are not flagged anymore and hence would get marked for active deletion when active deletion is active.voidFlag current blobs (head state) referred by all indexes so that they won't be marked to be collected by active deletion later.@NotNull CompositeDataStatus of collection of deleted lucene index blobs.booleanbooleanWhether active deletion is disabled.@NotNull CompositeDataInitiate collection operation of deleted lucene index blobs
-
Constructor Details
-
ActiveDeletedBlobCollectorMBeanImpl
public ActiveDeletedBlobCollectorMBeanImpl(@NotNull @NotNull org.apache.jackrabbit.oak.plugins.index.lucene.directory.ActiveDeletedBlobCollectorFactory.ActiveDeletedBlobCollector activeDeletedBlobCollector, @NotNull @NotNull Whiteboard whiteboard, @NotNull @NotNull NodeStore store, @NotNull @NotNull IndexPathService indexPathService, @NotNull @NotNull AsyncIndexInfoService asyncIndexInfoService, @NotNull @NotNull GarbageCollectableBlobStore blobStore, @NotNull @NotNull Executor executor) - Parameters:
activeDeletedBlobCollector- deleted index blobs collectorwhiteboard- An instance ofWhiteboard. It will be used to get checkpoing manager mbean.store-NodeStoreinstance to access repository stateindexPathService-IndexPathServiceinstance to collect indexes available in the repositoryasyncIndexInfoService-AsyncIndexInfoServiceinstance to acess state of async indexer lanesblobStore- An instance ofGarbageCollectableBlobStore. It will be used to purge blobs which have been deleted from lucene indexes.executor- executor for running the collection task
-
-
Method Details
-
isDisabled
public boolean isDisabled()Description copied from interface:ActiveDeletedBlobCollectorMBeanWhether active deletion is disabled.- Specified by:
isDisabledin interfaceActiveDeletedBlobCollectorMBean- Returns:
- true if disabled
-
startActiveCollection
Description copied from interface:ActiveDeletedBlobCollectorMBeanInitiate collection operation of deleted lucene index blobs- Specified by:
startActiveCollectionin interfaceActiveDeletedBlobCollectorMBean- Returns:
- the status of the operation right after it was initiated
-
cancelActiveCollection
Description copied from interface:ActiveDeletedBlobCollectorMBeanCancel a running collection of deleted lucene index blobs operation. Does nothing if collection is not running.- Specified by:
cancelActiveCollectionin interfaceActiveDeletedBlobCollectorMBean- Returns:
- the status of the operation right after it was initiated
-
getActiveCollectionStatus
Description copied from interface:ActiveDeletedBlobCollectorMBeanStatus of collection of deleted lucene index blobs.- Specified by:
getActiveCollectionStatusin interfaceActiveDeletedBlobCollectorMBean- Returns:
- the status of the ongoing operation or if none the terminal status of the last operation or Status not available if none.
-
isActiveDeletionUnsafe
public boolean isActiveDeletionUnsafe()- Specified by:
isActiveDeletionUnsafein interfaceActiveDeletedBlobCollectorMBean- Returns:
- true: if recording deleted blob for active deletion is unsafe; false: otherwise
-
flagActiveDeletionUnsafeForCurrentState
public void flagActiveDeletionUnsafeForCurrentState()Description copied from interface:ActiveDeletedBlobCollectorMBeanFlag current blobs (head state) referred by all indexes so that they won't be marked to be collected by active deletion later. It would also set an in-memory flag so that new blobs also are flagged to be not marked for deletion by active deletion- Specified by:
flagActiveDeletionUnsafeForCurrentStatein interfaceActiveDeletedBlobCollectorMBean
-
flagActiveDeletionSafe
public void flagActiveDeletionSafe()Description copied from interface:ActiveDeletedBlobCollectorMBeanResets the in-memory flag so that new blobs are not flagged anymore and hence would get marked for active deletion when active deletion is active.- Specified by:
flagActiveDeletionSafein interfaceActiveDeletedBlobCollectorMBean
-