public final class UpdateCenter.InstallationJob extends UpdateCenter.DownloadJob
UpdateCenter.DownloadJob.Failure, UpdateCenter.DownloadJob.InstallationStatus, UpdateCenter.DownloadJob.Installing, UpdateCenter.DownloadJob.Pending, UpdateCenter.DownloadJob.Success, UpdateCenter.DownloadJob.SuccessButRequiresRestart| Modifier and Type | Field and Description |
|---|---|
UpdateSite.Plugin |
plugin
What plugin are we trying to install?
|
statuserror, id, site| Constructor and Description |
|---|
InstallationJob(UpdateSite.Plugin plugin,
UpdateSite site,
org.acegisecurity.Authentication auth)
Deprecated.
as of 1.442
|
InstallationJob(UpdateSite.Plugin plugin,
UpdateSite site,
org.acegisecurity.Authentication auth,
boolean dynamicLoad) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
String |
toString() |
getComputedSHA1, getUser, rungetApi, getError, getErrorMessage, getType, schedule, submit@Exported public final UpdateSite.Plugin plugin
@Deprecated public InstallationJob(UpdateSite.Plugin plugin, UpdateSite site, org.acegisecurity.Authentication auth)
public InstallationJob(UpdateSite.Plugin plugin, UpdateSite site, org.acegisecurity.Authentication auth, boolean dynamicLoad)
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.DownloadJobpublic void _run()
throws IOException,
UpdateCenter.DownloadJob.InstallationStatus
_run in class UpdateCenter.DownloadJobIOExceptionUpdateCenter.DownloadJob.InstallationStatusprotected void onSuccess()
UpdateCenter.DownloadJobonSuccess in class UpdateCenter.DownloadJobprotected void replace(File dst, File src) throws IOException
replace in class UpdateCenter.DownloadJobIOExceptionCopyright © 2019. All rights reserved.