Methods Summary |
---|
public org.gudy.azureus2.core3.download.DownloadManager | findDownloadManager(java.lang.String hash)
synchronized (download_map) {
if (download_map == null) {
return null;
}
for (Iterator iter = download_map.keySet().iterator(); iter.hasNext();) {
DownloadManager dm = (DownloadManager) iter.next();
TOTorrent torrent = dm.getTorrent();
if (PlatformTorrentUtils.isContent(torrent, true)) {
String thisHash = PlatformTorrentUtils.getContentHash(torrent);
if (hash.equals(thisHash)) {
return dm;
}
}
}
}
return null;
|
public EnhancedDownloadManager | getEnhancedDownload(byte[] hash)
DownloadManager dm = core.getGlobalManager().getDownloadManager(new HashWrapper( hash ));
if ( dm == null ){
return( null );
}
return( getEnhancedDownload( dm ));
|
public EnhancedDownloadManager | getEnhancedDownload(org.gudy.azureus2.core3.download.DownloadManager manager)
DownloadManager dm2 = manager.getGlobalManager().getDownloadManager(manager.getTorrent());
if (dm2 != manager) {
return null;
}
synchronized( download_map ){
EnhancedDownloadManager res = (EnhancedDownloadManager)download_map.get( manager );
if ( res == null ){
res = new EnhancedDownloadManager( DownloadManagerEnhancer.this, manager );
download_map.put( manager, res );
}
return( res );
}
|
public static synchronized com.aelitis.azureus.core.download.DownloadManagerEnhancer | getSingleton()
return( singleton );
|
public static synchronized com.aelitis.azureus.core.download.DownloadManagerEnhancer | initialise(com.aelitis.azureus.core.AzureusCore core)
if ( singleton == null ){
singleton = new DownloadManagerEnhancer( core );
}
return( singleton );
|
protected boolean | isProgressiveAvailable()
if ( progressive_enabled ){
return( true );
}
PluginInterface ms_pi = core.getPluginManager().getPluginInterfaceByID( "azupnpav" );
if ( ms_pi != null ){
progressive_enabled = ms_pi.isOperational();
}
return( progressive_enabled );
|