Class BlobGC
java.lang.Object
javax.management.StandardMBean
org.apache.jackrabbit.oak.commons.jmx.AnnotatedStandardMBean
org.apache.jackrabbit.oak.plugins.blob.BlobGC
- All Implemented Interfaces:
DynamicMBean,MBeanRegistration,BlobGCMBean
Default implementation of
BlobGCMBean based on a BlobGarbageCollector.-
Field Summary
FieldsFields inherited from interface org.apache.jackrabbit.oak.plugins.blob.BlobGCMBean
TYPE -
Constructor Summary
ConstructorsConstructorDescriptionBlobGC(@NotNull BlobGarbageCollector blobGarbageCollector, @NotNull Executor executor) -
Method Summary
Modifier and TypeMethodDescriptionData Store consistency check@NotNull CompositeDataData store garbage collection status@NotNull CompositeDataConsistency check statusShow details of the data Store garbage collection process.Show details of the data Store garbage collection invocations.@NotNull CompositeDatastartBlobGC(boolean markOnly) Initiate a data store garbage collection operation.startBlobGC(boolean markOnly, boolean forceBlobIdRetrieve) Initiate a data store garbage collection operation.Methods inherited from class javax.management.StandardMBean
getAttribute, getAttributes, getImplementation, getImplementationClass, getMBeanInfo, getMBeanInterface, invoke, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementation
-
Field Details
-
OP_NAME
- See Also:
-
CONSISTENCY_OP_NAME
- See Also:
-
-
Constructor Details
-
BlobGC
public BlobGC(@NotNull @NotNull BlobGarbageCollector blobGarbageCollector, @NotNull @NotNull Executor executor) - Parameters:
blobGarbageCollector- Blob garbage collectorexecutor- executor for running the garbage collection task
-
-
Method Details
-
startBlobGC
Description copied from interface:BlobGCMBeanInitiate a data store garbage collection operation.- Specified by:
startBlobGCin interfaceBlobGCMBean- Parameters:
markOnly- whether to only mark references and not sweep in the mark and sweep operation.- Returns:
- the status of the operation right after it was initiated
-
startBlobGC
Description copied from interface:BlobGCMBeanInitiate a data store garbage collection operation.- Specified by:
startBlobGCin interfaceBlobGCMBean- Parameters:
markOnly- whether to only mark references and not sweep in the mark and sweep operation.forceBlobIdRetrieve- whether to force retrieve blob ids from datastore- Returns:
- the status of the operation right after it was initiated
-
getBlobGCStatus
Description copied from interface:BlobGCMBeanData store garbage collection status- Specified by:
getBlobGCStatusin interfaceBlobGCMBean- Returns:
- the status of the ongoing operation or if none the terminal status of the last operation or Status not available if none.
-
checkConsistency
Description copied from interface:BlobGCMBeanData Store consistency check- Specified by:
checkConsistencyin interfaceBlobGCMBean- Returns:
- the missing blobs
-
getConsistencyCheckStatus
Description copied from interface:BlobGCMBeanConsistency check status- Specified by:
getConsistencyCheckStatusin interfaceBlobGCMBean- Returns:
- the status of the ongoing operation or if none the terminal status of the last operation or Status not available if none.
-
getGlobalMarkStats
Description copied from interface:BlobGCMBeanShow details of the data Store garbage collection process.- Specified by:
getGlobalMarkStatsin interfaceBlobGCMBean- Returns:
- List of available repositories and their status
-
getOperationStats
Description copied from interface:BlobGCMBeanShow details of the data Store garbage collection invocations.- Specified by:
getOperationStatsin interfaceBlobGCMBean- Returns:
- Data about all the previous gc invocations
-