public class FileStoreBackupRestoreImpl extends java.lang.Object implements FileStoreBackupRestoreMBean
FileStoreBackupRestoreMBean
based on a
file.TYPE
Constructor and Description |
---|
FileStoreBackupRestoreImpl(@NotNull SegmentNodeStore store,
@NotNull Revisions revisions,
@NotNull SegmentReader reader,
@NotNull java.io.File file,
@NotNull java.util.concurrent.Executor executor) |
Modifier and Type | Method and Description |
---|---|
@NotNull java.lang.String |
checkpoint(long lifetime)
Creates a new checkpoint of the latest root of the tree.
|
@NotNull javax.management.openmbean.CompositeData |
getBackupStatus()
Backup status
|
@NotNull javax.management.openmbean.CompositeData |
getRestoreStatus()
Restore status
|
@NotNull javax.management.openmbean.CompositeData |
startBackup()
Initiate a backup operation.
|
@NotNull javax.management.openmbean.CompositeData |
startRestore()
Initiate a restore operation.
|
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)
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@NotNull public @NotNull javax.management.openmbean.CompositeData startBackup()
FileStoreBackupRestoreMBean
startBackup
in interface FileStoreBackupRestoreMBean
@NotNull public @NotNull javax.management.openmbean.CompositeData getBackupStatus()
FileStoreBackupRestoreMBean
getBackupStatus
in interface FileStoreBackupRestoreMBean
@NotNull public @NotNull javax.management.openmbean.CompositeData startRestore()
FileStoreBackupRestoreMBean
startRestore
in interface FileStoreBackupRestoreMBean
@NotNull public @NotNull javax.management.openmbean.CompositeData getRestoreStatus()
FileStoreBackupRestoreMBean
getRestoreStatus
in interface FileStoreBackupRestoreMBean
@NotNull public @NotNull java.lang.String checkpoint(long lifetime)
FileStoreBackupRestoreMBean
checkpoint
in interface FileStoreBackupRestoreMBean
lifetime
- time (in milliseconds, > 0) that the checkpoint
should remain availableCopyright © 2012–2022 The Apache Software Foundation. All rights reserved.