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.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ReseedBundler(RouterContext ctx)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `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`

- - ### 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`