Class TarGzStorage
- java.lang.Object
-
- hudson.model.AbstractModelObject
-
- org.jenkinsci.plugins.periodicbackup.Storage
-
- org.jenkinsci.plugins.periodicbackup.TarGzStorage
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTarGzStorage.DescriptorImpl
-
Constructor Summary
Constructors Constructor Description TarGzStorage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbackupAddFile(File fileToStore)Adds a file to an archive.voidbackupStart(String tempDirectoryPath, String archiveFilenameBase)Initializes Storage for the archiving processIterable<File>backupStop()Finalizes the archiving processbooleanequals(Object o)StringgetDisplayName()inthashCode()voidunarchiveFiles(Iterable<File> archives, File tempDir)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:StorageInitializes Storage for the archiving process- Specified by:
backupStartin 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:StorageAdds a file to an archive.- Specified by:
backupAddFilein 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:StorageFinalizes the archiving process- Specified by:
backupStopin classStorage- Returns:
- Archive files
- Throws:
org.jenkinsci.plugins.periodicbackup.PeriodicBackupException- if something goes wrong
-
unarchiveFiles
public void unarchiveFiles(Iterable<File> archives, File tempDir)
Description copied from class:StorageExtracts backup files from given archives into the temporary directory after successful extraction the archives will be deleted- Specified by:
unarchiveFilesin classStorage- Parameters:
archives- backup archivestempDir- Directory where the files will be extracted to, it should be empty at this point
-
getDisplayName
public String getDisplayName()
-
-