Class ReplaceRestorePolicy
- java.lang.Object
-
- org.jenkinsci.plugins.periodicbackup.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 Summary
Constructors Constructor Description ReplaceRestorePolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)inthashCode()voidrestore(File tempDir)Restores content of the tempDir
-
-
-
Method Detail
-
restore
public void restore(File tempDir) throws IOException, org.jenkinsci.plugins.periodicbackup.PeriodicBackupException
Description copied from interface:RestorePolicyRestores content of the tempDir- Specified by:
restorein interfaceRestorePolicy- Parameters:
tempDir- temporary directory, at this point only unpacked content of the backup archives should be inside- Throws:
IOException- If an IO problem occursorg.jenkinsci.plugins.periodicbackup.PeriodicBackupException- If other problem occurs
-
-