Class FileStoreBackupRestoreImpl
java.lang.Object
org.apache.jackrabbit.oak.backup.impl.FileStoreBackupRestoreImpl
- All Implemented Interfaces:
FileStoreBackupRestoreMBean
Default implementation of
FileStoreBackupRestoreMBean based on a
file.-
Field Summary
Fields inherited from interface org.apache.jackrabbit.oak.api.jmx.FileStoreBackupRestoreMBean
TYPE -
Constructor Summary
ConstructorsConstructorDescriptionFileStoreBackupRestoreImpl(@NotNull SegmentNodeStore store, @NotNull Revisions revisions, @NotNull SegmentReader reader, @NotNull File file, @NotNull Executor executor) -
Method Summary
Modifier and TypeMethodDescription@NotNull Stringcheckpoint(long lifetime) Creates a new checkpoint of the latest root of the tree.@NotNull CompositeDataBackup status@NotNull CompositeDataRestore status@NotNull CompositeDataInitiate a backup operation.@NotNull CompositeDataInitiate a restore operation.
-
Constructor Details
-
FileStoreBackupRestoreImpl
public FileStoreBackupRestoreImpl(@NotNull @NotNull SegmentNodeStore store, @NotNull @NotNull Revisions revisions, @NotNull @NotNull SegmentReader reader, @NotNull @NotNull File file, @NotNull @NotNull Executor executor) - Parameters:
store- store to back up from or restore tofile- file to back up to or restore fromexecutor- executor for running the back up or restore operation
-
-
Method Details
-
startBackup
Description copied from interface:FileStoreBackupRestoreMBeanInitiate a backup operation.- Specified by:
startBackupin interfaceFileStoreBackupRestoreMBean- Returns:
- the status of the operation right after it was initiated
-
getBackupStatus
Description copied from interface:FileStoreBackupRestoreMBeanBackup status- Specified by:
getBackupStatusin interfaceFileStoreBackupRestoreMBean- Returns:
- the status of the ongoing operation or if none the terminal status of the last operation or Status not available if none.
-
startRestore
Description copied from interface:FileStoreBackupRestoreMBeanInitiate a restore operation.- Specified by:
startRestorein interfaceFileStoreBackupRestoreMBean- Returns:
- the status of the operation right after it was initiated
-
getRestoreStatus
Description copied from interface:FileStoreBackupRestoreMBeanRestore status- Specified by:
getRestoreStatusin interfaceFileStoreBackupRestoreMBean- Returns:
- the status of the ongoing operation or if none the terminal status of the last operation or Status not available if none.
-
checkpoint
Description copied from interface:FileStoreBackupRestoreMBeanCreates a new checkpoint of the latest root of the tree. The checkpoint remains valid for at least as long as requested and allows that state of the repository to be retrieved using the returned opaque string reference.- Specified by:
checkpointin interfaceFileStoreBackupRestoreMBean- Parameters:
lifetime- time (in milliseconds, > 0) that the checkpoint should remain available- Returns:
- string reference of this checkpoint
-