Examples of HashWrapper


Examples of org.gudy.azureus2.core3.util.HashWrapper

    try{

      managers_mon.enter();

      List  registrations = (List)registered_legacy_managers.get( new HashWrapper( hash ));

      if ( registrations != null ){

        routing_data = (PeerManagerRegistrationImpl)registrations.get(0);
      }
View Full Code Here

Examples of org.gudy.azureus2.core3.util.HashWrapper

        DownloadManager dm = entry.getDownloadManger();
        if (dm == null) {
          String assetHash = entry.getAssetHash();
          if (assetHash != null && AzureusCoreFactory.isCoreRunning()) {
            GlobalManager gm = AzureusCoreFactory.getSingleton().getGlobalManager();
            dm = gm.getDownloadManager(new HashWrapper(Base32.decode(assetHash)));
            entry.setDownloadManager(dm);
          }
        }
        return dm;
      } else if ((ds instanceof TOTorrent) && AzureusCoreFactory.isCoreRunning()) {
View Full Code Here

Examples of org.gudy.azureus2.core3.util.HashWrapper

   
    if (ds instanceof String) {
      String hash = (String) ds;
      try {
        GlobalManager gm = AzureusCoreFactory.getSingleton().getGlobalManager();
        DownloadManager dm = gm.getDownloadManager(new HashWrapper(Base32.decode(hash)));
        if (dm != null) {
          return dm.getTorrent();
        }
      } catch (Exception e) {
        // ignore
View Full Code Here

Examples of org.gudy.azureus2.core3.util.HashWrapper

  // @see com.aelitis.azureus.ui.selectedcontent.ISelectedContent#getDM()
  public DownloadManager getDownloadManager() {
    if (dm == null && hash != null) {
      try {
        GlobalManager gm = AzureusCoreFactory.getSingleton().getGlobalManager();
        return gm.getDownloadManager(new HashWrapper(Base32.decode(hash)));
      } catch (Exception ignore) {
       
      }
    }
    return dm;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.