Package net.i2p.router.networkdb.reseed
Class ReseedBundler
- java.lang.Object
-
- net.i2p.router.networkdb.reseed.ReseedBundler
-
public 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, moved from routerconsole to net.i2p.router.networkdb.reseed in 0.9.34
-
-
Constructor Summary
Constructors Constructor Description ReseedBundler(RouterContext ctx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description File
createZip(int count)
Create a zip file with a random selection of 'count' router infos from configDir/netDb to 'toDir'.
-
-
-
Constructor Detail
-
ReseedBundler
public ReseedBundler(RouterContext ctx)
-
-
Method Detail
-
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
-
-