Package hudson.model
Class UpdateCenter.HudsonDowngradeJob
- java.lang.Object
-
- hudson.model.UpdateCenter.UpdateCenterJob
-
- hudson.model.UpdateCenter.DownloadJob
-
- hudson.model.UpdateCenter.HudsonDowngradeJob
-
- All Implemented Interfaces:
Runnable
- Enclosing class:
- UpdateCenter
public final class UpdateCenter.HudsonDowngradeJob extends UpdateCenter.DownloadJob
-
-
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
Constructors Constructor Description HudsonDowngradeJob(UpdateSite site, Authentication auth)Deprecated.HudsonDowngradeJob(UpdateSite site, org.springframework.security.core.Authentication auth)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void_run()protected FilegetDestination()Where to download the file to.StringgetName()Code name used for logging.protected URLgetURL()Where to download the file from.protected voidonSuccess()Called when the whole thing went successfully.protected voidreplace(File dst, File src)Called when the download is completed to overwrite the old file with the new file.voidrun()-
Methods inherited from class hudson.model.UpdateCenter.DownloadJob
getComputedSHA1, getComputedSHA256, getComputedSHA512, getContentLength, getDisplayName, getUser
-
Methods inherited from class hudson.model.UpdateCenter.UpdateCenterJob
getApi, getCorrelationId, getError, getErrorMessage, getType, schedule, setCorrelationId, submit
-
-
-
-
Constructor Detail
-
HudsonDowngradeJob
@Deprecated public HudsonDowngradeJob(UpdateSite site, Authentication auth)
Deprecated.
-
HudsonDowngradeJob
public HudsonDowngradeJob(UpdateSite site, org.springframework.security.core.Authentication auth)
-
-
Method Detail
-
getURL
protected URL getURL() throws MalformedURLException
Description copied from class:UpdateCenter.DownloadJobWhere to download the file from.- Specified by:
getURLin classUpdateCenter.DownloadJob- Throws:
MalformedURLException
-
getDestination
protected File getDestination()
Description copied from class:UpdateCenter.DownloadJobWhere to download the file to.- Specified by:
getDestinationin classUpdateCenter.DownloadJob
-
getName
public String getName()
Description copied from class:UpdateCenter.DownloadJobCode name used for logging.- Specified by:
getNamein classUpdateCenter.DownloadJob
-
onSuccess
protected void onSuccess()
Description copied from class:UpdateCenter.DownloadJobCalled when the whole thing went successfully.- Specified by:
onSuccessin classUpdateCenter.DownloadJob
-
run
public void run()
- Specified by:
runin interfaceRunnable- Overrides:
runin classUpdateCenter.DownloadJob
-
_run
protected void _run() throws IOException- Overrides:
_runin classUpdateCenter.DownloadJob- Throws:
IOException
-
replace
protected void replace(File dst, File src) throws IOException
Description copied from class:UpdateCenter.DownloadJobCalled when the download is completed to overwrite the old file with the new file.- Overrides:
replacein classUpdateCenter.DownloadJob- Throws:
IOException
-
-