Class RestoreProcessor

  • All Implemented Interfaces:
    Runnable

    public final class RestoreProcessor
    extends Object
    Performs restoring data from backup file.
    • Method Detail

      • readBackupZipVersion

        public static int readBackupZipVersion​(ZipReader zip)
      • readBackupDatabaseVersion

        public static int readBackupDatabaseVersion​(ZipReader zip)
      • getProgressStatus

        @NotNull
        public ProgressStatus getProgressStatus()
      • getProcessId

        public final int getProcessId()
        Returns the maintenance process identifier.

        This identifier is an internal identified of the maintenance process, it doesn't relate to operating system process identifiers or something else.

        Returns:
        the maintenance process identifier.
      • run

        public final void run()
        Specified by:
        run in interface Runnable
      • isFinished

        public boolean isFinished()
        Determines that the process already has finished or has been stopped or never will run. In other words, the associated thread (if it was) already has completed its work.
        Returns:
        is stopped.
      • getExceptions

        @NotNull
        public final Exception[] getExceptions()
        Returns exceptions that occurred during process performing.
        Returns:
        occurred exceptions in time order.
      • hasExceptions

        public final boolean hasExceptions()
        Determines whether errors occurred during process performing.
        Returns:
        true if there are exceptions.
      • cancel

        public final void cancel()