hudson.model
Class UpdateCenter.PluginDowngradeJob

java.lang.Object
  extended by hudson.model.UpdateCenter.UpdateCenterJob
      extended by hudson.model.UpdateCenter.DownloadJob
          extended by hudson.model.UpdateCenter.PluginDowngradeJob
All Implemented Interfaces:
Runnable
Enclosing class:
UpdateCenter

public final class UpdateCenter.PluginDowngradeJob
extends UpdateCenter.DownloadJob

Represents the state of the downgrading activity of plugin.


Nested Class Summary
 
Nested classes/interfaces inherited from class hudson.model.UpdateCenter.DownloadJob
UpdateCenter.DownloadJob.Failure, UpdateCenter.DownloadJob.InstallationStatus, UpdateCenter.DownloadJob.Installing, UpdateCenter.DownloadJob.Pending, UpdateCenter.DownloadJob.Success, UpdateCenter.DownloadJob.SuccessButRequiresRestart
 
Field Summary
 UpdateSite.Plugin plugin
          What plugin are we trying to install?
 
Fields inherited from class hudson.model.UpdateCenter.DownloadJob
status
 
Fields inherited from class hudson.model.UpdateCenter.UpdateCenterJob
error, id, site
 
Constructor Summary
UpdateCenter.PluginDowngradeJob(UpdateSite.Plugin plugin, UpdateSite site, org.acegisecurity.Authentication auth)
           
 
Method Summary
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()
           
 
Methods inherited from class hudson.model.UpdateCenter.DownloadJob
getUser
 
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, wait, wait, wait
 

Field Detail

plugin

public final UpdateSite.Plugin plugin
What plugin are we trying to install?

Constructor Detail

UpdateCenter.PluginDowngradeJob

public UpdateCenter.PluginDowngradeJob(UpdateSite.Plugin plugin,
                                       UpdateSite site,
                                       org.acegisecurity.Authentication auth)
Method Detail

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

getBackup

protected File getBackup()

getName

public String getName()
Specified by:
getName 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 backup)
                throws IOException
Called to overwrite current version with backup file

Overrides:
replace in class UpdateCenter.DownloadJob
Throws:
IOException

onSuccess

protected void onSuccess()
Description copied from class: UpdateCenter.DownloadJob
Called when the whole thing went successfully.

Specified by:
onSuccess in class UpdateCenter.DownloadJob

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2004-2013. All Rights Reserved.