net.i2p.router.networkdb.kademlia
Class RefreshRoutersJob
java.lang.Object
net.i2p.router.JobImpl
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
Method Summary |
String |
getName()
Descriptive name of the task |
void |
runJob()
Actually perform the task. |
RefreshRoutersJob
public RefreshRoutersJob(RouterContext ctx,
FloodfillNetworkDatabaseFacade facade)
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.