Methods Summary |
---|
public void | addDownload(java.io.File torrent_file)Add a torrent from a file. This may prompt the user for a download location etc. if required.
This is an async operation, so no Download is returned.
If you want to force a download to be added without prompting the user, you should create a
Torrent object first, and then use an alternative addDownload method.
|
public void | addDownload(java.net.URL url)add a torrent from a URL. This will prompt the user for download location etc. if required
This is an async operation so no Download returned
|
public void | addDownload(java.net.URL url, boolean auto_download)Add a torrent from a URL with explicit auto-download option
|
public void | addDownload(java.net.URL url, java.net.URL referer)add a torrent from a URL. This will prompt the user for download location etc. if required
This is an async operation so no Download returned
|
public Download | addDownload(org.gudy.azureus2.plugins.torrent.Torrent torrent)Add a torrent from a "Torrent" object. The default torrent file and data locations will be
used if defined - a DownloadException will be thrown if they're not. You can explicitly set
these values by using the {@link #addDownload(Torrent, File, File) addDownload(Torrent, File, File)} method.
|
public Download | addDownload(org.gudy.azureus2.plugins.torrent.Torrent torrent, java.io.File torrent_location, java.io.File data_location)Add a torrent from a "Torrent" object and point it at the data location.
The torrent_location should be the location of where the torrent file is on disk.
This will be the torrent file that Azureus will use internally. If null is passed,
then a file to store the torrent data in will be automatically created by Azureus.
|
public Download | addDownloadStopped(org.gudy.azureus2.plugins.torrent.Torrent torrent, java.io.File torrent_location, java.io.File data_location)Explicit way of adding a download in a stopped state
|
public void | addDownloadWillBeAddedListener(DownloadWillBeAddedListener listener)
|
public void | addListener(DownloadManagerListener l)Add a listener that will be informed when a download is added to and removed
from Azureus.
Invoking this method is equivalent to addListener(l, true) .
|
public void | addListener(DownloadManagerListener l, boolean notify_of_current_downloads)Add a listener that will be informed when a download is added to and removed
from Azureus.
|
public Download | addNonPersistentDownload(org.gudy.azureus2.plugins.torrent.Torrent torrent, java.io.File torrent_location, java.io.File data_location)Add a non-persistent download. Such downloads are not persisted by Azureus and as such will
not be remembered across an Azureus close and restart.
|
public boolean | canPauseDownloads()
|
public boolean | canResumeDownloads()
|
public Download | getDownload(byte[] hash)Gets a download given its hash
|
public Download | getDownload(org.gudy.azureus2.plugins.torrent.Torrent torrent)Gets the download for a particular torrent, returns null if not found
|
public Download[] | getDownloads()Gets all the downloads. Returned in Download "index" order
|
public Download[] | getDownloads(boolean bSorted)Gets all the downloads.
|
public DownloadEventNotifier | getGlobalDownloadEventNotifier()Return a {@link DownloadEventNotifier} object which can be used as
an easy way to register listeners against all downloads handled by
Azureus.
|
public DownloadManagerStats | getStats()Get the download manager statistics
|
public boolean | isSeedingOnly()indicates whether or not all active downloads are in a seeding (or effective) seeding state
|
public void | pauseDownloads()pause all running downloads
|
public void | removeDownloadWillBeAddedListener(DownloadWillBeAddedListener listener)
|
public void | removeListener(DownloadManagerListener l, boolean notify_of_current_downloads)Removes a previously added listener.
|
public void | removeListener(DownloadManagerListener l)Removes a previously added listener.
Invoking this method is equivalent to removeListener(l, false) .
|
public void | resumeDownloads()resume previously paused downloads
|
public void | startAllDownloads()starts all non-running downloads
|
public void | stopAllDownloads()stops all running downloads
|