org.jenkinsci.plugins.periodicbackup
Class NullStorage

java.lang.Object
  extended by hudson.model.AbstractModelObject
      extended by org.jenkinsci.plugins.periodicbackup.Storage
          extended by org.jenkinsci.plugins.periodicbackup.NullStorage
All Implemented Interfaces:
hudson.model.Describable<Storage>, hudson.model.ModelObject, hudson.search.SearchableModelObject, hudson.search.SearchItem

public class NullStorage
extends Storage


Nested Class Summary
static class NullStorage.DescriptorImpl
           
 
Constructor Summary
NullStorage()
           
 
Method Summary
 void backupAddFile(java.io.File fileToStore)
          Adds a file to an archive.
 void backupStart(java.lang.String tempDirectoryPath, java.lang.String archiveFilenameBase)
          Initializes Storage for the archiving process
 java.lang.Iterable<java.io.File> backupStop()
          Finalizes the archiving process
 boolean equals(java.lang.Object o)
           
 java.lang.String getDisplayName()
           
 int hashCode()
           
 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 org.jenkinsci.plugins.periodicbackup.Storage
all, getDescriptor, getSearchUrl
 
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
 

Constructor Detail

NullStorage

@DataBoundConstructor
public NullStorage()
Method Detail

backupStart

public void backupStart(java.lang.String tempDirectoryPath,
                        java.lang.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:
PeriodicBackupException - if something goes wrong

backupAddFile

public void backupAddFile(java.io.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:
PeriodicBackupException - if something goes wrong

backupStop

public java.lang.Iterable<java.io.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:
PeriodicBackupException - if something goes wrong

unarchiveFiles

public void unarchiveFiles(java.lang.Iterable<java.io.File> archives,
                           java.io.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 java.lang.String getDisplayName()

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.