java.lang.Object
net.i2p.router.JobImpl
net.i2p.router.startup.RebuildRouterInfoJob
- All Implemented Interfaces:
Job
This used be called from
StartAcceptingClientsJob but is now disabled. It is still called once from LoadRouterInfoJob (but not run as a Job). The following comments appear to be incorrect... it rebuilds if the router.info file does not exist. There is no check for a router.info.rebuild file.
If the file router.info.rebuild exists, rebuild the router info and republish. This is useful for dhcp or other situations where the router addresses change - simply create the router.info.rebuild file after modifying router.config and within 45 seconds (the current check frequency), the router info will be rebuilt with new addresses and stats, as well as a new version, then republished. Afterwards, the router.info.rebuild file is deleted.
Field Summary
Constructor Summary
ConstructorsMethod Summary
Public MethodsModifier and TypeMethodDescriptiongetName()Name of this job.(package private) voidRebuild with default settings.(package private) voidrebuildRouterInfo(boolean alreadyRunning) Rebuild the router info and keys.voidrunJob()Not used; rebuilding is now triggered from LoadRouterInfoJob.Methods inherited from class JobImpl
dropped, getContext, getJobId, getMadeReadyOn, getTiming, madeReady, requeue, toStringModifier and TypeMethodDescriptionvoiddropped()Default implementation does nothing.final RouterContextThe router context that this job belongs to.longgetJobId()The unique job ID for this job.longThe timestamp when this job was last made ready for execution.The timing object for this job.voidmadeReady(long now) For JobQueue only, not for external use.protected voidrequeue(long delayMs) Requeue this job to run after the specified delay.toString()
Field Details
_log
Logger for this class.
Constructor Details
RebuildRouterInfoJob
Creates the job and opens its log.- Parameters:
context- router context, handed to the JobImpl superclass and used for the log
Method Details
getName
Name of this job.- Returns:
- the fixed descriptive name
"Rebuild RouterInfo"of this job
runJob
public void runJob()Not used; rebuilding is now triggered from LoadRouterInfoJob.rebuildRouterInfo
void rebuildRouterInfo()Rebuild with default settings.rebuildRouterInfo
void rebuildRouterInfo(boolean alreadyRunning) Rebuild the router info and keys.- Parameters:
alreadyRunning- carried along on the recursive retries but never read