|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthudson.model.UpdateCenter.UpdateCenterJob
hudson.model.UpdateCenter.DownloadJob
public abstract class UpdateCenter.DownloadJob
Base class for a job that downloads a file from the Jenkins project.
Nested Class Summary | |
---|---|
class |
UpdateCenter.DownloadJob.Failure
Indicates that the installation of a plugin failed. |
class |
UpdateCenter.DownloadJob.InstallationStatus
Indicates the status or the result of a plugin installation. |
class |
UpdateCenter.DownloadJob.Installing
Installation of a plugin is in progress. |
class |
UpdateCenter.DownloadJob.Pending
Indicates that the plugin is waiting for its turn for installation. |
class |
UpdateCenter.DownloadJob.Success
Indicates that the plugin was successfully installed. |
class |
UpdateCenter.DownloadJob.SuccessButRequiresRestart
Indicates that the installation was successful but a restart is needed. |
Field Summary | |
---|---|
UpdateCenter.DownloadJob.InstallationStatus |
status
Immutable object representing the current state of this job. |
Fields inherited from class hudson.model.UpdateCenter.UpdateCenterJob |
---|
error, id, site |
Constructor Summary | |
---|---|
protected |
UpdateCenter.DownloadJob(UpdateSite site,
org.acegisecurity.Authentication authentication)
|
Method Summary | |
---|---|
protected void |
_run()
|
protected abstract File |
getDestination()
Where to download the file to. |
abstract String |
getName()
|
protected abstract URL |
getURL()
Where to download the file from. |
org.acegisecurity.Authentication |
getUser()
Get the user that initiated this job |
protected abstract 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 hudson.model.UpdateCenter.UpdateCenterJob |
---|
getApi, getError, getErrorMessage, getType, schedule, submit |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
@Exported(inline=true) public volatile UpdateCenter.DownloadJob.InstallationStatus status
Constructor Detail |
---|
protected UpdateCenter.DownloadJob(UpdateSite site, org.acegisecurity.Authentication authentication)
Method Detail |
---|
protected abstract URL getURL() throws MalformedURLException
MalformedURLException
protected abstract File getDestination()
@Exported public abstract String getName()
protected abstract void onSuccess()
public org.acegisecurity.Authentication getUser()
public void run()
protected void _run() throws IOException, UpdateCenter.DownloadJob.InstallationStatus
IOException
UpdateCenter.DownloadJob.InstallationStatus
protected void replace(File dst, File src) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |