public abstract class Storage extends hudson.model.AbstractModelObject implements hudson.model.Describable<Storage>
| Constructor and Description |
|---|
Storage() |
| Modifier and Type | Method and Description |
|---|---|
static hudson.DescriptorExtensionList<Storage,StorageDescriptor> |
all()
This will allow to retrieve the list of plugins at runtime
|
abstract void |
backupAddFile(File fileToStore)
Adds a file to an archive.
|
abstract void |
backupStart(String tempDirectoryPath,
String archiveFilenameBase)
Initializes Storage for the archiving process
|
abstract Iterable<File> |
backupStop()
Finalizes the archiving process
|
StorageDescriptor |
getDescriptor() |
String |
getSearchUrl() |
abstract 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
|
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendErrorpublic abstract void backupStart(String tempDirectoryPath, String archiveFilenameBase) throws org.jenkinsci.plugins.periodicbackup.PeriodicBackupException
tempDirectoryPath - String with a path to the temporary directory, where the archive(s) will be createdarchiveFilenameBase - first part of the archive filenamePeriodicBackupException - if something goes wrongpublic abstract void backupAddFile(File fileToStore) throws org.jenkinsci.plugins.periodicbackup.PeriodicBackupException
fileToStore - The file that will be added to the archivePeriodicBackupException - if something goes wrongpublic abstract Iterable<File> backupStop() throws org.jenkinsci.plugins.periodicbackup.PeriodicBackupException
PeriodicBackupException - if something goes wrongpublic abstract void unarchiveFiles(Iterable<File> archives, File finalResultDir)
archives - backup archivesfinalResultDir - Directory where the files will be extracted to, it should be empty at this pointpublic StorageDescriptor getDescriptor()
getDescriptor in interface hudson.model.Describable<Storage>public String getSearchUrl()
getSearchUrl in interface hudson.search.SearchItempublic static hudson.DescriptorExtensionList<Storage,StorageDescriptor> all()
Copyright © 2016–2022. All rights reserved.