org.gudy.azureus2.plugins.update
Interface UpdateManager

All Known Implementing Classes:
UpdateManagerImpl

public interface UpdateManager

Author:
parg

Method Summary
 void addListener(UpdateManagerListener l)
           
 void addVerificationListener(UpdateManagerVerificationListener l)
           
 void applyUpdates(boolean restart_after)
          applies any updates and stops or restarts Azureus
 UpdateCheckInstance createEmptyUpdateCheckInstance(int check_type, String name)
          creates an update check instance with no attached updateable components (as opposed to automatically including all registered
 UpdateInstaller createInstaller()
          create a stand alone update installer.
 UpdateCheckInstance createUpdateCheckInstance()
          creates an update check instance with currently registered updatable components Default check type is "UCI_UPDATE"
 UpdateCheckInstance createUpdateCheckInstance(int check_type, String name)
          creates an update check instance with currently registered updatable components
 UpdateCheckInstance[] getCheckInstances()
           
 String getInstallDir()
           
 UpdateInstaller[] getInstallers()
          returns the currently declared installers, if any
 String getUserDir()
           
 void registerUpdatableComponent(UpdatableComponent component, boolean mandatory)
          All updateable components must register in order to receive update check events
 void removeListener(UpdateManagerListener l)
           
 void removeVerificationListener(UpdateManagerVerificationListener l)
           
 void restart()
          Deprecated. - use applyUpdates
 

Method Detail

registerUpdatableComponent

void registerUpdatableComponent(UpdatableComponent component,
                                boolean mandatory)
All updateable components must register in order to receive update check events

Parameters:
component -
mandatory - indicates that this component must successfully complete checking for any overall update check to complete

createUpdateCheckInstance

UpdateCheckInstance createUpdateCheckInstance()
creates an update check instance with currently registered updatable components Default check type is "UCI_UPDATE"

Returns:

createUpdateCheckInstance

UpdateCheckInstance createUpdateCheckInstance(int check_type,
                                              String name)
creates an update check instance with currently registered updatable components

Parameters:
check_type - see UpdateCheckInstance.UCI_xx
name - name of the update instance

createEmptyUpdateCheckInstance

UpdateCheckInstance createEmptyUpdateCheckInstance(int check_type,
                                                   String name)
creates an update check instance with no attached updateable components (as opposed to automatically including all registered

Parameters:
check_type - see UpdateCheckInstance.UCI_xx
name - name of the update instance
Returns:

getCheckInstances

UpdateCheckInstance[] getCheckInstances()

createInstaller

UpdateInstaller createInstaller()
                                throws UpdateException
create a stand alone update installer. you will need to restart Azureus for it to be installed

Returns:
Throws:
UpdateException

getInstallDir

String getInstallDir()

getUserDir

String getUserDir()

getInstallers

UpdateInstaller[] getInstallers()
returns the currently declared installers, if any

Returns:

restart

void restart()
             throws UpdateException
Deprecated. - use applyUpdates

restart azureus after applying any updates

Throws:
UpdateException

applyUpdates

void applyUpdates(boolean restart_after)
                  throws UpdateException
applies any updates and stops or restarts Azureus

Throws:
UpdateException

addVerificationListener

void addVerificationListener(UpdateManagerVerificationListener l)

removeVerificationListener

void removeVerificationListener(UpdateManagerVerificationListener l)

addListener

void addListener(UpdateManagerListener l)

removeListener

void removeListener(UpdateManagerListener l)