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 |
|
Method Summary |
hudson.util.FormValidation |
doCheckBackupPath(org.kohsuke.stapler.StaplerRequest res,
org.kohsuke.stapler.StaplerResponse rsp,
String path)
|
hudson.util.FormValidation |
doCheckBackupSchedule(org.kohsuke.stapler.StaplerRequest res,
org.kohsuke.stapler.StaplerResponse rsp,
String schedule)
|
hudson.util.FormValidation |
doCheckExcludedFilesRegex(org.kohsuke.stapler.StaplerRequest res,
org.kohsuke.stapler.StaplerResponse rsp,
String regex)
|
hudson.util.FormValidation |
doCheckForceQuietModeTimeout(org.kohsuke.stapler.StaplerRequest res,
org.kohsuke.stapler.StaplerResponse rsp,
String timeout)
|
hudson.util.FormValidation |
doCheckWaitForIdle(org.kohsuke.stapler.StaplerRequest res,
org.kohsuke.stapler.StaplerResponse rsp,
String waitForIdle)
|
String |
getBackupPath()
Get the backup path as entered by the user. |
String |
getDiffBackupSchedule()
|
String |
getExcludedFilesRegex()
|
String |
getExpandedBackupPath()
|
int |
getForceQuietModeTimeout()
|
String |
getFullBackupSchedule()
|
File |
getHudsonHome()
|
static ThinBackupPluginImpl |
getInstance()
|
int |
getNrMaxStoredFull()
|
boolean |
isBackupBuildArchive()
|
boolean |
isBackupBuildResults()
|
boolean |
isBackupNextBuildNumber()
|
boolean |
isBackupUserContents()
|
boolean |
isCleanupDiff()
|
boolean |
isMoveOldBackupsToZipFile()
|
boolean |
isWaitForIdle()
|
void |
setBackupBuildArchive(boolean backupBuildArchive)
|
void |
setBackupBuildResults(boolean backupBuildResults)
|
void |
setBackupNextBuildNumber(boolean backupNextBuildNumber)
|
void |
setBackupPath(String backupPath)
|
void |
setBackupUserContents(boolean backupUserContents)
|
void |
setCleanupDiff(boolean cleanupDiff)
|
void |
setDiffBackupSchedule(String diffBackupSchedule)
|
void |
setExcludedFilesRegex(String excludedFilesRegex)
|
void |
setForceQuietModeTimeout(int forceQuietModeTimeout)
|
void |
setFullBackupSchedule(String fullBackupSchedule)
|
void |
setMoveOldBackupsToZipFile(boolean moveOldBackupsToZipFile)
|
void |
setNrMaxStoredFull(int nrMaxStoredFull)
|
void |
setNrMaxStoredFullAsString(String nrMaxStoredFull)
|
void |
setWaitForIdle(boolean waitForIdle)
|
void |
start()
|
| 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)
isBackupUserContents
public boolean isBackupUserContents()
setBackupUserContents
public void setBackupUserContents(boolean backupUserContents)
getExcludedFilesRegex
public String getExcludedFilesRegex()
setWaitForIdle
public void setWaitForIdle(boolean waitForIdle)
isWaitForIdle
public boolean isWaitForIdle()
doCheckForceQuietModeTimeout
public hudson.util.FormValidation doCheckForceQuietModeTimeout(org.kohsuke.stapler.StaplerRequest res,
org.kohsuke.stapler.StaplerResponse rsp,
@QueryParameter(value="value")
String 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.
doCheckWaitForIdle
public hudson.util.FormValidation doCheckWaitForIdle(org.kohsuke.stapler.StaplerRequest res,
org.kohsuke.stapler.StaplerResponse rsp,
@QueryParameter(value="value")
String waitForIdle)
Copyright © 2004-2013. All Rights Reserved.