|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecthudson.model.AbstractModelObject
org.jenkinsci.plugins.periodicbackup.Location
public abstract class Location
Location determines where to store backup files and is responsible for accessing the backup files once stored
| Field Summary | |
|---|---|
boolean |
enabled
|
| Constructor Summary | |
|---|---|
Location(boolean enabled)
|
|
| Method Summary | |
|---|---|
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 java.lang.Iterable<BackupObject> |
getAvailableBackups()
This method returns Iterable of BackupObject(s) in this location |
LocationDescriptor |
getDescriptor()
|
java.lang.String |
getSearchUrl()
|
abstract java.lang.Iterable<java.io.File> |
retrieveBackupFromLocation(BackupObject backup,
java.io.File tempDir)
Retrieves backup archive files from this location |
abstract void |
storeBackupInLocation(java.lang.Iterable<java.io.File> archives,
java.io.File backupObjectFile)
This method puts archived backup file(s) in location |
| Methods inherited from class hudson.model.AbstractModelObject |
|---|
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface hudson.model.ModelObject |
|---|
getDisplayName |
| Field Detail |
|---|
public final boolean enabled
| Constructor Detail |
|---|
public Location(boolean enabled)
| Method Detail |
|---|
public abstract java.lang.Iterable<BackupObject> getAvailableBackups()
public abstract void storeBackupInLocation(java.lang.Iterable<java.io.File> archives,
java.io.File backupObjectFile)
throws java.io.IOException
archives - archive file(s)backupObjectFile - File with serialized backupObject
java.io.IOException - IO error
public abstract java.lang.Iterable<java.io.File> retrieveBackupFromLocation(BackupObject backup,
java.io.File tempDir)
throws java.io.IOException,
org.jenkinsci.plugins.periodicbackup.PeriodicBackupException
backup - BackupObject related to the backuptempDir - temporary directory to store archived backup file(s)
java.io.IOException - if anything goes wrong with IO
PeriodicBackupException - 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 java.lang.String getSearchUrl()
getSearchUrl in interface hudson.search.SearchItem
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||