java.lang.Object
net.i2p.router.update.ConsoleUpdateManager.Version
net.i2p.router.update.ConsoleUpdateManager.VersionAvailable
All Implemented Interfaces:
Comparable<ConsoleUpdateManager.Version>
Enclosing class:
ConsoleUpdateManager

static class ConsoleUpdateManager.VersionAvailableextends ConsoleUpdateManager.Version
An update that exists upstream, with its download sources per method and an optional reason it cannot currently be fetched.
  • Field Details

    • minVersion

      public final String minVersion
      The oldest installed version that can update to this one.
    • sourceMap

      public final ConcurrentHashMap<UpdateMethod, List<URI>> sourceMap
      Where the update can be fetched from, keyed by update method.
    • constraint

      public volatile String constraint
      Why the update cannot be downloaded, or null when it can.
  • Constructor Details

    • VersionAvailable

      public VersionAvailable(String version, String min, UpdateMethod method, List<URI> updateSources)
      Puts the method and sources in the map. The map may be added to later.
      Parameters:
      version - the available version string
      min - the minimum compatible version, or empty for none
      method - the update method these sources belong to
      updateSources - where the update can be fetched from
    • VersionAvailable

      public VersionAvailable(String version, String constraint)
      Available but can't be downloaded due to constraint.
      Parameters:
      version - the available version string
      constraint - why it cannot be downloaded, shown to the user
  • Method Details