Packages that use UpdateMethod
Package
Description
Router-side update checking and installation: fetching update notifications, downloading and verifying updates, and staging them for the restart.
Update checking and installation interfaces: update types, version comparison, status reporting and the UpdateManager used by the router and the console to offer updates.
I2P version of the Snark BitTorrent client, enhanced for I2P: peers are I2P destinations, torrents can be served anonymously as hidden services, and metadata carries I2P-specific comment fields.
Uses of UpdateMethod in net.i2p.router.update
Fields in net.i2p.router.update declared as UpdateMethodModifier and TypeFieldDescriptionprotected final UpdateMethodUpdateRunner._methodUpdate method.final UpdateMethodConsoleUpdateManager.RegisteredChecker.methodThe update method this registration was made for.final UpdateMethodConsoleUpdateManager.RegisteredUpdater.methodThe update method this registration was made for.Fields in net.i2p.router.update with type parameters of type UpdateMethodModifier and TypeFieldDescriptionfinal ConcurrentHashMap<UpdateMethod, List<URI>> ConsoleUpdateManager.VersionAvailable.sourceMapWhere the update can be fetched from, keyed by update method.Methods in net.i2p.router.update that return UpdateMethodModifier and TypeMethodDescriptionDummyHandler.DummyRunner.getMethod()Always DUMMY.UpdateRunner.getMethod()Returns how the update is fetched, such as HTTP or torrent.Methods in net.i2p.router.update with parameters of type UpdateMethodModifier and TypeMethodDescriptionprivate voidNewsFetcher.addMethod(UpdateMethod method, String urls, Map<UpdateMethod, List<URI>> map) Parse URLs and add to the map.DevSU3UpdateHandler.check(UpdateType type, UpdateMethod method, String id, String currentVersion, long maxTime) Look for a dev SU3 update.DummyHandler.check(UpdateType type, UpdateMethod method, String id, String currentVersion, long maxTime) Spins off an UpdateTask that sleeps.NewsHandler.check(UpdateType type, UpdateMethod method, String id, String currentVersion, long maxTime) This will check for news or router updates (it does the same thing).PluginUpdateHandler.check(UpdateType type, UpdateMethod method, String appName, String currentVersion, long maxTime) Check a single plugin.UnsignedUpdateHandler.check(UpdateType type, UpdateMethod method, String id, String currentVersion, long maxTime) Offer a checker for the unsigned router zip, or nothing at all if this type or method is not the one being asked about, no source is configured, or no previous check time has been stamped yet.ConsoleUpdateManager.getUpdateURLs(UpdateType type, String id, UpdateMethod method) Where to find various resources.booleanConsoleUpdateManager.notifyVersionAvailable(UpdateTask task, URI newsSource, UpdateType type, String id, UpdateMethod method, List<URI> updateSources, String newVersion, String minVersion) Called by the Updater, either afterConsoleUpdateManager.check(UpdateType)was called, or it found out on its own.voidConsoleUpdateManager.register(Checker updater, UpdateType type, UpdateMethod method, int priority) Add the Checker to the set consulted for each update type and method.voidConsoleUpdateManager.register(Updater updater, UpdateType type, UpdateMethod method, int priority) Add the Updater to the set consulted for each update type and method.voidConsoleUpdateManager.unregister(Checker updater, UpdateType type, UpdateMethod method) Remove the Checker previously registered for the type and method.voidConsoleUpdateManager.unregister(Updater updater, UpdateType type, UpdateMethod method) Remove the Updater previously registered for the type and method.DevSU3UpdateHandler.update(UpdateType type, UpdateMethod method, List<URI> updateSources, String id, String newVersion, long maxTime) Start a download and return a handle to the download task.DummyHandler.update(UpdateType type, UpdateMethod method, List<URI> updateSources, String id, String newVersion, long maxTime) Spins off an UpdateTask that sleeps.PluginUpdateHandler.update(UpdateType type, UpdateMethod method, List<URI> updateSources, String appName, String newVersion, long maxTime) Download a single plugin.UnsignedUpdateHandler.update(UpdateType type, UpdateMethod method, List<URI> updateSources, String id, String newVersion, long maxTime) Start a download and return a handle to the download task.UpdateHandler.update(UpdateType type, UpdateMethod method, List<URI> updateSources, String id, String newVersion, long maxTime) Start a download and return a handle to the download task.Method parameters in net.i2p.router.update with type arguments of type UpdateMethodModifier and TypeMethodDescriptionprivate voidNewsFetcher.addMethod(UpdateMethod method, String urls, Map<UpdateMethod, List<URI>> map) Parse URLs and add to the map.booleanConsoleUpdateManager.notifyVersionAvailable(UpdateTask task, URI newsSource, UpdateType type, String id, Map<UpdateMethod, List<URI>> sourceMap, String newVersion, String minVersion) Called by the Checker, either after check() was called, or it found out on its own.private UpdateTaskConsoleUpdateManager.retry(ConsoleUpdateManager.UpdateItem ui, Map<UpdateMethod, List<URI>> sourceMap, List<ConsoleUpdateManager.RegisteredUpdater> toTry, long maxTime) Schedules a retry of a failed update.Constructors in net.i2p.router.update with parameters of type UpdateMethodModifierConstructorDescriptionRegisteredChecker(Checker u, UpdateType t, UpdateMethod m, int priority) Record a Checker for the given type, method and priority.RegisteredUpdater(Updater u, UpdateType t, UpdateMethod m, int priority) Record an Updater for the given type, method and priority.UpdateRunner(RouterContext ctx, ConsoleUpdateManager mgr, UpdateType type, UpdateMethod method, List<URI> uris) Uses router version for partial checks.UpdateRunner(RouterContext ctx, ConsoleUpdateManager mgr, UpdateType type, UpdateMethod method, List<URI> uris, String currentVersion) Full constructor.VersionAvailable(String version, String min, UpdateMethod method, List<URI> updateSources) Puts the method and sources in the map.Uses of UpdateMethod in net.i2p.update
Subclasses with type arguments of type UpdateMethod in net.i2p.updateMethods in net.i2p.update that return UpdateMethodModifier and TypeMethodDescriptionUpdateTask.getMethod()Get the update method.static UpdateMethodReturns the enum constant of this class with the specified name.static UpdateMethod[]UpdateMethod.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in net.i2p.update with parameters of type UpdateMethodModifier and TypeMethodDescriptionChecker.check(UpdateType type, UpdateMethod method, String id, String currentVersion, long maxTime) Check for updates.booleanUpdateManager.notifyVersionAvailable(UpdateTask task, URI newsSource, UpdateType type, String id, UpdateMethod method, List<URI> updateSources, String newVersion, String minVersion) Called by the Checker, either after check() was called, or it found out on its own.voidUpdateManager.register(Checker checker, UpdateType type, UpdateMethod method, int priority) Register a checker for updates.voidUpdateManager.register(Updater updater, UpdateType type, UpdateMethod method, int priority) Call once for each type/method pair.voidUpdateManager.unregister(Checker checker, UpdateType type, UpdateMethod method) Unregister a checker.voidUpdateManager.unregister(Updater updater, UpdateType type, UpdateMethod method) Unregister an updater.Updater.update(UpdateType type, UpdateMethod method, List<URI> updateSources, String id, String newVersion, long maxTime) Start a download and return a handle to the download task.Method parameters in net.i2p.update with type arguments of type UpdateMethodModifier and TypeMethodDescriptionbooleanUpdateManager.notifyVersionAvailable(UpdateTask task, URI newsSource, UpdateType type, String id, Map<UpdateMethod, List<URI>> sourceMap, String newVersion, String minVersion) Called by the Checker, either after check() was called, or it found out on its own.Uses of UpdateMethod in org.klomp.snark
Methods in org.klomp.snark that return UpdateMethodMethods in org.klomp.snark with parameters of type UpdateMethodModifier and TypeMethodDescriptionUpdateHandler.update(UpdateType type, UpdateMethod method, List<URI> updateSources, String id, String newVersion, long maxTime) Start a download and return a handle to the download task.