Class RevisionGC
java.lang.Object
org.apache.jackrabbit.oak.spi.state.RevisionGC
- All Implemented Interfaces:
RevisionGCMBean
Default implementation of
RevisionGCMBean based on a Runnable.-
Field Summary
FieldsFields inherited from interface org.apache.jackrabbit.oak.spi.state.RevisionGCMBean
TYPE -
Constructor Summary
ConstructorsConstructorDescriptionRevisionGC(@NotNull Runnable runGC, @NotNull Runnable cancelGC, @NotNull Executor executor) RevisionGC(@NotNull Runnable runGC, @NotNull Runnable cancelGC, @NotNull Supplier<String> statusMessage, @NotNull Executor executor) -
Method Summary
Modifier and TypeMethodDescription@NotNull CompositeDataCancel a running revision garbage collection operation.@NotNull CompositeDataRevision garbage collection status@NotNull CompositeDataInitiate a revision garbage collection operation
-
Field Details
-
OP_NAME
- See Also:
-
-
Constructor Details
-
RevisionGC
public RevisionGC(@NotNull @NotNull Runnable runGC, @NotNull @NotNull Runnable cancelGC, @NotNull @NotNull Supplier<String> statusMessage, @NotNull @NotNull Executor executor) - Parameters:
runGC- Revision garbage collectorcancelGC- Executor for cancelling the garbage collection taskstatusMessage- an informal status message describing the status of the background operation at the time of invocation.executor- Executor for initiating the garbage collection task
-
RevisionGC
public RevisionGC(@NotNull @NotNull Runnable runGC, @NotNull @NotNull Runnable cancelGC, @NotNull @NotNull Executor executor) - Parameters:
runGC- Revision garbage collectorcancelGC- Executor for cancelling the garbage collection taskexecutor- Executor for initiating the garbage collection task
-
-
Method Details
-
startRevisionGC
Description copied from interface:RevisionGCMBeanInitiate a revision garbage collection operation- Specified by:
startRevisionGCin interfaceRevisionGCMBean- Returns:
- the status of the operation right after it was initiated
-
cancelRevisionGC
Description copied from interface:RevisionGCMBeanCancel a running revision garbage collection operation. Does nothing if revision garbage collection is not running.- Specified by:
cancelRevisionGCin interfaceRevisionGCMBean- Returns:
- the status of the operation right after it was initiated
-
getRevisionGCStatus
Description copied from interface:RevisionGCMBeanRevision garbage collection status- Specified by:
getRevisionGCStatusin interfaceRevisionGCMBean- Returns:
- the status of the ongoing operation or if none the terminal status of the last operation or Status not available if none.
-