Class ReplaceRestorePolicy

  • All Implemented Interfaces:
    RestorePolicy

    public class ReplaceRestorePolicy
    extends Object
    implements RestorePolicy
    This RestorePolicy tries to delete all the files inside the Jenkins home directory. Non writable files will be kept as they are.
    • Constructor Detail

      • ReplaceRestorePolicy

        public ReplaceRestorePolicy()
    • Method Detail

      • restore

        public void restore​(File tempDir)
                     throws IOException,
                            org.jenkinsci.plugins.periodicbackup.PeriodicBackupException
        Description copied from interface: RestorePolicy
        Restores content of the tempDir
        Specified by:
        restore in interface RestorePolicy
        Parameters:
        tempDir - 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object