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:
javax.management.DynamicMBean,javax.management.MBeanRegistration,BlobGCMBean
public class BlobGC extends AnnotatedStandardMBean implements BlobGCMBean
Default implementation ofBlobGCMBeanbased on aBlobGarbageCollector.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCONSISTENCY_OP_NAMEstatic java.lang.StringOP_NAME-
Fields inherited from interface org.apache.jackrabbit.oak.plugins.blob.BlobGCMBean
TYPE
-
-
Constructor Summary
Constructors Constructor Description BlobGC(@NotNull BlobGarbageCollector blobGarbageCollector, @NotNull java.util.concurrent.Executor executor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.management.openmbean.CompositeDatacheckConsistency()Data Store consistency check@NotNull javax.management.openmbean.CompositeDatagetBlobGCStatus()Data store garbage collection status@NotNull javax.management.openmbean.CompositeDatagetConsistencyCheckStatus()Consistency check statusjavax.management.openmbean.TabularDatagetGlobalMarkStats()Show details of the data Store garbage collection process.javax.management.openmbean.TabularDatagetOperationStats()Show details of the data Store garbage collection invocations.@NotNull javax.management.openmbean.CompositeDatastartBlobGC(boolean markOnly)Initiate a data store garbage collection operation.javax.management.openmbean.CompositeDatastartBlobGC(boolean markOnly, boolean forceBlobIdRetrieve)Initiate a data store garbage collection operation.
-
-
-
Field Detail
-
OP_NAME
public static final java.lang.String OP_NAME
- See Also:
- Constant Field Values
-
CONSISTENCY_OP_NAME
public static final java.lang.String CONSISTENCY_OP_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BlobGC
public BlobGC(@NotNull @NotNull BlobGarbageCollector blobGarbageCollector, @NotNull @NotNull java.util.concurrent.Executor executor)- Parameters:
blobGarbageCollector- Blob garbage collectorexecutor- executor for running the garbage collection task
-
-
Method Detail
-
startBlobGC
@NotNull public @NotNull javax.management.openmbean.CompositeData startBlobGC(boolean markOnly)
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
public javax.management.openmbean.CompositeData startBlobGC(boolean markOnly, boolean forceBlobIdRetrieve)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
@NotNull public @NotNull javax.management.openmbean.CompositeData 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
public javax.management.openmbean.CompositeData checkConsistency()
Description copied from interface:BlobGCMBeanData Store consistency check- Specified by:
checkConsistencyin interfaceBlobGCMBean- Returns:
- the missing blobs
-
getConsistencyCheckStatus
@NotNull public @NotNull javax.management.openmbean.CompositeData 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
public javax.management.openmbean.TabularData 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
public javax.management.openmbean.TabularData 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
-
-