Package com.aelitis.azureus.core.download

Examples of com.aelitis.azureus.core.download.DownloadManagerEnhancer


  public static void earlyInitialisation(AzureusCore core) {
   
    DownloadUtils.initialise();
   
    DownloadManagerEnhancer dme = DownloadManagerEnhancer.initialise(core);

    hookDownloadAddition();

    AzureusPlatformContentDirectory.register();
View Full Code Here


  public static boolean canProgressiveOrIsComplete(TOTorrent torrent) {
    if (torrent == null) {
      return false;
    }
    try {
      DownloadManagerEnhancer enhancer = DownloadManagerEnhancer.getSingleton();
      EnhancedDownloadManager edm = DownloadManagerEnhancer.getSingleton().getEnhancedDownload(
          torrent.getHash());
 
      if (edm == null) {
        return enhancer.isProgressiveAvailable()
            && PlatformTorrentUtils.isContentProgressive(torrent);
      }
 
      boolean complete = edm.getDownloadManager().isDownloadComplete(false);
      if (complete) {
View Full Code Here

    return ((DownloadManager) ds).getStats().getDataReceiveRate();
  }

  public EnhancedDownloadManager getEDM(DownloadManager dm) {
    DownloadManagerEnhancer dmEnhancer = DownloadManagerEnhancer.getSingleton();
    if (dmEnhancer == null) {
      return null;
    }
    return dmEnhancer.getEnhancedDownload(dm);
  }
View Full Code Here

TOP

Related Classes of com.aelitis.azureus.core.download.DownloadManagerEnhancer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.