net.i2p.router.update
Class DummyHandler
java.lang.Object
net.i2p.router.update.DummyHandler
- All Implemented Interfaces:
- Checker, Updater
class DummyHandler
- extends Object
- implements Checker, Updater
Dummy to lock up the updates for a period of time
- Since:
- 0.9.4
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DummyHandler
public DummyHandler(RouterContext ctx,
ConsoleUpdateManager mgr)
check
public UpdateTask check(UpdateType type,
UpdateMethod method,
String id,
String currentVersion,
long maxTime)
- Spins off an UpdateTask that sleeps
- Specified by:
check
in interface Checker
id
- plugin name or ignoredmaxTime
- how long you have
- Returns:
- active task or null if unable to check
update
public UpdateTask update(UpdateType type,
UpdateMethod method,
List<URI> updateSources,
String id,
String newVersion,
long maxTime)
- Spins off an UpdateTask that sleeps
- Specified by:
update
in interface Updater
id
- plugin name or ignoredmaxTime
- how long you have
- Returns:
- active task or null if unable to download