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
-
-
Constructor Summary
Constructors Constructor Description RefreshRoutersJob(RouterContext ctx, FloodfillNetworkDatabaseFacade facade)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
Descriptive name of the taskvoid
runJob()
Actually perform the task.-
Methods inherited from class net.i2p.router.JobImpl
dropped, getAddedBy, getContext, getJobId, getMadeReadyOn, getTiming, madeReady, requeue, toString
-
-
-
-
Constructor Detail
-
RefreshRoutersJob
public RefreshRoutersJob(RouterContext ctx, FloodfillNetworkDatabaseFacade facade)
-
-