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.SuccessButRequiresRestart
status
error, 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() |
getUser
getApi, getError, getErrorMessage, getType, schedule, submit
public HudsonDowngradeJob(UpdateSite site, org.acegisecurity.Authentication auth)
protected URL getURL() throws MalformedURLException
UpdateCenter.DownloadJob
getURL
in class UpdateCenter.DownloadJob
MalformedURLException
protected File getDestination()
UpdateCenter.DownloadJob
getDestination
in class UpdateCenter.DownloadJob
public String getName()
getName
in class UpdateCenter.DownloadJob
protected void onSuccess()
UpdateCenter.DownloadJob
onSuccess
in class UpdateCenter.DownloadJob
public void run()
run
in interface Runnable
run
in class UpdateCenter.DownloadJob
protected void _run() throws IOException
_run
in class UpdateCenter.DownloadJob
IOException
protected void replace(File dst, File src) throws IOException
UpdateCenter.DownloadJob
replace
in class UpdateCenter.DownloadJob
IOException
Copyright © 2014. All rights reserved.