public abstract class Location extends hudson.model.AbstractModelObject implements hudson.model.Describable<Location>
| Modifier and Type | Field and Description |
|---|---|
boolean |
enabled |
| Constructor and Description |
|---|
Location(boolean enabled) |
| Modifier and Type | Method and Description |
|---|---|
static hudson.DescriptorExtensionList<Location,LocationDescriptor> |
all()
This will allow to retrieve the list of plugins at runtime
|
abstract void |
deleteBackupFiles(BackupObject backupObject)
This method deletes all files related to given BackupObject
|
abstract Iterable<BackupObject> |
getAvailableBackups()
This method returns Iterable of BackupObject(s) in this location
|
LocationDescriptor |
getDescriptor() |
String |
getSearchUrl() |
abstract Iterable<File> |
retrieveBackupFromLocation(BackupObject backup,
File tempDir)
Retrieves backup archive files from this location
|
abstract void |
storeBackupInLocation(Iterable<File> archives,
File backupObjectFile)
This method puts archived backup file(s) in location
|
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendErrorpublic abstract Iterable<BackupObject> getAvailableBackups()
public abstract void storeBackupInLocation(Iterable<File> archives, File backupObjectFile) throws IOException
archives - archive file(s)backupObjectFile - File with serialized backupObjectIOException - IO errorpublic abstract Iterable<File> retrieveBackupFromLocation(BackupObject backup, File tempDir) throws IOException, org.jenkinsci.plugins.periodicbackup.PeriodicBackupException
backup - BackupObject related to the backuptempDir - temporary directory to store archived backup file(s)IOException - if anything goes wrong with IOPeriodicBackupException - if anything else goes wrongpublic abstract void deleteBackupFiles(BackupObject backupObject)
backupObject - the backupObject of the backup we want to deletepublic static hudson.DescriptorExtensionList<Location,LocationDescriptor> all()
public LocationDescriptor getDescriptor()
getDescriptor in interface hudson.model.Describable<Location>public String getSearchUrl()
getSearchUrl in interface hudson.search.SearchItemCopyright © 2016–2022. All rights reserved.