|
|||||||||
| 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.Storage
public abstract class Storage
Storage is responsible for operating on backup archives
| Constructor Summary | |
|---|---|
Storage()
|
|
| Method Summary | |
|---|---|
static hudson.DescriptorExtensionList<Storage,StorageDescriptor> |
all()
This will allow to retrieve the list of plugins at runtime |
abstract void |
backupAddFile(java.io.File fileToStore)
Adds a file to an archive. |
abstract void |
backupStart(java.lang.String tempDirectoryPath,
java.lang.String archiveFilenameBase)
Initializes Storage for the archiving process |
abstract java.lang.Iterable<java.io.File> |
backupStop()
Finalizes the archiving process |
StorageDescriptor |
getDescriptor()
|
java.lang.String |
getSearchUrl()
|
abstract void |
unarchiveFiles(java.lang.Iterable<java.io.File> archives,
java.io.File finalResultDir)
Extracts backup files from given archives into the temporary directory after successful extraction the archives will be deleted |
| 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 |
| Constructor Detail |
|---|
public Storage()
| Method Detail |
|---|
public abstract void backupStart(java.lang.String tempDirectoryPath,
java.lang.String archiveFilenameBase)
throws org.jenkinsci.plugins.periodicbackup.PeriodicBackupException
tempDirectoryPath - String with a path to the temporary directory, where the archive(s) will be createdarchiveFilenameBase - first part of the archive filename
PeriodicBackupException - if something goes wrong
public abstract void backupAddFile(java.io.File fileToStore)
throws org.jenkinsci.plugins.periodicbackup.PeriodicBackupException
fileToStore - The file that will be added to the archive
PeriodicBackupException - if something goes wrong
public abstract java.lang.Iterable<java.io.File> backupStop()
throws org.jenkinsci.plugins.periodicbackup.PeriodicBackupException
PeriodicBackupException - if something goes wrong
public abstract void unarchiveFiles(java.lang.Iterable<java.io.File> archives,
java.io.File finalResultDir)
archives - backup archivesfinalResultDir - Directory where the files will be extracted to, it should be empty at this pointpublic StorageDescriptor getDescriptor()
getDescriptor in interface hudson.model.Describable<Storage>public java.lang.String getSearchUrl()
getSearchUrl in interface hudson.search.SearchItempublic static hudson.DescriptorExtensionList<Storage,StorageDescriptor> all()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||