Class FileStoreBackupRestoreImpl
- java.lang.Object
-
- org.apache.jackrabbit.oak.backup.impl.FileStoreBackupRestoreImpl
-
- All Implemented Interfaces:
org.apache.jackrabbit.oak.api.jmx.FileStoreBackupRestoreMBean
public class FileStoreBackupRestoreImpl extends java.lang.Object implements org.apache.jackrabbit.oak.api.jmx.FileStoreBackupRestoreMBean
Default implementation ofFileStoreBackupRestoreMBean
based on a file.
-
-
Constructor Summary
Constructors Constructor Description FileStoreBackupRestoreImpl(@NotNull SegmentNodeStore store, @NotNull Revisions revisions, @NotNull SegmentReader reader, @NotNull java.io.File file, @NotNull java.util.concurrent.Executor executor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull java.lang.String
checkpoint(long lifetime)
@NotNull javax.management.openmbean.CompositeData
getBackupStatus()
@NotNull javax.management.openmbean.CompositeData
getRestoreStatus()
@NotNull javax.management.openmbean.CompositeData
startBackup()
@NotNull javax.management.openmbean.CompositeData
startRestore()
-
-
-
Constructor Detail
-
FileStoreBackupRestoreImpl
public FileStoreBackupRestoreImpl(@NotNull @NotNull SegmentNodeStore store, @NotNull @NotNull Revisions revisions, @NotNull @NotNull SegmentReader reader, @NotNull @NotNull java.io.File file, @NotNull @NotNull java.util.concurrent.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 Detail
-
startBackup
@NotNull public @NotNull javax.management.openmbean.CompositeData startBackup()
- Specified by:
startBackup
in interfaceorg.apache.jackrabbit.oak.api.jmx.FileStoreBackupRestoreMBean
-
getBackupStatus
@NotNull public @NotNull javax.management.openmbean.CompositeData getBackupStatus()
- Specified by:
getBackupStatus
in interfaceorg.apache.jackrabbit.oak.api.jmx.FileStoreBackupRestoreMBean
-
startRestore
@NotNull public @NotNull javax.management.openmbean.CompositeData startRestore()
- Specified by:
startRestore
in interfaceorg.apache.jackrabbit.oak.api.jmx.FileStoreBackupRestoreMBean
-
getRestoreStatus
@NotNull public @NotNull javax.management.openmbean.CompositeData getRestoreStatus()
- Specified by:
getRestoreStatus
in interfaceorg.apache.jackrabbit.oak.api.jmx.FileStoreBackupRestoreMBean
-
checkpoint
@NotNull public @NotNull java.lang.String checkpoint(long lifetime)
- Specified by:
checkpoint
in interfaceorg.apache.jackrabbit.oak.api.jmx.FileStoreBackupRestoreMBean
-
-