net.i2p.router.startup
Class RebuildRouterInfoJob
java.lang.Object
net.i2p.router.JobImpl
net.i2p.router.startup.RebuildRouterInfoJob
- All Implemented Interfaces:
- Job
public class RebuildRouterInfoJob
- extends JobImpl
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RebuildRouterInfoJob
public RebuildRouterInfoJob(RouterContext context)
getName
public java.lang.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.
rebuildRouterInfo
void rebuildRouterInfo()
rebuildRouterInfo
void rebuildRouterInfo(boolean alreadyRunning)