@Extension public class PeriodicBackupLink extends hudson.model.ManagementLink implements hudson.model.Describable<PeriodicBackupLink>, hudson.model.Saveable
| Modifier and Type | Class and Description |
|---|---|
static class |
PeriodicBackupLink.DescriptorImpl
Descriptor is only used for UI form bindings
|
| Constructor and Description |
|---|
PeriodicBackupLink() |
| Modifier and Type | Method and Description |
|---|---|
void |
doBackup(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp) |
void |
doConfigSubmit(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp) |
void |
doRestore(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp,
int backupHash)
Performing restore when triggered form restore web page, backupHash of selected backup is passed to determine which backup in this location should be chosen
|
static PeriodicBackupLink |
get() |
protected hudson.XmlFile |
getConfigXml() |
String |
getCron() |
int |
getCycleDays() |
int |
getCycleQuantity() |
String |
getDescription() |
PeriodicBackupLink.DescriptorImpl |
getDescriptor() |
String |
getDisplayName() |
Collection<FileManagerDescriptor> |
getFileManagerDescriptors() |
FileManager |
getFileManagerPlugin() |
String |
getIconFileName() |
Collection<LocationDescriptor> |
getLocationDescriptors() |
hudson.util.DescribableList<Location,LocationDescriptor> |
getLocations() |
String |
getMessage() |
String |
getRootDirectory() |
Collection<StorageDescriptor> |
getStorageDescriptors() |
hudson.util.DescribableList<Storage,StorageDescriptor> |
getStorages() |
String |
getTempDirectory() |
String |
getUrlName() |
boolean |
isBackupNow() |
protected void |
load() |
void |
save() |
void |
setBackupNow(boolean backupNow) |
void |
setCron(String cron) |
void |
setCycleDays(int cycleDays) |
void |
setCycleQuantity(int cycleQuantity) |
void |
setFileManagerPlugin(FileManager fileManagerPlugin) |
void |
setMessage(String message) |
void |
setTempDirectory(String tempDirectory) |
public PeriodicBackupLink()
throws IOException
IOExceptionpublic String getTempDirectory()
public void setTempDirectory(String tempDirectory)
public String getCron()
public void setCron(String cron)
public boolean isBackupNow()
public void setBackupNow(boolean backupNow)
public int getCycleQuantity()
public void setCycleQuantity(int cycleQuantity)
public int getCycleDays()
public void setCycleDays(int cycleDays)
public String getDisplayName()
getDisplayName in interface hudson.model.ActiongetDisplayName in interface hudson.model.ModelObject@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class)
@RestrictedSince(value="1.4")
public void doBackup(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws Exception
Exception@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class)
@RestrictedSince(value="1.4")
public void doRestore(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp,
@QueryParameter(value="backupHash")
int backupHash)
throws IOException,
org.jenkinsci.plugins.periodicbackup.PeriodicBackupException
req - StaplerRequestrsp - StaplerResponsebackupHash - hash code of the selected BackupObject set to be restoredIOException - If an IO problem occursPeriodicBackupException - If other problem occurspublic String getUrlName()
getUrlName in interface hudson.model.ActiongetUrlName in class hudson.model.ManagementLinkpublic String getIconFileName()
getIconFileName in interface hudson.model.ActiongetIconFileName in class hudson.model.ManagementLinkpublic String getDescription()
getDescription in class hudson.model.ManagementLinkprotected void load()
throws IOException
IOExceptionpublic void save()
throws IOException
save in interface hudson.model.SaveableIOExceptionprotected hudson.XmlFile getConfigXml()
public String getRootDirectory()
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class)
@RestrictedSince(value="1.4")
public void doConfigSubmit(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws javax.servlet.ServletException,
IOException,
ClassNotFoundException
javax.servlet.ServletExceptionIOExceptionClassNotFoundExceptionpublic PeriodicBackupLink.DescriptorImpl getDescriptor()
getDescriptor in interface hudson.model.Describable<PeriodicBackupLink>public Collection<FileManagerDescriptor> getFileManagerDescriptors()
public Collection<StorageDescriptor> getStorageDescriptors()
public Collection<LocationDescriptor> getLocationDescriptors()
public FileManager getFileManagerPlugin()
public void setFileManagerPlugin(FileManager fileManagerPlugin)
public hudson.util.DescribableList<Storage,StorageDescriptor> getStorages()
public hudson.util.DescribableList<Location,LocationDescriptor> getLocations()
public static PeriodicBackupLink get()
public String getMessage()
public void setMessage(String message)
Copyright © 2016–2022. All rights reserved.