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
-
Field Summary
Fields Modifier and Type Field Description (package private) static String
PROP_RERUN_DELAY_MS
(package private) static String
PROP_ROUTER_FRESHNESS
(package private) static String
PROP_ROUTER_REFRESH_TIMEOUT
-
Constructor Summary
Constructors Constructor Description RefreshRoutersJob(RouterContext ctx, FloodfillNetworkDatabaseFacade facade)
-
Method Summary
Methods inherited from class net.i2p.router.JobImpl
dropped, getAddedBy, getContext, getJobId, getMadeReadyOn, getTiming, madeReady, requeue, toString
-
Field Details
-
PROP_RERUN_DELAY_MS
- See Also:
- Constant Field Values
-
PROP_ROUTER_FRESHNESS
- See Also:
- Constant Field Values
-
PROP_ROUTER_REFRESH_TIMEOUT
- See Also:
- Constant Field Values
-
-
Constructor Details
-
Method Details