Packages that use UpdateTask
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 UpdateTask in net.i2p.router.update
Classes in net.i2p.router.update that implement UpdateTaskModifier and TypeClassDescription(package private) classCheck for an updated su3 version.(package private) classEepget the .su3 file to the temp dir, then notify.private static classUse for both check and update.(package private) classTask to fetch updates to the news.xml, and to keep track of whether that has an announcement for a new version.(package private) classCheck for an updated version of a plugin.(package private) classCheck for an updated version of a plugin.(package private) classDoes a simple EepHead to get the last-modified header.(package private) classEepget the .zip file to the temp dir, then notify.r Moved fromUnsignedUpdateHandlerand turned into an UpdateTask.(package private) classThe downloader for router signed updates, and the base class for all the other Checkers and Runners.Fields in net.i2p.router.update with type parameters of type UpdateTaskModifier and TypeFieldDescriptionprivate final Collection<UpdateTask> ConsoleUpdateManager._activeCheckersActive checking tasks.private final Map<UpdateTask, List<ConsoleUpdateManager.RegisteredUpdater>> ConsoleUpdateManager._downloadersActive updating tasks, pointing to the next ones to try.Methods in net.i2p.router.update that return UpdateTaskModifier and TypeMethodDescriptionDevSU3UpdateHandler.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.private UpdateTaskConsoleUpdateManager.retry(ConsoleUpdateManager.UpdateItem ui, Map<UpdateMethod, List<URI>> sourceMap, List<ConsoleUpdateManager.RegisteredUpdater> toTry, long maxTime) Schedules a retry of a failed update.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.Methods in net.i2p.router.update with parameters of type UpdateTaskModifier and TypeMethodDescriptionvoidConsoleUpdateManager.notifyAttemptFailed(UpdateTask task, String reason, Throwable t) Not necessarily the end if there are more URIs to try.voidConsoleUpdateManager.notifyCheckComplete(UpdateTask task, boolean newer, boolean success) Called by the Updater after check() was called and allConsoleUpdateManager.notifyVersionAvailable(UpdateTask, URI, UpdateType, String, UpdateMethod, List, String, String)callbacks are finished.voidConsoleUpdateManager.notifyComplete(UpdateTask task, String status) An expiring status.booleanConsoleUpdateManager.notifyComplete(UpdateTask task, String actualVersion, File file) An update has been downloaded but not verified.voidConsoleUpdateManager.notifyProgress(UpdateTask task, String status) May be null.voidConsoleUpdateManager.notifyProgress(UpdateTask task, String status, long downloaded, long totalSize) Publish the download status text and progress bar to the console.voidConsoleUpdateManager.notifyTaskFailed(UpdateTask task, String reason, Throwable t) The task has finished and failed.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.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.notifyVersionConstraint(UpdateTask task, URI newsSource, UpdateType type, String id, String newVersion, String message) A new version is available but cannot be downloaded or installed due to some constraint.Uses of UpdateTask in net.i2p.update
Methods in net.i2p.update that return UpdateTaskModifier and TypeMethodDescriptionChecker.check(UpdateType type, UpdateMethod method, String id, String currentVersion, long maxTime) Check for updates.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.Methods in net.i2p.update with parameters of type UpdateTaskModifier and TypeMethodDescriptionvoidUpdateManager.notifyAttemptFailed(UpdateTask task, String reason, Throwable t) Not necessarily the end if there are more URIs to try.voidUpdateManager.notifyCheckComplete(UpdateTask task, boolean newer, boolean success) Called by the Checker after check() was called and allUpdateManager.notifyVersionAvailable(UpdateTask, URI, UpdateType, String, UpdateMethod, List, String, String)callbacks are finished.booleanUpdateManager.notifyComplete(UpdateTask task, String actualVersion, File file) An update has been downloaded but not verified.voidUpdateManager.notifyProgress(UpdateTask task, String status) Notify of progress update.voidUpdateManager.notifyProgress(UpdateTask task, String status, long downloaded, long totalSize) Notify of progress update with size information.voidUpdateManager.notifyTaskFailed(UpdateTask task, String reason, Throwable t) The task has finished and failed.booleanUpdateManager.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.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.notifyVersionConstraint(UpdateTask task, URI newsSource, UpdateType type, String id, String newVersion, String message) A new version is available but cannot be downloaded or installed due to some constraint.Uses of UpdateTask in org.klomp.snark
Classes in org.klomp.snark that implement UpdateTaskModifier and TypeClassDescription(package private) classThe downloader for router signed updates.Methods in org.klomp.snark that return UpdateTaskModifier 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.