org.gudy.azureus2.core3.download
Class DownloadManagerFactory

java.lang.Object
  extended by org.gudy.azureus2.core3.download.DownloadManagerFactory

public class DownloadManagerFactory
extends Object


Constructor Summary
DownloadManagerFactory()
           
 
Method Summary
static void addGlobalDownloadListener(DownloadManagerListener listener)
           
static DownloadManager create(GlobalManager gm, byte[] torrent_hash, String torrentFileName, String torrent_save_dir, String torrent_save_file, int initialState, boolean persistent, boolean recovered, boolean has_ever_been_started, List file_priorities)
           
static DownloadManager create(GlobalManager gm, byte[] torrent_hash, String torrentFileName, String savePath, String saveFile, int initialState, boolean persistent, boolean for_seeding, List file_priorities, DownloadManagerInitialisationAdapter adapter)
           
static DownloadManagerAvailability getAvailability(TOTorrent torrent, List<List<String>> updated_trackers, String[] enabled_peer_sources, String[] enabled_networks)
           
static void removeGlobalDownloadListener(DownloadManagerListener listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DownloadManagerFactory

public DownloadManagerFactory()
Method Detail

create

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

create

public static DownloadManager create(GlobalManager gm,
                                     byte[] torrent_hash,
                                     String torrentFileName,
                                     String torrent_save_dir,
                                     String torrent_save_file,
                                     int initialState,
                                     boolean persistent,
                                     boolean recovered,
                                     boolean has_ever_been_started,
                                     List file_priorities)

getAvailability

public static DownloadManagerAvailability getAvailability(TOTorrent torrent,
                                                          List<List<String>> updated_trackers,
                                                          String[] enabled_peer_sources,
                                                          String[] enabled_networks)

addGlobalDownloadListener

public static void addGlobalDownloadListener(DownloadManagerListener listener)

removeGlobalDownloadListener

public static void removeGlobalDownloadListener(DownloadManagerListener listener)