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
Method Summary |
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()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UpdateCenter.HudsonDowngradeJob
public UpdateCenter.HudsonDowngradeJob(UpdateSite site,
org.acegisecurity.Authentication auth)
getURL
protected URL getURL()
throws MalformedURLException
- Description copied from class:
UpdateCenter.DownloadJob
- Where to download the file from.
- Specified by:
getURL
in class UpdateCenter.DownloadJob
- Throws:
MalformedURLException
getDestination
protected File getDestination()
- Description copied from class:
UpdateCenter.DownloadJob
- Where to download the file to.
- Specified by:
getDestination
in class UpdateCenter.DownloadJob
getName
public String getName()
- Specified by:
getName
in class UpdateCenter.DownloadJob
onSuccess
protected void onSuccess()
- Description copied from class:
UpdateCenter.DownloadJob
- Called when the whole thing went successfully.
- Specified by:
onSuccess
in class UpdateCenter.DownloadJob
run
public void run()
- Specified by:
run
in interface Runnable
- Overrides:
run
in class UpdateCenter.DownloadJob
_run
protected void _run()
throws IOException
- Overrides:
_run
in class UpdateCenter.DownloadJob
- Throws:
IOException
replace
protected void replace(File dst,
File src)
throws IOException
- Description copied from class:
UpdateCenter.DownloadJob
- Called when the download is completed to overwrite
the old file with the new file.
- Overrides:
replace
in class UpdateCenter.DownloadJob
- Throws:
IOException
Copyright © 2004-2013. All Rights Reserved.