Class NullStorage

  • All Implemented Interfaces:
    hudson.model.Describable<Storage>, hudson.model.ModelObject, hudson.search.SearchableModelObject, hudson.search.SearchItem

    public class NullStorage
    extends Storage
    • Constructor Detail

      • NullStorage

        @DataBoundConstructor
        public NullStorage()
    • Method Detail

      • backupStart

        public void backupStart​(String tempDirectoryPath,
                                String archiveFilenameBase)
                         throws org.jenkinsci.plugins.periodicbackup.PeriodicBackupException
        Description copied from class: Storage
        Initializes Storage for the archiving process
        Specified by:
        backupStart in class Storage
        Parameters:
        tempDirectoryPath - String with a path to the temporary directory, where the archive(s) will be created
        archiveFilenameBase - first part of the archive filename
        Throws:
        org.jenkinsci.plugins.periodicbackup.PeriodicBackupException - if something goes wrong
      • backupAddFile

        public void backupAddFile​(File fileToStore)
                           throws org.jenkinsci.plugins.periodicbackup.PeriodicBackupException
        Description copied from class: Storage
        Adds a file to an archive.
        Specified by:
        backupAddFile in class Storage
        Parameters:
        fileToStore - The file that will be added to the archive
        Throws:
        org.jenkinsci.plugins.periodicbackup.PeriodicBackupException - if something goes wrong
      • backupStop

        public Iterable<File> backupStop()
                                  throws org.jenkinsci.plugins.periodicbackup.PeriodicBackupException
        Description copied from class: Storage
        Finalizes the archiving process
        Specified by:
        backupStop in class Storage
        Returns:
        Archive files
        Throws:
        org.jenkinsci.plugins.periodicbackup.PeriodicBackupException - if something goes wrong
      • unarchiveFiles

        public void unarchiveFiles​(Iterable<File> archives,
                                   File finalResultDir)
        Description copied from class: Storage
        Extracts backup files from given archives into the temporary directory after successful extraction the archives will be deleted
        Specified by:
        unarchiveFiles in class Storage
        Parameters:
        archives - backup archives
        finalResultDir - Directory where the files will be extracted to, it should be empty at this point
      • getDisplayName

        public String getDisplayName()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object