Package net.i2p.router.update
Class DevSU3UpdateHandler
- java.lang.Object
- 
- net.i2p.router.update.DevSU3UpdateHandler
 
- 
 class DevSU3UpdateHandler extends Object implements Checker, Updater Handles the request to update the router by firing off an EepGetcall 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. - Since:
- 0.9.20
 
- 
- 
Constructor SummaryConstructors Constructor Description DevSU3UpdateHandler(RouterContext ctx, ConsoleUpdateManager mgr)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateTaskcheck(UpdateType type, UpdateMethod method, String id, String currentVersion, long maxTime)Check for updates.List<URI>getUpdateSources()UpdateTaskupdate(UpdateType type, UpdateMethod method, List<URI> updateSources, String id, String newVersion, long maxTime)Start a download and return a handle to the download task.
 
- 
- 
- 
Constructor Detail- 
DevSU3UpdateHandlerpublic DevSU3UpdateHandler(RouterContext ctx, ConsoleUpdateManager mgr) 
 
- 
 - 
Method Detail- 
checkpublic UpdateTask check(UpdateType type, UpdateMethod method, String id, String currentVersion, long maxTime) Description copied from interface:CheckerCheck for updates. Should not block. If any are found, call back to UpdateManager.notifyUpdateAvailable().
 - 
updatepublic 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.
 
- 
 
-