Interface UpdateManager

    • 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,
                                                      java.lang.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,
                                                           java.lang.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:
      • hasPendingInstalls

        boolean hasPendingInstalls()
      • getInstallDir

        java.lang.String getInstallDir()
      • getUserDir

        java.lang.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