| Modifier and Type | Class and Description |
|---|---|
static class |
LocalDirectory.DescriptorImpl |
| Constructor and Description |
|---|
LocalDirectory(File path,
boolean enabled) |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteBackupFiles(BackupObject backupObject)
This method deletes all files related to given BackupObject
|
boolean |
equals(Object o) |
Iterable<BackupObject> |
getAvailableBackups()
This method returns Iterable of BackupObject(s) in this location
|
String |
getDisplayName() |
File |
getPath() |
int |
hashCode() |
Iterable<File> |
retrieveBackupFromLocation(BackupObject backup,
File tempDir)
Retrieves backup archive files from this location
|
void |
setPath(File path) |
void |
storeBackupInLocation(Iterable<File> archives,
File backupObjectFile)
This method puts archived backup file(s) in location
|
all, getDescriptor, getSearchUrl@DataBoundConstructor public LocalDirectory(File path, boolean enabled)
public Iterable<BackupObject> getAvailableBackups()
LocationgetAvailableBackups in class Locationpublic void storeBackupInLocation(Iterable<File> archives, File backupObjectFile) throws IOException
LocationstoreBackupInLocation in class Locationarchives - archive file(s)backupObjectFile - File with serialized backupObjectIOException - IO errorpublic Iterable<File> retrieveBackupFromLocation(BackupObject backup, File tempDir) throws IOException, org.jenkinsci.plugins.periodicbackup.PeriodicBackupException
LocationretrieveBackupFromLocation in class Locationbackup - 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 void deleteBackupFiles(BackupObject backupObject)
LocationdeleteBackupFiles in class LocationbackupObject - the backupObject of the backup we want to deletepublic String getDisplayName()
public File getPath()
public void setPath(File path)
Copyright © 2016–2022. All rights reserved.