class DevSU3UpdateHandler extends java.lang.Object implements Checker, Updater
Handles the request to update the router by firing off an
EepGet
call to download the latest su3 file
and display the status.
After the download completes the su3 is verified, and the zip is extracted and copied to the router directory, and if configured the router is restarted to complete the update process.
コンストラクタ | 説明 |
---|---|
DevSU3UpdateHandler(RouterContext ctx,
ConsoleUpdateManager mgr) |
修飾子とタイプ | メソッド | 説明 |
---|---|---|
UpdateTask |
check(UpdateType type,
UpdateMethod method,
java.lang.String id,
java.lang.String currentVersion,
long maxTime) |
Check for updates.
|
java.util.List<java.net.URI> |
getUpdateSources() |
|
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.
|
public DevSU3UpdateHandler(RouterContext ctx, ConsoleUpdateManager mgr)
public java.util.List<java.net.URI> getUpdateSources()
public UpdateTask check(UpdateType type, UpdateMethod method, java.lang.String id, java.lang.String currentVersion, long maxTime)
Checker
public UpdateTask update(UpdateType type, UpdateMethod method, java.util.List<java.net.URI> updateSources, java.lang.String id, java.lang.String newVersion, long maxTime)