class UnsignedUpdateHandler extends Object implements Checker, Updater
Handles the request to update the router by firing off an
EepGet
call to download the latest unsigned zip file
and displaying the status to anyone who asks.
After the download completes the signed update file is copied to the router directory, and if configured the router is restarted to complete the update process.
Constructor and Description |
---|
UnsignedUpdateHandler(RouterContext ctx,
ConsoleUpdateManager mgr) |
Modifier and Type | Method and Description |
---|---|
UpdateTask |
check(UpdateType type,
UpdateMethod method,
String id,
String currentVersion,
long maxTime)
Check for updates.
|
List<URI> |
getUpdateSources() |
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.
|
public UnsignedUpdateHandler(RouterContext ctx, ConsoleUpdateManager mgr)
public UpdateTask check(UpdateType type, UpdateMethod method, String id, String currentVersion, long maxTime)
Checker
public UpdateTask update(UpdateType type, UpdateMethod method, List<URI> updateSources, String id, String newVersion, long maxTime)