Class ThinBackupPluginImpl
- java.lang.Object
-
- hudson.model.Descriptor<GlobalConfiguration>
-
- jenkins.model.GlobalConfiguration
-
- org.jvnet.hudson.plugins.thinbackup.ThinBackupPluginImpl
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<GlobalConfiguration>
,Saveable
,OnMaster
@Extension @Symbol("thinBackup") public class ThinBackupPluginImpl extends GlobalConfiguration
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
-
Fields inherited from class hudson.model.Descriptor
clazz
-
-
Constructor Summary
Constructors Constructor Description ThinBackupPluginImpl()
-
Method Summary
-
Methods inherited from class jenkins.model.GlobalConfiguration
all, getDescriptor, getGlobalConfigPage
-
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
-
-
-
Method Detail
-
get
public static ThinBackupPluginImpl get()
-
getJenkinsHome
public File getJenkinsHome()
-
configure
public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json) throws Descriptor.FormException
- Overrides:
configure
in classGlobalConfiguration
- Throws:
Descriptor.FormException
-
setFullBackupSchedule
@DataBoundSetter public void setFullBackupSchedule(String fullBackupSchedule)
-
getFullBackupSchedule
public String getFullBackupSchedule()
-
setDiffBackupSchedule
@DataBoundSetter public void setDiffBackupSchedule(String diffBackupSchedule)
-
getDiffBackupSchedule
public String getDiffBackupSchedule()
-
getForceQuietModeTimeout
public int getForceQuietModeTimeout()
-
setForceQuietModeTimeout
@DataBoundSetter public void setForceQuietModeTimeout(int forceQuietModeTimeout)
-
setBackupPath
@DataBoundSetter 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
@DataBoundSetter public void setNrMaxStoredFull(int nrMaxStoredFull)
-
getNrMaxStoredFull
public int getNrMaxStoredFull()
-
setCleanupDiff
@DataBoundSetter public void setCleanupDiff(boolean cleanupDiff)
-
isCleanupDiff
public boolean isCleanupDiff()
-
setMoveOldBackupsToZipFile
@DataBoundSetter public void setMoveOldBackupsToZipFile(boolean moveOldBackupsToZipFile)
-
isMoveOldBackupsToZipFile
public boolean isMoveOldBackupsToZipFile()
-
setBackupBuildResults
@DataBoundSetter public void setBackupBuildResults(boolean backupBuildResults)
-
isBackupBuildResults
public boolean isBackupBuildResults()
-
setBackupBuildArchive
@DataBoundSetter public void setBackupBuildArchive(boolean backupBuildArchive)
-
isBackupBuildArchive
public boolean isBackupBuildArchive()
-
setBackupBuildsToKeepOnly
@DataBoundSetter public void setBackupBuildsToKeepOnly(boolean backupBuildsToKeepOnly)
-
isBackupBuildsToKeepOnly
public boolean isBackupBuildsToKeepOnly()
-
setBackupNextBuildNumber
@DataBoundSetter public void setBackupNextBuildNumber(boolean backupNextBuildNumber)
-
isBackupNextBuildNumber
public boolean isBackupNextBuildNumber()
-
setExcludedFilesRegex
@DataBoundSetter public void setExcludedFilesRegex(String excludedFilesRegex)
-
isBackupUserContents
public boolean isBackupUserContents()
-
setBackupUserContents
@DataBoundSetter public void setBackupUserContents(boolean backupUserContents)
-
getExcludedFilesRegex
public String getExcludedFilesRegex()
-
setBackupPluginArchives
@DataBoundSetter public void setBackupPluginArchives(boolean backupPluginArchives)
-
isBackupPluginArchives
public boolean isBackupPluginArchives()
-
setBackupAdditionalFiles
@DataBoundSetter public void setBackupAdditionalFiles(boolean backupAdditionalFiles)
-
isBackupAdditionalFiles
public boolean isBackupAdditionalFiles()
-
setBackupAdditionalFilesRegex
@DataBoundSetter public void setBackupAdditionalFilesRegex(String backupAdditionalFilesRegex)
-
getBackupAdditionalFilesRegex
public String getBackupAdditionalFilesRegex()
-
setWaitForIdle
@DataBoundSetter public void setWaitForIdle(boolean waitForIdle)
-
isWaitForIdle
public boolean isWaitForIdle()
-
isBackupConfigHistory
public boolean isBackupConfigHistory()
-
setBackupConfigHistory
@DataBoundSetter public void setBackupConfigHistory(boolean backupConfigHistory)
-
isFailFast
public boolean isFailFast()
-
setFailFast
@DataBoundSetter public void setFailFast(boolean failFast)
-
doCheckBackupPath
@POST public FormValidation doCheckBackupPath(@QueryParameter String value)
-
doCheckFullBackupSchedule
@POST public FormValidation doCheckFullBackupSchedule(@QueryParameter("value") String schedule)
-
doCheckDiffBackupSchedule
@POST public FormValidation doCheckDiffBackupSchedule(@QueryParameter("value") String schedule)
-
doCheckExcludedFilesRegex
@POST public FormValidation doCheckExcludedFilesRegex(@QueryParameter("value") String regex)
-
doCheckBackupAdditionalFilesRegex
@POST public FormValidation doCheckBackupAdditionalFilesRegex(@QueryParameter("value") String regex)
-
doCheckWaitForIdle
@POST public FormValidation doCheckWaitForIdle(@QueryParameter("value") String waitForIdle)
-
doCheckForceQuietModeTimeout
@POST public FormValidation doCheckForceQuietModeTimeout(@QueryParameter("value") String timeout)
-
-