org.klomp.snark.dht

## Class PersistDHT

- java.lang.Object
- - org.klomp.snark.dht.PersistDHT

-     abstract class PersistDHT
      extends Object

  Retrieve / Store the local DHT in a file

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `PersistDHT()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static void` | `loadDHT(KRPC krpc, File file)`
    `static void` | `loadDHT(KRPC krpc, File file, File backupFile)`
    `static void` | `saveDHT(DHTNodes nodes, boolean saveAll, File file)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### PersistDHT

          PersistDHT()

  - ### Method Detail

    - #### loadDHT

          public static void loadDHT(KRPC krpc,
                                     File file)

    - #### loadDHT

          public static void loadDHT(KRPC krpc,
                                     File file,
                                     File backupFile)

      Parameters:
        `backupFile` - may be null

    - #### saveDHT

          public static void saveDHT(DHTNodes nodes,
                                     boolean saveAll,
                                     File file)

      Parameters:
        `saveAll` - if true, don't check last seen time