Package net.i2p.router.update
Class UpdateHandler
java.lang.Object
net.i2p.router.update.UpdateHandler
- All Implemented Interfaces:
Updater
- Direct Known Subclasses:
NewsHandler
Handles the request to update the router by firing one or more
EepGet
calls to download the latest signed update file
and displaying the status to anyone who asks.
After the download completes the signed update file is verified with
TrustedUpdate
, and if it's authentic the payload
of the signed update file is unpacked and the router is restarted to complete
the update process.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final RouterContext
protected final ConsoleUpdateManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionupdate
(UpdateType type, UpdateMethod method, List<URI> updateSources, String id, String newVersion, long maxTime) Start a download and return a handle to the download task.
-
Field Details
-
_context
-
_mgr
-
-
Constructor Details
-
UpdateHandler
-
-
Method Details
-
update
public UpdateTask 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. Should not block.
-