Class FileStoreBackupRestoreImpl

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      • 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

      • getBackupStatus

        @NotNull
        public @NotNull javax.management.openmbean.CompositeData getBackupStatus()
        Description copied from interface: FileStoreBackupRestoreMBean
        Backup status
        Specified by:
        getBackupStatus in interface FileStoreBackupRestoreMBean
        Returns:
        the status of the ongoing operation or if none the terminal status of the last operation or Status not available if none.
      • getRestoreStatus

        @NotNull
        public @NotNull javax.management.openmbean.CompositeData getRestoreStatus()
        Description copied from interface: FileStoreBackupRestoreMBean
        Restore status
        Specified by:
        getRestoreStatus in interface FileStoreBackupRestoreMBean
        Returns:
        the status of the ongoing operation or if none the terminal status of the last operation or Status not available if none.
      • checkpoint

        @NotNull
        public @NotNull java.lang.String checkpoint​(long lifetime)
        Description copied from interface: FileStoreBackupRestoreMBean
        Creates 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:
        checkpoint in interface FileStoreBackupRestoreMBean
        Parameters:
        lifetime - time (in milliseconds, > 0) that the checkpoint should remain available
        Returns:
        string reference of this checkpoint