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 boolean
equals(Object o)
int
hashCode()
void
restore(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:RestorePolicy
Restores content of the tempDir- Specified by:
restore
in 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
-
-