Package hudson.model
Class UpdateCenter.PluginDowngradeJob
java.lang.Object
hudson.model.UpdateCenter.UpdateCenterJob
hudson.model.UpdateCenter.DownloadJob
hudson.model.UpdateCenter.PluginDowngradeJob
- All Implemented Interfaces:
- Runnable
- Enclosing class:
- UpdateCenter
Represents the state of the downgrading activity of plugin.
- 
Nested Class SummaryNested classes/interfaces inherited from class hudson.model.UpdateCenter.DownloadJobUpdateCenter.DownloadJob.Failure, UpdateCenter.DownloadJob.InstallationStatus, UpdateCenter.DownloadJob.Installing, UpdateCenter.DownloadJob.Pending, UpdateCenter.DownloadJob.Skipped, UpdateCenter.DownloadJob.Success, UpdateCenter.DownloadJob.SuccessButRequiresRestart
- 
Field SummaryFieldsFields inherited from class hudson.model.UpdateCenter.DownloadJobstatusFields inherited from class hudson.model.UpdateCenter.UpdateCenterJoberror, id, site
- 
Constructor SummaryConstructorsConstructorDescriptionPluginDowngradeJob(UpdateSite.Plugin plugin, UpdateSite site, Authentication auth) Deprecated.PluginDowngradeJob(UpdateSite.Plugin plugin, UpdateSite site, org.springframework.security.core.Authentication auth) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected void_run()protected Fileprotected FileWhere to download the file to.Display name used for the GUI.getName()Code name used for logging.protected URLgetURL()Where to download the file from.protected voidCalled when the whole thing went successfully.protected voidCalled to overwrite current version with backup filevoidrun()toString()Methods inherited from class hudson.model.UpdateCenter.DownloadJobgetComputedSHA1, getComputedSHA256, getComputedSHA512, getContentLength, getUserMethods inherited from class hudson.model.UpdateCenter.UpdateCenterJobgetApi, getCorrelationId, getError, getErrorMessage, getType, schedule, setCorrelationId, submit
- 
Field Details- 
pluginWhat plugin are we trying to install?
 
- 
- 
Constructor Details- 
PluginDowngradeJob@Deprecated public PluginDowngradeJob(UpdateSite.Plugin plugin, UpdateSite site, Authentication auth) 
- 
PluginDowngradeJobpublic PluginDowngradeJob(UpdateSite.Plugin plugin, UpdateSite site, org.springframework.security.core.Authentication auth) 
 
- 
- 
Method Details- 
getURLDescription copied from class:UpdateCenter.DownloadJobWhere to download the file from.- Specified by:
- getURLin class- UpdateCenter.DownloadJob
- Throws:
- MalformedURLException
 
- 
getDestinationDescription copied from class:UpdateCenter.DownloadJobWhere to download the file to.- Specified by:
- getDestinationin class- UpdateCenter.DownloadJob
 
- 
getBackup
- 
getNameDescription copied from class:UpdateCenter.DownloadJobCode name used for logging.- Specified by:
- getNamein class- UpdateCenter.DownloadJob
 
- 
getDisplayNameDescription copied from class:UpdateCenter.DownloadJobDisplay name used for the GUI.- Overrides:
- getDisplayNamein class- UpdateCenter.DownloadJob
 
- 
runpublic void run()- Specified by:
- runin interface- Runnable
- Overrides:
- runin class- UpdateCenter.DownloadJob
 
- 
_run- Overrides:
- _runin class- UpdateCenter.DownloadJob
- Throws:
- IOException
 
- 
replaceCalled to overwrite current version with backup file- Overrides:
- replacein class- UpdateCenter.DownloadJob
- Throws:
- IOException
 
- 
onSuccessprotected void onSuccess()Description copied from class:UpdateCenter.DownloadJobCalled when the whole thing went successfully.- Specified by:
- onSuccessin class- UpdateCenter.DownloadJob
 
- 
toString
 
- 
PluginDowngradeJob(UpdateSite.Plugin, UpdateSite, Authentication)