public final class UpdateCenter.HudsonDowngradeJob extends UpdateCenter.DownloadJob
UpdateCenter.DownloadJob.Failure, UpdateCenter.DownloadJob.InstallationStatus, UpdateCenter.DownloadJob.Installing, UpdateCenter.DownloadJob.Pending, UpdateCenter.DownloadJob.Success, UpdateCenter.DownloadJob.SuccessButRequiresRestartstatuserror, id, site| Constructor and Description |
|---|
HudsonDowngradeJob(UpdateSite site,
org.acegisecurity.Authentication auth) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
_run() |
protected File |
getDestination()
Where to download the file to.
|
String |
getName() |
protected URL |
getURL()
Where to download the file from.
|
protected void |
onSuccess()
Called when the whole thing went successfully.
|
protected void |
replace(File dst,
File src)
Called when the download is completed to overwrite
the old file with the new file.
|
void |
run() |
getComputedSHA1, getUsergetApi, getError, getErrorMessage, getType, schedule, submitpublic HudsonDowngradeJob(UpdateSite site, org.acegisecurity.Authentication auth)
protected URL getURL() throws MalformedURLException
UpdateCenter.DownloadJobgetURL in class UpdateCenter.DownloadJobMalformedURLExceptionprotected File getDestination()
UpdateCenter.DownloadJobgetDestination in class UpdateCenter.DownloadJobpublic String getName()
getName in class UpdateCenter.DownloadJobprotected void onSuccess()
UpdateCenter.DownloadJobonSuccess in class UpdateCenter.DownloadJobpublic void run()
run in interface Runnablerun in class UpdateCenter.DownloadJobprotected void _run()
throws IOException
_run in class UpdateCenter.DownloadJobIOExceptionprotected void replace(File dst, File src) throws IOException
UpdateCenter.DownloadJobreplace in class UpdateCenter.DownloadJobIOExceptionCopyright © 2019. All rights reserved.