net.i2p.router.web
Class ReseedBundler
java.lang.Object
net.i2p.router.web.ReseedBundler
class ReseedBundler
- extends Object
Copy a random selection of 'count' router infos from configDir/netDb
to 'toDir'. Skip your own router info, and old, hidden, unreachable, and
introduced routers, and those from bad countries.
Much easier than the one in installer/tools since we have a running router.
Caller must delete file when done.
- Since:
- 0.9.19 modified from BundleRouterInfos in installer/tools
Method Summary |
File |
createZip(int count)
Create a zip file with
a random selection of 'count' router infos from configDir/netDb
to 'toDir'. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReseedBundler
public ReseedBundler(RouterContext ctx)
createZip
public File createZip(int count)
throws IOException
- Create a zip file with
a random selection of 'count' router infos from configDir/netDb
to 'toDir'. Skip your own router info, and old, hidden, unreachable, and
introduced routers, and those from bad countries.
The file will be in the temp directory. Caller must move or delete.
- Throws:
IOException