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.CompositeDatacancelActiveCollection()Cancel a running collection of deleted lucene index blobs operation.voidflagActiveDeletionSafe()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.voidflagActiveDeletionUnsafeForCurrentState()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.CompositeDatagetActiveCollectionStatus()Status of collection of deleted lucene index blobs.booleanisActiveDeletionUnsafe()booleanisDisabled()Whether active deletion is disabled.@NotNull javax.management.openmbean.CompositeDatastartActiveCollection()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-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 Detail
- 
isDisabled
public boolean isDisabled()
Description copied from interface:ActiveDeletedBlobCollectorMBeanWhether active deletion is disabled.- Specified by:
 isDisabledin interfaceActiveDeletedBlobCollectorMBean- Returns:
 - true if disabled
 
 
- 
startActiveCollection
@NotNull public @NotNull javax.management.openmbean.CompositeData 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
@NotNull public @NotNull javax.management.openmbean.CompositeData 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
@NotNull public @NotNull javax.management.openmbean.CompositeData 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
 
 - 
 
 -