| Modifier and Type | Class and Description |
|---|---|
static class |
S3.DescriptorImpl |
| Constructor and Description |
|---|
S3(String bucket,
boolean enabled,
String tmpDir,
String region,
String credentialsId) |
| 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 |
getBucket() |
String |
getCredentialsId() |
String |
getDisplayName() |
String |
getRegion() |
String |
getTmpDir() |
int |
hashCode() |
Iterable<File> |
retrieveBackupFromLocation(BackupObject backup,
File tempDir)
Retrieves backup archive files from this location
|
void |
setBucket(String bucket) |
void |
setCredentialsId(String credentialsId) |
void |
setRegion(String region) |
void |
setTmpDir(String tmpDir) |
void |
storeBackupInLocation(Iterable<File> archives,
File backupObjectFile)
This method puts archived backup file(s) in location
|
all, getDescriptor, getSearchUrlpublic 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 String getBucket()
public void setBucket(String bucket)
public String getTmpDir()
public void setTmpDir(String tmpDir)
public String getRegion()
public void setRegion(String region)
public String getCredentialsId()
public void setCredentialsId(String credentialsId)
Copyright © 2016–2022. All rights reserved.