Uses of Interface
net.i2p.update.UpdateTask
Package
Description
Classes to implement the update process.
Interfaces for classes to assist in the update process without
needing the router context.
I2P version of the snark bittorrent client, imported in 2005 and heavily enhanced
to add a web UI, DHT support, and other features.
-
Uses of UpdateTask in net.i2p.router.update
Modifier and TypeClassDescription(package private) class
Check for an updated su3 version.(package private) class
Eepget the .su3 file to the temp dir, then notify.(package private) class
Task to fetch updates to the news.xml, and to keep track of whether that has an announcement for a new version.(package private) class
Check for an updated version of a plugin.(package private) class
Check for an updated version of a plugin.(package private) class
Does a simple EepHead to get the last-modified header.(package private) class
Eepget the .zip file to the temp dir, then notify.r Moved from UnsignedUpdateHandler and turned into an UpdateTask.(package private) class
The downloader for router signed updates, and the base class for all the other Checkers and Runners.Modifier and TypeMethodDescriptionDevSU3UpdateHandler.check
(UpdateType type, UpdateMethod method, String id, String currentVersion, long maxTime) DummyHandler.check
(UpdateType type, UpdateMethod method, String id, String currentVersion, long maxTime) Spins off an UpdateTask that sleepsNewsHandler.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 pluginUnsignedUpdateHandler.check
(UpdateType type, UpdateMethod method, String id, String currentVersion, long maxTime) 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 sleepsPluginUpdateHandler.update
(UpdateType type, UpdateMethod method, List<URI> updateSources, String appName, String newVersion, long maxTime) download a single pluginUnsignedUpdateHandler.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.Modifier and TypeMethodDescriptionvoid
ConsoleUpdateManager.notifyAttemptFailed
(UpdateTask task, String reason, Throwable t) Not necessarily the end if there are more URIs to try.void
ConsoleUpdateManager.notifyCheckComplete
(UpdateTask task, boolean newer, boolean success) Called by the Updater after check() was called and all notifyVersionAvailable() callbacks are finishedvoid
ConsoleUpdateManager.notifyComplete
(UpdateTask task, String status) An expiring statusboolean
ConsoleUpdateManager.notifyComplete
(UpdateTask task, String actualVersion, File file) An update has been downloaded but not verified.void
ConsoleUpdateManager.notifyProgress
(UpdateTask task, String status) void
ConsoleUpdateManager.notifyProgress
(UpdateTask task, String status, long downloaded, long totalSize) void
ConsoleUpdateManager.notifyTaskFailed
(UpdateTask task, String reason, Throwable t) The task has finished and failed.boolean
ConsoleUpdateManager.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.boolean
ConsoleUpdateManager.notifyVersionAvailable
(UpdateTask task, URI newsSource, UpdateType type, String id, UpdateMethod method, List<URI> updateSources, String newVersion, String minVersion) Called by the Updater, either after check() was called, or it found out on its own.void
ConsoleUpdateManager.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
Modifier 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.Modifier and TypeMethodDescriptionvoid
UpdateManager.notifyAttemptFailed
(UpdateTask task, String reason, Throwable t) Not necessarily the end if there are more URIs to try.void
UpdateManager.notifyCheckComplete
(UpdateTask task, boolean newer, boolean success) Called by the Checker after check() was called and all notifyVersionAvailable() callbacks are finishedboolean
UpdateManager.notifyComplete
(UpdateTask task, String actualVersion, File file) An update has been downloaded but not verified.void
UpdateManager.notifyProgress
(UpdateTask task, String status) void
UpdateManager.notifyProgress
(UpdateTask task, String status, long downloaded, long totalSize) void
UpdateManager.notifyTaskFailed
(UpdateTask task, String reason, Throwable t) The task has finished and failed.boolean
UpdateManager.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.boolean
UpdateManager.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.void
UpdateManager.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
Modifier and TypeClassDescription(package private) class
The downloader for router signed updates.Modifier 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.