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 Summary
Nested classes/interfaces inherited from class hudson.model.UpdateCenter.DownloadJob
UpdateCenter.DownloadJob.Failure, UpdateCenter.DownloadJob.InstallationStatus, UpdateCenter.DownloadJob.Installing, UpdateCenter.DownloadJob.Pending, UpdateCenter.DownloadJob.Skipped, UpdateCenter.DownloadJob.Success, UpdateCenter.DownloadJob.SuccessButRequiresRestart
-
Field Summary
Fields inherited from class hudson.model.UpdateCenter.DownloadJob
status
Fields inherited from class hudson.model.UpdateCenter.UpdateCenterJob
error, id, site
-
Constructor Summary
ConstructorDescriptionPluginDowngradeJob
(UpdateSite.Plugin plugin, UpdateSite site, Authentication auth) Deprecated.PluginDowngradeJob
(UpdateSite.Plugin plugin, UpdateSite site, org.springframework.security.core.Authentication auth) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
_run()
protected File
protected File
Where to download the file to.Display name used for the GUI.getName()
Code name used for logging.protected URL
getURL()
Where to download the file from.protected void
Called when the whole thing went successfully.protected void
Called to overwrite current version with backup filevoid
run()
toString()
Methods inherited from class hudson.model.UpdateCenter.DownloadJob
getComputedSHA1, getComputedSHA256, getComputedSHA512, getContentLength, getUser
Methods inherited from class hudson.model.UpdateCenter.UpdateCenterJob
getApi, getCorrelationId, getError, getErrorMessage, getType, schedule, setCorrelationId, submit
-
Field Details
-
plugin
What plugin are we trying to install?
-
-
Constructor Details
-
PluginDowngradeJob
@Deprecated public PluginDowngradeJob(UpdateSite.Plugin plugin, UpdateSite site, Authentication auth) -
PluginDowngradeJob
public PluginDowngradeJob(UpdateSite.Plugin plugin, UpdateSite site, org.springframework.security.core.Authentication auth)
-
-
Method Details
-
getURL
Description copied from class:UpdateCenter.DownloadJob
Where to download the file from.- Specified by:
getURL
in classUpdateCenter.DownloadJob
- Throws:
MalformedURLException
-
getDestination
Description copied from class:UpdateCenter.DownloadJob
Where to download the file to.- Specified by:
getDestination
in classUpdateCenter.DownloadJob
-
getBackup
-
getName
Description copied from class:UpdateCenter.DownloadJob
Code name used for logging.- Specified by:
getName
in classUpdateCenter.DownloadJob
-
getDisplayName
Description copied from class:UpdateCenter.DownloadJob
Display name used for the GUI.- Overrides:
getDisplayName
in classUpdateCenter.DownloadJob
-
run
public void run()- Specified by:
run
in interfaceRunnable
- Overrides:
run
in classUpdateCenter.DownloadJob
-
_run
- Overrides:
_run
in classUpdateCenter.DownloadJob
- Throws:
IOException
-
replace
Called to overwrite current version with backup file- Overrides:
replace
in classUpdateCenter.DownloadJob
- Throws:
IOException
-
onSuccess
protected void onSuccess()Description copied from class:UpdateCenter.DownloadJob
Called when the whole thing went successfully.- Specified by:
onSuccess
in classUpdateCenter.DownloadJob
-
toString
-
PluginDowngradeJob(UpdateSite.Plugin, UpdateSite, Authentication)