Class DiskManagerFactory


  • public class DiskManagerFactory
    extends java.lang.Object
    • Constructor Detail

      • DiskManagerFactory

        public DiskManagerFactory()
    • Method Detail

      • initialise

        public static void initialise​(Core core)
      • setResumeDataCompletelyValid

        public static void setResumeDataCompletelyValid​(DownloadManagerState download_manager_state)
        Method to preset resume data to indicate completely valid file. Doesn't save the torrent
        Parameters:
        torrent -
      • setTorrentResumeDataNearlyComplete

        public static void setTorrentResumeDataNearlyComplete​(DownloadManagerState dms)
        Sets resume data complete apart from a few random pieces. On torrent start these will be checked This is used in the "open for seeding" mode to ensure that there's at least a chance that the data they claim represents the data for the torrent is valid
        Parameters:
        torrent -
        torrent_save_dir -
        torrent_save_file -
      • isTorrentResumeDataComplete

        public static boolean isTorrentResumeDataComplete​(DownloadManagerState dms)
      • deleteDataFiles

        public static void deleteDataFiles​(TOTorrent torrent,
                                           java.lang.String torrent_save_dir,
                                           java.lang.String torrent_save_file,
                                           boolean force_no_recycle)