net.i2p.router.networkdb.kademlia
Class RefreshRoutersJob

java.lang.Object
  extended by net.i2p.router.JobImpl
      extended by net.i2p.router.networkdb.kademlia.RefreshRoutersJob
All Implemented Interfaces:
Job

 class RefreshRoutersJob
extends JobImpl

Go through all the routers once, after startup, and refetch their router infos. This should be run once after startup (and preferably after any reseed is complete, but we don't have any indication when that is). This will help routers that start after being shutdown for many days or weeks, as well as newly-reseeded routers, since validate() in KNDF doesn't start failing and refetching until the router has been up for an hour. To improve integration even more, we fetch the floodfills first. Ideally this should complete within the first half-hour of uptime.

Since:
0.8.8

Constructor Summary
RefreshRoutersJob(RouterContext ctx, FloodfillNetworkDatabaseFacade facade)
           
 
Method Summary
 String getName()
          Descriptive name of the task
 void runJob()
          Actually perform the task.
 
Methods inherited from class net.i2p.router.JobImpl
dropped, getAddedBy, getContext, getJobId, getMadeReadyOn, getTiming, madeReady, requeue, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RefreshRoutersJob

public RefreshRoutersJob(RouterContext ctx,
                         FloodfillNetworkDatabaseFacade facade)
Method Detail

getName

public String getName()
Description copied from interface: Job
Descriptive name of the task


runJob

public void runJob()
Description copied from interface: Job
Actually perform the task. This call blocks until the Job is complete.