Class 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 of FileStoreBackupRestoreMBean based on a file.
    • Field Summary

      • Fields inherited from interface org.apache.jackrabbit.oak.api.jmx.FileStoreBackupRestoreMBean

        TYPE
    • 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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 to
        file - file to back up to or restore from
        executor - executor for running the back up or restore operation
    • Method Detail

      • startBackup

        @NotNull
        public @NotNull javax.management.openmbean.CompositeData startBackup()
        Specified by:
        startBackup in interface org.apache.jackrabbit.oak.api.jmx.FileStoreBackupRestoreMBean
      • getBackupStatus

        @NotNull
        public @NotNull javax.management.openmbean.CompositeData getBackupStatus()
        Specified by:
        getBackupStatus in interface org.apache.jackrabbit.oak.api.jmx.FileStoreBackupRestoreMBean
      • startRestore

        @NotNull
        public @NotNull javax.management.openmbean.CompositeData startRestore()
        Specified by:
        startRestore in interface org.apache.jackrabbit.oak.api.jmx.FileStoreBackupRestoreMBean
      • getRestoreStatus

        @NotNull
        public @NotNull javax.management.openmbean.CompositeData getRestoreStatus()
        Specified by:
        getRestoreStatus in interface org.apache.jackrabbit.oak.api.jmx.FileStoreBackupRestoreMBean
      • checkpoint

        @NotNull
        public @NotNull java.lang.String checkpoint​(long lifetime)
        Specified by:
        checkpoint in interface org.apache.jackrabbit.oak.api.jmx.FileStoreBackupRestoreMBean