public final class UpdateCenter.HudsonUpgradeJob extends UpdateCenter.DownloadJob
UpdateCenter.DownloadJob.Failure, UpdateCenter.DownloadJob.InstallationStatus, UpdateCenter.DownloadJob.Installing, UpdateCenter.DownloadJob.Pending, UpdateCenter.DownloadJob.Skipped, UpdateCenter.DownloadJob.Success, UpdateCenter.DownloadJob.SuccessButRequiresRestart
status
error, id, site
Constructor and Description |
---|
HudsonUpgradeJob(UpdateSite site,
Authentication auth)
Deprecated.
|
HudsonUpgradeJob(UpdateSite site,
org.springframework.security.core.Authentication auth) |
Modifier and Type | Method and Description |
---|---|
protected File |
getDestination()
Where to download the file to.
|
String |
getName()
Code name used for logging.
|
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, getComputedSHA256, getComputedSHA512, getDisplayName, getUser, run
getApi, getCorrelationId, getError, getErrorMessage, getType, schedule, setCorrelationId, submit
@Deprecated public HudsonUpgradeJob(UpdateSite site, Authentication auth)
HudsonUpgradeJob(UpdateSite site, Authentication auth)
public HudsonUpgradeJob(UpdateSite site, org.springframework.security.core.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()
UpdateCenter.DownloadJob
getName
in class UpdateCenter.DownloadJob
protected void onSuccess()
UpdateCenter.DownloadJob
onSuccess
in class UpdateCenter.DownloadJob
protected void replace(File dst, File src) throws IOException
UpdateCenter.DownloadJob
replace
in class UpdateCenter.DownloadJob
IOException
Copyright © 2004–2021. All rights reserved.