org.gudy.azureus2.plugins.update
Interface UpdateChecker

All Known Implementing Classes:
UpdateCheckerImpl

public interface UpdateChecker


Method Summary
 void addListener(UpdateCheckerListener l)
           
 void addProgressListener(UpdateProgressListener l)
           
 Update addUpdate(java.lang.String name, java.lang.String[] description, java.lang.String old_version, java.lang.String new_version, ResourceDownloader[] downloaders, int restart_required)
          Add an update with a number of downloaders
 Update addUpdate(java.lang.String name, java.lang.String[] description, java.lang.String old_version, java.lang.String new_version, ResourceDownloader downloader, int restart_required)
          Add an update with a single downloader
 void completed()
          Indicate that update checking is complete and that any updates required have been added by the addUpdate methods
 UpdateInstaller createInstaller()
          For updates that require a stop, update-action and then start you create an installer.
 void failed()
          Indicates that the update check failed.
 UpdateCheckInstance getCheckInstance()
           
 UpdatableComponent getComponent()
           
 void removeListener(UpdateCheckerListener l)
           
 void removeProgressListener(UpdateProgressListener l)
           
 void reportProgress(java.lang.String str)
          report a progress string to registered listeners
 

Method Detail

getComponent

UpdatableComponent getComponent()

getCheckInstance

UpdateCheckInstance getCheckInstance()

addUpdate

Update addUpdate(java.lang.String name,
                 java.lang.String[] description,
                 java.lang.String old_version,
                 java.lang.String new_version,
                 ResourceDownloader downloader,
                 int restart_required)
Add an update with a single downloader

Parameters:
mandatory - indicates that in a group of updates this one must succeed

addUpdate

Update addUpdate(java.lang.String name,
                 java.lang.String[] description,
                 java.lang.String old_version,
                 java.lang.String new_version,
                 ResourceDownloader[] downloaders,
                 int restart_required)
Add an update with a number of downloaders


createInstaller

UpdateInstaller createInstaller()
                                throws UpdateException
For updates that require a stop, update-action and then start you create an installer. This allows the specification of actions such as the replacement of a DLL

Returns:
Throws:
UpdateException

completed

void completed()
Indicate that update checking is complete and that any updates required have been added by the addUpdate methods


failed

void failed()
Indicates that the update check failed. Of particular importance for mandatory components (e.g. AZ core) as failure of a mandatory one causes all other updates to be aborted


reportProgress

void reportProgress(java.lang.String str)
report a progress string to registered listeners

Parameters:
str -

addListener

void addListener(UpdateCheckerListener l)

removeListener

void removeListener(UpdateCheckerListener l)

addProgressListener

void addProgressListener(UpdateProgressListener l)

removeProgressListener

void removeProgressListener(UpdateProgressListener l)