Class NullStorage
- java.lang.Object
-
- hudson.model.AbstractModelObject
-
- org.jenkinsci.plugins.periodicbackup.Storage
-
- org.jenkinsci.plugins.periodicbackup.NullStorage
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NullStorage.DescriptorImpl
-
Constructor Summary
Constructors Constructor Description NullStorage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
backupAddFile(File fileToStore)
Adds a file to an archive.void
backupStart(String tempDirectoryPath, String archiveFilenameBase)
Initializes Storage for the archiving processIterable<File>
backupStop()
Finalizes the archiving processboolean
equals(Object o)
String
getDisplayName()
int
hashCode()
void
unarchiveFiles(Iterable<File> archives, File finalResultDir)
Extracts backup files from given archives into the temporary directory after successful extraction the archives will be deleted-
Methods inherited from class org.jenkinsci.plugins.periodicbackup.Storage
all, getDescriptor, getSearchUrl
-
-
-
-
Method Detail
-
backupStart
public void backupStart(String tempDirectoryPath, String archiveFilenameBase) throws org.jenkinsci.plugins.periodicbackup.PeriodicBackupException
Description copied from class:Storage
Initializes Storage for the archiving process- Specified by:
backupStart
in classStorage
- Parameters:
tempDirectoryPath
- String with a path to the temporary directory, where the archive(s) will be createdarchiveFilenameBase
- first part of the archive filename- Throws:
org.jenkinsci.plugins.periodicbackup.PeriodicBackupException
- if something goes wrong
-
backupAddFile
public void backupAddFile(File fileToStore) throws org.jenkinsci.plugins.periodicbackup.PeriodicBackupException
Description copied from class:Storage
Adds a file to an archive.- Specified by:
backupAddFile
in classStorage
- Parameters:
fileToStore
- The file that will be added to the archive- Throws:
org.jenkinsci.plugins.periodicbackup.PeriodicBackupException
- if something goes wrong
-
backupStop
public Iterable<File> backupStop() throws org.jenkinsci.plugins.periodicbackup.PeriodicBackupException
Description copied from class:Storage
Finalizes the archiving process- Specified by:
backupStop
in classStorage
- Returns:
- Archive files
- Throws:
org.jenkinsci.plugins.periodicbackup.PeriodicBackupException
- if something goes wrong
-
unarchiveFiles
public void unarchiveFiles(Iterable<File> archives, File finalResultDir)
Description copied from class:Storage
Extracts backup files from given archives into the temporary directory after successful extraction the archives will be deleted- Specified by:
unarchiveFiles
in classStorage
- Parameters:
archives
- backup archivesfinalResultDir
- Directory where the files will be extracted to, it should be empty at this point
-
getDisplayName
public String getDisplayName()
-
-