net.i2p.router.update
Class DummyHandler

java.lang.Object
  extended by 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

Constructor Summary
DummyHandler(RouterContext ctx, ConsoleUpdateManager mgr)
           
 
Method Summary
 UpdateTask check(UpdateType type, UpdateMethod method, String id, String currentVersion, long maxTime)
          Spins off an UpdateTask that sleeps
 UpdateTask update(UpdateType type, UpdateMethod method, List<URI> updateSources, String id, String newVersion, long maxTime)
          Spins off an UpdateTask that sleeps
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DummyHandler

public DummyHandler(RouterContext ctx,
                    ConsoleUpdateManager mgr)
Method Detail

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 ignored
maxTime - 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 ignored
maxTime - how long you have
Returns:
active task or null if unable to download