Methods Summary |
---|
public DownloadManager | addDownloadManager(java.lang.String file_name, java.lang.String save_path)Create and add a Download Manager to the global list
|
public DownloadManager | addDownloadManager(java.lang.String fileName, byte[] optionalHash, java.lang.String savePath, int initialState, boolean persistent)Create and add a Download Manager to the global list
|
public DownloadManager | addDownloadManager(java.lang.String fileName, byte[] optionalHash, java.lang.String savePath, int initialState, boolean persistent, boolean for_seeding, DownloadManagerInitialisationAdapter adapter)Create and add a Download Manager to the global list
|
public void | addDownloadManagerInitialisationAdapter(DownloadManagerInitialisationAdapter adapter)Any adapters added will get a chance to see/set the initial state of downloads as they are
added
|
public void | addDownloadWillBeRemovedListener(GlobalManagerDownloadWillBeRemovedListener l)Add a listener triggered when Download is about to be removed
|
public void | addListener(GlobalManagerListener l)Add a Global Manager listener
|
public void | addListener(GlobalManagerListener listener, boolean trigger)
|
public void | canDownloadManagerBeRemoved(DownloadManager dm, boolean remove_torrent, boolean remove_data)Determines whether a DownloadManager can be removed
|
public boolean | canPauseDownloads()Indicates whether or not there are any downloads that can be paused.
|
public boolean | canResumeDownloads()Indicates whether or not there are any paused downloads to resume.
|
public int | downloadManagerCount(boolean bCompleted)Retrieve the number of download managers the global manager is managing.
|
public void | fixUpDownloadManagerPositions()Verifies the positions of the DownloadManagers,
filling in gaps and shifting duplicate IDs down if necessary.
This does not need to be called after MoveXXX, addDownloadManager, or
removeDownloadManager functions.
|
public DownloadManager | getDownloadManager(org.gudy.azureus2.core3.torrent.TOTorrent torrent)Retrieve the DownloadManager associated with a TOTorrent object
|
public DownloadManager | getDownloadManager(org.gudy.azureus2.core3.util.HashWrapper hash)Retrieve the DownloadManager associated with a hash
|
public java.util.List | getDownloadManagers()Retrieve a list of {@link DownloadManager}s that GlobalManager is handling
|
public int | getIndexOf(DownloadManager dm)Retrieve the index of a DownloadManager within the GlobalManager
list retrieved via {@link #getDownloadManagers()}.
This is NOT the DownloadManager's position
|
public int | getNATStatus()See plugin ConnectionManager.NAT_ constants for return values
|
public GlobalManagerStats | getStats()Retrieve the Global Manager Statistics class
|
public TRTrackerScraper | getTrackerScraper()Retrieve the Tracker Scraper management class
|
public boolean | isMoveableDown(DownloadManager dm)Retrieve whether a DownloadManager can move down in the GlobalManager list
|
public boolean | isMoveableUp(DownloadManager dm)Retrieve whether a DownloadManager can move up in the GlobalManager list
|
public boolean | isPaused(DownloadManager dm)Retrieve whether a DownloadManager is in a paused state
|
public boolean | isSeedingOnly()Determines whether we are only seeding, and not currently downloading
anything.
|
public void | loadExistingTorrentsNow(boolean async)
|
public void | moveDown(DownloadManager dm)Move one DownloadManager down in the GlobalManager's list
|
public void | moveEnd(DownloadManager[] dm)Move a list of DownloadManagers to the end of the GlobalManager list
|
public void | moveTo(DownloadManager manager, int newPosition)Move a Downloadmanager to a new position.
|
public void | moveTop(DownloadManager[] dm)Move a list of DownloadManagers to the top of the GlobalManager list
|
public void | moveUp(DownloadManager dm)Move one DownloadManager up in the GlobalManager's list
|
public boolean | pauseDownload(DownloadManager dm)Pause one DownloadManager
|
public void | pauseDownloads()Pauses (stops) all running downloads/seedings.
|
public void | removeDownloadManager(DownloadManager dm)Removes a DownloadManager from the global list, providing it can be
removed (see {@link #canDownloadManagerBeRemoved(DownloadManager)})
The DownloadManager will not be stopped if it is running. Scraping,
however, will be turned off.
|
public void | removeDownloadManager(DownloadManager manager, boolean remove_torrent, boolean remove_data)
|
public void | removeDownloadManagerInitialisationAdapter(DownloadManagerInitialisationAdapter adapter)
|
public void | removeDownloadWillBeRemovedListener(GlobalManagerDownloadWillBeRemovedListener l)Remove a listener triggered when Download is about to be removed
|
public void | removeListener(GlobalManagerListener l)Removes a Global Manager listener
|
public void | resumeDownload(DownloadManager dm)Resume a previously paused DownloadManager
|
public void | resumeDownloads()Resumes (starts) all downloads paused by the previous pauseDownloads call.
|
public void | startAllDownloads()Starts all downloads
|
public void | stopAllDownloads()Stops all downloads without removing them
|
public void | stopGlobalManager()Puts GlobalManager in a stopped state.
Used when closing down Azureus.
|