Interface RestorePolicy

  • All Known Implementing Classes:
    OverwriteRestorePolicy, ReplaceRestorePolicy

    public interface RestorePolicy
    RestorePolicy implementation will determine how FileManager should handle files during restore execution
    • Method Detail

      • restore

        void restore​(File finalResultDir)
              throws IOException,
                     org.jenkinsci.plugins.periodicbackup.PeriodicBackupException
        Restores content of the tempDir
        Parameters:
        finalResultDir - temporary directory, at this point only unpacked content of the backup archives should be inside
        Throws:
        IOException - If an IO problem occurs
        org.jenkinsci.plugins.periodicbackup.PeriodicBackupException - If other problem occurs