| Modifier and Type | Class and Description |
|---|---|
static class |
ZipStorage.DescriptorImpl |
| Constructor and Description |
|---|
ZipStorage(boolean multiVolume,
long volumeSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
backupAddFile(File fileToStore)
Adds a file to an archive.
|
void |
backupStart(String tempDirectoryPath,
String archiveFilenameBase)
Initializes Storage for the archiving process
|
Iterable<File> |
backupStop()
Finalizes the archiving process
|
boolean |
equals(Object o) |
org.codehaus.plexus.archiver.zip.ZipArchiver |
getArchiver() |
int |
getArchivesNumber() |
int |
getCurrentArchiveFilesCount() |
long |
getCurrentArchiveTotalFilesSize() |
String |
getDisplayName() |
long |
getVolumeSize() |
int |
hashCode() |
boolean |
isMultiVolume() |
void |
setMultiVolume(boolean multiVolume) |
void |
setVolumeSize(long volumeSize) |
void |
unarchiveFiles(Iterable<File> archives,
File tempDir)
Extracts backup files from given archives into the temporary directory
after successful extraction the archives will be deleted
|
all, getDescriptor, getSearchUrl@DataBoundConstructor
public ZipStorage(boolean multiVolume,
long volumeSize)
public long getCurrentArchiveTotalFilesSize()
public org.codehaus.plexus.archiver.zip.ZipArchiver getArchiver()
public int getCurrentArchiveFilesCount()
public int getArchivesNumber()
public long getVolumeSize()
public void setVolumeSize(long volumeSize)
public boolean isMultiVolume()
public void setMultiVolume(boolean multiVolume)
public void backupStart(String tempDirectoryPath, String archiveFilenameBase)
StoragebackupStart in class StoragetempDirectoryPath - String with a path to the temporary directory, where the archive(s) will be createdarchiveFilenameBase - first part of the archive filenamepublic void backupAddFile(File fileToStore) throws org.jenkinsci.plugins.periodicbackup.PeriodicBackupException
StoragebackupAddFile in class StoragefileToStore - The file that will be added to the archivePeriodicBackupException - if something goes wrongpublic Iterable<File> backupStop() throws org.jenkinsci.plugins.periodicbackup.PeriodicBackupException
StoragebackupStop in class StoragePeriodicBackupException - if something goes wrongpublic void unarchiveFiles(Iterable<File> archives, File tempDir)
StorageunarchiveFiles in class Storagearchives - backup archivestempDir - Directory where the files will be extracted to, it should be empty at this pointpublic String getDisplayName()
Copyright © 2016–2022. All rights reserved.