Class S3
- java.lang.Object
-
- hudson.model.AbstractModelObject
-
- org.jenkinsci.plugins.periodicbackup.Location
-
- org.jenkinsci.plugins.periodicbackup.S3
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classS3.DescriptorImpl
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteBackupFiles(BackupObject backupObject)This method deletes all files related to given BackupObjectbooleanequals(Object o)Iterable<BackupObject>getAvailableBackups()This method returns Iterable of BackupObject(s) in this locationStringgetBucket()StringgetCredentialsId()StringgetDisplayName()StringgetPrefix()StringgetRegion()StringgetTmpDir()inthashCode()Iterable<File>retrieveBackupFromLocation(BackupObject backup, File tempDir)Retrieves backup archive files from this locationvoidsetBucket(String bucket)voidsetCredentialsId(String credentialsId)voidsetPrefix(String prefix)voidsetRegion(String region)voidsetTmpDir(String tmpDir)voidstoreBackupInLocation(Iterable<File> archives, File backupObjectFile)This method puts archived backup file(s) in location-
Methods inherited from class org.jenkinsci.plugins.periodicbackup.Location
all, getDescriptor, getSearchUrl
-
-
-
-
Method Detail
-
getAvailableBackups
public Iterable<BackupObject> getAvailableBackups()
Description copied from class:LocationThis method returns Iterable of BackupObject(s) in this location- Specified by:
getAvailableBackupsin classLocation- Returns:
- BackupObject(s) in location
-
storeBackupInLocation
public void storeBackupInLocation(Iterable<File> archives, File backupObjectFile) throws IOException
Description copied from class:LocationThis method puts archived backup file(s) in location- Specified by:
storeBackupInLocationin classLocation- Parameters:
archives- archive file(s)backupObjectFile- File with serialized backupObject- Throws:
IOException- IO error
-
retrieveBackupFromLocation
public Iterable<File> retrieveBackupFromLocation(BackupObject backup, File tempDir) throws IOException, org.jenkinsci.plugins.periodicbackup.PeriodicBackupException
Description copied from class:LocationRetrieves backup archive files from this location- Specified by:
retrieveBackupFromLocationin classLocation- Parameters:
backup- BackupObject related to the backuptempDir- temporary directory to store archived backup file(s)- Returns:
- Iterable of backup archive(s) in temporary location
- Throws:
IOException- if anything goes wrong with IOorg.jenkinsci.plugins.periodicbackup.PeriodicBackupException- if anything else goes wrong
-
deleteBackupFiles
public void deleteBackupFiles(BackupObject backupObject)
Description copied from class:LocationThis method deletes all files related to given BackupObject- Specified by:
deleteBackupFilesin classLocation- Parameters:
backupObject- the backupObject of the backup we want to delete
-
getDisplayName
public String getDisplayName()
-
getBucket
public String getBucket()
-
setBucket
public void setBucket(String bucket)
-
getTmpDir
public String getTmpDir()
-
setTmpDir
public void setTmpDir(String tmpDir)
-
getPrefix
public String getPrefix()
-
setPrefix
@DataBoundSetter public void setPrefix(String prefix)
-
getRegion
public String getRegion()
-
setRegion
public void setRegion(String region)
-
getCredentialsId
public String getCredentialsId()
-
setCredentialsId
public void setCredentialsId(String credentialsId)
-
-