org.jenkinsci.plugins.periodicbackup
Class FileManager
java.lang.Object
hudson.model.AbstractModelObject
org.jenkinsci.plugins.periodicbackup.FileManager
- All Implemented Interfaces:
- hudson.model.Describable<FileManager>, hudson.model.ModelObject, hudson.search.SearchableModelObject, hudson.search.SearchItem
- Direct Known Subclasses:
- ConfigOnly, FullBackup
public abstract class FileManager
- extends hudson.model.AbstractModelObject
- implements hudson.model.Describable<FileManager>
FileManager determines the files selection for backup and restore policies
| 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, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface hudson.model.ModelObject |
getDisplayName |
FileManager
public FileManager()
getFilesToBackup
public abstract java.lang.Iterable<java.io.File> getFilesToBackup()
throws org.jenkinsci.plugins.periodicbackup.PeriodicBackupException
- This method determines files and folders for Storage
- Returns:
- Files to be included in the backup
- Throws:
PeriodicBackupException - if anything bad happens
restoreFiles
public void restoreFiles(java.io.File finalResultDir)
throws java.io.IOException,
org.jenkinsci.plugins.periodicbackup.PeriodicBackupException
- This will restore files to their right place in the HUDSON directory
- Parameters:
finalResultDir - the temporary directory where ONLY the files for restoring are
- Throws:
java.io.IOException - IOException when IO problem
PeriodicBackupException - if anything else bad happens
all
public static hudson.DescriptorExtensionList<FileManager,FileManagerDescriptor> all()
- This will allow to retrieve the list of plugins at runtime
- Returns:
- Collection of FileManager Descriptors
getDescriptor
public FileManagerDescriptor getDescriptor()
- Specified by:
getDescriptor in interface hudson.model.Describable<FileManager>
getSearchUrl
public java.lang.String getSearchUrl()
- Specified by:
getSearchUrl in interface hudson.search.SearchItem
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
Copyright © 2004-2013. All Rights Reserved.