public final class UpdateCenter.PluginDowngradeJob 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 |
|---|
PluginDowngradeJob(UpdateSite.Plugin plugin,
UpdateSite site,
org.acegisecurity.Authentication auth) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
_run() |
protected File |
getBackup() |
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 backup)
Called to overwrite
current version with backup file
|
void |
run() |
String |
toString() |
getComputedSHA1, getUsergetApi, getError, getErrorMessage, getType, schedule, submitpublic final UpdateSite.Plugin plugin
public PluginDowngradeJob(UpdateSite.Plugin plugin, UpdateSite site, org.acegisecurity.Authentication auth)
protected URL getURL() throws MalformedURLException
UpdateCenter.DownloadJobgetURL in class UpdateCenter.DownloadJobMalformedURLExceptionprotected File getDestination()
UpdateCenter.DownloadJobgetDestination in class UpdateCenter.DownloadJobprotected File getBackup()
public String getName()
getName in class UpdateCenter.DownloadJobpublic void run()
run in interface Runnablerun in class UpdateCenter.DownloadJobprotected void _run()
throws IOException
_run in class UpdateCenter.DownloadJobIOExceptionprotected void replace(File dst, File backup) throws IOException
replace in class UpdateCenter.DownloadJobIOExceptionprotected void onSuccess()
UpdateCenter.DownloadJobonSuccess in class UpdateCenter.DownloadJobCopyright © 2019. All rights reserved.