Interface UpdateManager

All Known Implementing Classes:
UpdateManagerImpl

public interface UpdateManager
  • Method Details

    • 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
    • hasPendingInstalls

      boolean hasPendingInstalls()
    • getInstallDir

      String getInstallDir()
    • getUserDir

      String getUserDir()
    • getInstallers

      UpdateInstaller[] getInstallers()
      returns the currently declared installers, if any
      Returns:
    • 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)