Class DownloadManagerFactory


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

      • DownloadManagerFactory

        public DownloadManagerFactory()
    • Method Detail

      • create

        public static DownloadManager create​(GlobalManager gm,
                                             byte[] torrent_hash,
                                             java.lang.String torrentFileName,
                                             java.lang.String savePath,
                                             java.lang.String saveFile,
                                             int initialState,
                                             boolean persistent,
                                             boolean for_seeding,
                                             java.util.List file_priorities,
                                             DownloadManagerInitialisationAdapter adapter)
      • create

        public static DownloadManager create​(GlobalManager gm,
                                             byte[] torrent_hash,
                                             java.lang.String torrentFileName,
                                             java.lang.String torrent_save_dir,
                                             java.lang.String torrent_save_file,
                                             int initialState,
                                             boolean persistent,
                                             boolean recovered,
                                             boolean has_ever_been_started,
                                             java.util.List file_priorities)
      • getAvailability

        public static DownloadManagerAvailability getAvailability​(TOTorrent torrent,
                                                                  java.util.List<java.util.List<java.lang.String>> updated_trackers,
                                                                  java.lang.String[] enabled_peer_sources,
                                                                  java.lang.String[] enabled_networks)
      • removeGlobalDownloadListener

        public static void removeGlobalDownloadListener​(DownloadManagerListener listener)