Class PersistDHT


  • abstract class PersistDHT
    extends Object
    Retrieve / Store the local DHT in a file
    Since:
    0.9.2
    • Constructor Detail

      • PersistDHT

        PersistDHT()
    • Method Detail

      • loadDHT

        public static void loadDHT​(KRPC krpc,
                                   File file,
                                   File backupFile)
        Parameters:
        backupFile - may be null
        Since:
        0.9.6
      • loadDHT

        public static void loadDHT​(KRPC krpc,
                                   File file)
      • saveDHT

        public static void saveDHT​(DHTNodes nodes,
                                   boolean saveAll,
                                   File file)
        Parameters:
        saveAll - if true, don't check last seen time