public final class UpdateCenter.HudsonUpgradeJob 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 |
|---|
HudsonUpgradeJob(UpdateSite site,
org.acegisecurity.Authentication auth) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
_run, getComputedSHA1, getUser, rungetApi, getError, getErrorMessage, getType, schedule, submitpublic HudsonUpgradeJob(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.DownloadJobprotected void replace(File dst, File src) throws IOException
UpdateCenter.DownloadJobreplace in class UpdateCenter.DownloadJobIOExceptionCopyright © 2019. All rights reserved.