public class FileStoreBackupRestore extends Object implements org.apache.jackrabbit.oak.api.jmx.FileStoreBackupRestoreMBean
FileStoreBackupRestoreMBean
based on a file.Modifier and Type | Field and Description |
---|---|
static String |
BACKUP_OP_NAME |
static String |
RESTORE_OP_NAME |
Constructor and Description |
---|
FileStoreBackupRestore(SegmentNodeStore store,
Revisions revisions,
SegmentReader reader,
File file,
Executor executor) |
Modifier and Type | Method and Description |
---|---|
String |
checkpoint(long lifetime) |
CompositeData |
getBackupStatus() |
CompositeData |
getRestoreStatus() |
CompositeData |
startBackup() |
CompositeData |
startRestore() |
public static final String BACKUP_OP_NAME
public static final String RESTORE_OP_NAME
public FileStoreBackupRestore(@Nonnull SegmentNodeStore store, @Nonnull Revisions revisions, @Nonnull SegmentReader reader, @Nonnull File file, @Nonnull 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 operationpublic CompositeData startBackup()
startBackup
in interface org.apache.jackrabbit.oak.api.jmx.FileStoreBackupRestoreMBean
public CompositeData getBackupStatus()
getBackupStatus
in interface org.apache.jackrabbit.oak.api.jmx.FileStoreBackupRestoreMBean
public CompositeData startRestore()
startRestore
in interface org.apache.jackrabbit.oak.api.jmx.FileStoreBackupRestoreMBean
public CompositeData getRestoreStatus()
getRestoreStatus
in interface org.apache.jackrabbit.oak.api.jmx.FileStoreBackupRestoreMBean
public String checkpoint(long lifetime)
checkpoint
in interface org.apache.jackrabbit.oak.api.jmx.FileStoreBackupRestoreMBean
Copyright © 2012-2016 The Apache Software Foundation. All Rights Reserved.