org.jvnet.hudson.plugins.backup
Class BackupLink

java.lang.Object
  extended by hudson.model.ManagementLink
      extended by org.jvnet.hudson.plugins.backup.BackupLink
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Action, hudson.model.ModelObject

public class BackupLink
extends hudson.model.ManagementLink


Nested Class Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 
Fields inherited from class hudson.model.ManagementLink
LIST
 
Method Summary
 void doLaunchBackup(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
           
 void doProgressiveBackupLog(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
           
 void doProgressiveRestoreLog(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
          Show restore status.
 void doRestoreFile(org.kohsuke.stapler.StaplerRequest res, org.kohsuke.stapler.StaplerResponse rsp, java.lang.String backupFile)
           
 void doSaveSettings(org.kohsuke.stapler.StaplerRequest res, org.kohsuke.stapler.StaplerResponse rsp, java.lang.String backupPath, java.lang.String format, boolean verbose, java.lang.String fileNameTemplate, boolean keepWorkspaces, boolean keepFingerprints, boolean keepBuilds, boolean keepArchives)
           
 BackupConfig getConfiguration()
           
 java.lang.String getDescription()
           
 java.lang.String getDisplayName()
           
 java.util.List<java.lang.String> getExtensions()
           
 java.util.List<java.io.File> getFileList()
          search into the declared backup directory for backup archives
 java.lang.String getIconFileName()
           
static BackupLink getInstance()
           
 java.lang.String getRootDirectory()
           
 java.lang.String getUrlName()
           
 
Methods inherited from class hudson.model.ManagementLink
all
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static BackupLink getInstance()

getConfiguration

public BackupConfig getConfiguration()

getIconFileName

public java.lang.String getIconFileName()
Specified by:
getIconFileName in interface hudson.model.Action
Specified by:
getIconFileName in class hudson.model.ManagementLink

getUrlName

public java.lang.String getUrlName()
Specified by:
getUrlName in interface hudson.model.Action
Specified by:
getUrlName in class hudson.model.ManagementLink

getDisplayName

public java.lang.String getDisplayName()

getDescription

public java.lang.String getDescription()
Overrides:
getDescription in class hudson.model.ManagementLink

getExtensions

public java.util.List<java.lang.String> getExtensions()

doLaunchBackup

public void doLaunchBackup(org.kohsuke.stapler.StaplerRequest req,
                           org.kohsuke.stapler.StaplerResponse rsp)
                    throws java.io.IOException
Throws:
java.io.IOException

doRestoreFile

public void doRestoreFile(org.kohsuke.stapler.StaplerRequest res,
                          org.kohsuke.stapler.StaplerResponse rsp,
                          @QueryParameter(value="file")
                          java.lang.String backupFile)
                   throws java.io.IOException
Throws:
java.io.IOException

getFileList

public java.util.List<java.io.File> getFileList()
                                         throws java.io.IOException
search into the declared backup directory for backup archives

Throws:
java.io.IOException

doSaveSettings

public void doSaveSettings(org.kohsuke.stapler.StaplerRequest res,
                           org.kohsuke.stapler.StaplerResponse rsp,
                           @QueryParameter(value="backupDirectoryPath")
                           java.lang.String backupPath,
                           @QueryParameter(value="archive_format")
                           java.lang.String format,
                           @QueryParameter(value="verbose")
                           boolean verbose,
                           @QueryParameter(value="fileNameTemplate")
                           java.lang.String fileNameTemplate,
                           @QueryParameter(value="keepWorkspaces")
                           boolean keepWorkspaces,
                           @QueryParameter(value="keepFingerprints")
                           boolean keepFingerprints,
                           @QueryParameter(value="keepBuilds")
                           boolean keepBuilds,
                           @QueryParameter(value="keepArchives")
                           boolean keepArchives)
                    throws java.io.IOException
Throws:
java.io.IOException

doProgressiveBackupLog

public void doProgressiveBackupLog(org.kohsuke.stapler.StaplerRequest req,
                                   org.kohsuke.stapler.StaplerResponse rsp)
                            throws java.io.IOException
Throws:
java.io.IOException

doProgressiveRestoreLog

public void doProgressiveRestoreLog(org.kohsuke.stapler.StaplerRequest req,
                                    org.kohsuke.stapler.StaplerResponse rsp)
                             throws java.io.IOException
Show restore status. When restore is done, reload config from disk via Hudson.doReload(StaplerRequest, StaplerResponse)

Throws:
java.io.IOException

getRootDirectory

public java.lang.String getRootDirectory()


Copyright © 2009. All Rights Reserved.