Class ActiveDeletedBlobCollectorMBeanImpl
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.index.lucene.ActiveDeletedBlobCollectorMBeanImpl
-
- All Implemented Interfaces:
ActiveDeletedBlobCollectorMBean
public class ActiveDeletedBlobCollectorMBeanImpl extends java.lang.Object implements ActiveDeletedBlobCollectorMBean
-
-
Field Summary
-
Fields inherited from interface org.apache.jackrabbit.oak.plugins.index.lucene.ActiveDeletedBlobCollectorMBean
TYPE
-
-
Constructor Summary
Constructors Constructor Description ActiveDeletedBlobCollectorMBeanImpl(@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 java.util.concurrent.Executor executor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull javax.management.openmbean.CompositeData
cancelActiveCollection()
Cancel a running collection of deleted lucene index blobs operation.void
flagActiveDeletionSafe()
Resets 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.void
flagActiveDeletionUnsafeForCurrentState()
Flag current blobs (head state) referred by all indexes so that they won't be marked to be collected by active deletion later.@NotNull javax.management.openmbean.CompositeData
getActiveCollectionStatus()
Status of collection of deleted lucene index blobs.boolean
isActiveDeletionUnsafe()
boolean
isDisabled()
Whether active deletion is disabled.@NotNull javax.management.openmbean.CompositeData
startActiveCollection()
Initiate collection operation of deleted lucene index blobs
-
-
-
Constructor Detail
-
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 java.util.concurrent.Executor executor)
- Parameters:
activeDeletedBlobCollector
- deleted index blobs collectorwhiteboard
- An instance ofWhiteboard
. It will be used to get checkpoing manager mbean.store
-NodeStore
instance to access repository stateindexPathService
-IndexPathService
instance to collect indexes available in the repositoryasyncIndexInfoService
-AsyncIndexInfoService
instance 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 Detail
-
isDisabled
public boolean isDisabled()
Description copied from interface:ActiveDeletedBlobCollectorMBean
Whether active deletion is disabled.- Specified by:
isDisabled
in interfaceActiveDeletedBlobCollectorMBean
- Returns:
- true if disabled
-
startActiveCollection
@NotNull public @NotNull javax.management.openmbean.CompositeData startActiveCollection()
Description copied from interface:ActiveDeletedBlobCollectorMBean
Initiate collection operation of deleted lucene index blobs- Specified by:
startActiveCollection
in interfaceActiveDeletedBlobCollectorMBean
- Returns:
- the status of the operation right after it was initiated
-
cancelActiveCollection
@NotNull public @NotNull javax.management.openmbean.CompositeData cancelActiveCollection()
Description copied from interface:ActiveDeletedBlobCollectorMBean
Cancel a running collection of deleted lucene index blobs operation. Does nothing if collection is not running.- Specified by:
cancelActiveCollection
in interfaceActiveDeletedBlobCollectorMBean
- Returns:
- the status of the operation right after it was initiated
-
getActiveCollectionStatus
@NotNull public @NotNull javax.management.openmbean.CompositeData getActiveCollectionStatus()
Description copied from interface:ActiveDeletedBlobCollectorMBean
Status of collection of deleted lucene index blobs.- Specified by:
getActiveCollectionStatus
in 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:
isActiveDeletionUnsafe
in interfaceActiveDeletedBlobCollectorMBean
- Returns:
- true: if recording deleted blob for active deletion is unsafe; false: otherwise
-
flagActiveDeletionUnsafeForCurrentState
public void flagActiveDeletionUnsafeForCurrentState()
Description copied from interface:ActiveDeletedBlobCollectorMBean
Flag 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:
flagActiveDeletionUnsafeForCurrentState
in interfaceActiveDeletedBlobCollectorMBean
-
flagActiveDeletionSafe
public void flagActiveDeletionSafe()
Description copied from interface:ActiveDeletedBlobCollectorMBean
Resets 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:
flagActiveDeletionSafe
in interfaceActiveDeletedBlobCollectorMBean
-
-