|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.router.update.DevSU3UpdateHandler
class DevSU3UpdateHandler
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.
Constructor Summary | |
---|---|
DevSU3UpdateHandler(RouterContext ctx,
ConsoleUpdateManager mgr)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DevSU3UpdateHandler(RouterContext ctx, ConsoleUpdateManager mgr)
Method Detail |
---|
public List<URI> getUpdateSources()
public UpdateTask check(UpdateType type, UpdateMethod method, String id, String currentVersion, long maxTime)
Checker
check
in interface Checker
currentVersion
- ignored, we use current router versionid
- plugin name or ignoredmaxTime
- how long you have
public UpdateTask update(UpdateType type, UpdateMethod method, List<URI> updateSources, String id, String newVersion, long maxTime)
update
in interface Updater
id
- plugin name or ignoredmaxTime
- how long you have
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |