org.jenkinsci.plugins.periodicbackup
Class ReplaceRestorePolicy

java.lang.Object
  extended by org.jenkinsci.plugins.periodicbackup.ReplaceRestorePolicy
All Implemented Interfaces:
RestorePolicy

public class ReplaceRestorePolicy
extends java.lang.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
ReplaceRestorePolicy()
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
 void restore(java.io.File tempDir)
          Restores content of the tempDir
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReplaceRestorePolicy

public ReplaceRestorePolicy()
Method Detail

restore

public void restore(java.io.File tempDir)
             throws java.io.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:
java.io.IOException - If an IO problem occurs
PeriodicBackupException - If other problem occurs

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 2004-2013. All Rights Reserved.