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?
|
status
error, 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() |
getUser, run
getApi, getError, getErrorMessage, getType, schedule, submit
@Exported public final UpdateSite.Plugin plugin
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.DownloadJob
getURL
in class UpdateCenter.DownloadJob
MalformedURLException
protected File getDestination()
UpdateCenter.DownloadJob
getDestination
in class UpdateCenter.DownloadJob
public String getName()
getName
in class UpdateCenter.DownloadJob
public void _run() throws IOException, UpdateCenter.DownloadJob.InstallationStatus
_run
in class UpdateCenter.DownloadJob
IOException
UpdateCenter.DownloadJob.InstallationStatus
protected void onSuccess()
UpdateCenter.DownloadJob
onSuccess
in class UpdateCenter.DownloadJob
protected void replace(File dst, File src) throws IOException
replace
in class UpdateCenter.DownloadJob
IOException
Copyright © 2016. All rights reserved.