Interface UpdateChecker

    • Method Detail

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

        void setFailed​(java.lang.Throwable cause)
        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
      • getFailed

        boolean getFailed()
      • getFailureReason

        java.lang.Throwable getFailureReason()
      • reportProgress

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