Updater
NewsHandler
class UpdateHandler extends java.lang.Object implements Updater
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.
修飾子とタイプ | フィールド | 説明 |
---|---|---|
protected RouterContext |
_context |
|
protected ConsoleUpdateManager |
_mgr |
コンストラクタ | 説明 |
---|---|
UpdateHandler(RouterContext ctx,
ConsoleUpdateManager mgr) |
修飾子とタイプ | メソッド | 説明 |
---|---|---|
UpdateTask |
update(UpdateType type,
UpdateMethod method,
java.util.List<java.net.URI> updateSources,
java.lang.String id,
java.lang.String newVersion,
long maxTime) |
Start a download and return a handle to the download task.
|
protected final RouterContext _context
protected final ConsoleUpdateManager _mgr
public UpdateHandler(RouterContext ctx, ConsoleUpdateManager mgr)
public UpdateTask update(UpdateType type, UpdateMethod method, java.util.List<java.net.URI> updateSources, java.lang.String id, java.lang.String newVersion, long maxTime)