org.jvnet.hudson.plugins.thinbackup
Class ThinBackupPluginImpl
java.lang.Object
hudson.Plugin
org.jvnet.hudson.plugins.thinbackup.ThinBackupPluginImpl
- All Implemented Interfaces:
- hudson.model.Saveable
public class ThinBackupPluginImpl
- extends hudson.Plugin
| Nested classes/interfaces inherited from class hudson.Plugin |
hudson.Plugin.DummyImpl |
| Fields inherited from interface hudson.model.Saveable |
NOOP |
| Methods inherited from class hudson.Plugin |
configure, configure, doDynamic, getConfigXml, load, postInitialize, save, setServletContext, stop |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ThinBackupPluginImpl
public ThinBackupPluginImpl()
start
public void start()
throws Exception
- Overrides:
start in class hudson.Plugin
- Throws:
Exception
getInstance
public static ThinBackupPluginImpl getInstance()
getHudsonHome
public File getHudsonHome()
setFullBackupSchedule
public void setFullBackupSchedule(String fullBackupSchedule)
getFullBackupSchedule
public String getFullBackupSchedule()
setDiffBackupSchedule
public void setDiffBackupSchedule(String diffBackupSchedule)
getDiffBackupSchedule
public String getDiffBackupSchedule()
getForceQuietModeTimeout
public int getForceQuietModeTimeout()
setForceQuietModeTimeout
public void setForceQuietModeTimeout(int forceQuietModeTimeout)
setBackupPath
public void setBackupPath(String backupPath)
getBackupPath
public String getBackupPath()
- Get the backup path as entered by the user. May contain traces of environment variables.
If you need a path that can be used as is (env. vars expanded), please use @link{getExpandedBackupPath}.
- Returns:
- the backup path as stored in the settings page.
getExpandedBackupPath
public String getExpandedBackupPath()
- Returns:
- the backup path with possibly contained environment variables expanded.
setNrMaxStoredFull
public void setNrMaxStoredFull(int nrMaxStoredFull)
setNrMaxStoredFullAsString
public void setNrMaxStoredFullAsString(String nrMaxStoredFull)
- Parameters:
nrMaxStoredFull - if this string can be parsed as an Integer, nrMaxStoredFull is set to this value, otherwise it is set to
-1.
getNrMaxStoredFull
public int getNrMaxStoredFull()
setCleanupDiff
public void setCleanupDiff(boolean cleanupDiff)
isCleanupDiff
public boolean isCleanupDiff()
setMoveOldBackupsToZipFile
public void setMoveOldBackupsToZipFile(boolean moveOldBackupsToZipFile)
isMoveOldBackupsToZipFile
public boolean isMoveOldBackupsToZipFile()
setBackupBuildResults
public void setBackupBuildResults(boolean backupBuildResults)
isBackupBuildResults
public boolean isBackupBuildResults()
setBackupBuildArchive
public void setBackupBuildArchive(boolean backupBuildArchive)
isBackupBuildArchive
public boolean isBackupBuildArchive()
setBackupNextBuildNumber
public void setBackupNextBuildNumber(boolean backupNextBuildNumber)
isBackupNextBuildNumber
public boolean isBackupNextBuildNumber()
setExcludedFilesRegex
public void setExcludedFilesRegex(String excludedFilesRegex)
getExcludedFilesRegex
public String getExcludedFilesRegex()
doCheckForceQuietModeTimeout
public hudson.util.FormValidation doCheckForceQuietModeTimeout(org.kohsuke.stapler.StaplerRequest res,
org.kohsuke.stapler.StaplerResponse rsp,
@QueryParameter(value="value")
int timeout)
doCheckBackupPath
public hudson.util.FormValidation doCheckBackupPath(org.kohsuke.stapler.StaplerRequest res,
org.kohsuke.stapler.StaplerResponse rsp,
@QueryParameter(value="value")
String path)
doCheckBackupSchedule
public hudson.util.FormValidation doCheckBackupSchedule(org.kohsuke.stapler.StaplerRequest res,
org.kohsuke.stapler.StaplerResponse rsp,
@QueryParameter(value="value")
String schedule)
doCheckExcludedFilesRegex
public hudson.util.FormValidation doCheckExcludedFilesRegex(org.kohsuke.stapler.StaplerRequest res,
org.kohsuke.stapler.StaplerResponse rsp,
@QueryParameter(value="value")
String regex)
- Parameters:
res - rsp - regex -
- Returns:
- FormValidation.Kind.OK if the regex is valid, FormValidation.Kind.WARNING if the regex is valid but
consists only of whitespaces or has leading and/or trailing whitespaces, and FormValidation.Kind.ERROR if
the regex syntax is invalid.
Copyright © 2004-2012 Borland (a Microfocus Company). All Rights Reserved.