Interface UpdateChecker

All Known Implementing Classes:
UpdateCheckerImpl

public interface UpdateChecker
  • Method Details

    • getComponent

      UpdatableComponent getComponent()
    • getCheckInstance

      UpdateCheckInstance getCheckInstance()
    • addUpdate

      Update addUpdate(String name, String[] description, String old_version, 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(String name, String[] description, String old_version, 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(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

      Throwable getFailureReason()
    • reportProgress

      void reportProgress(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)