Package org.gudy.azureus2.core3.download

Examples of org.gudy.azureus2.core3.download.DownloadManagerState.suppressStateSave()


          boolean[] toSkip = new boolean[res.length];
          int toSkipCount = 0;
          DownloadManagerState dmState = download_manager.getDownloadState();
         
          try {
            dmState.suppressStateSave(true);
 
            for(int i=0;i<res.length;i++)
            {
              if(!toChange[i])
                continue;
View Full Code Here


            DiskManagerImpl.storeFileDownloaded( download_manager, res, true );
 
            doFileExistenceChecks(this, toChange, download_manager, newStorageType == FileSkeleton.ST_LINEAR || newStorageType == FileSkeleton.ST_REORDER );
 
          } finally {
            dmState.suppressStateSave(false);
            dmState.save();
          }
         
          return modified;
        }
View Full Code Here

      throw new IllegalArgumentException("array length mismatches the number of files");

    DownloadManagerState dmState = diskManager.getDownloadState();
   
    try  {
      dmState.suppressStateSave(true);

   
      for(int i=0;i<files.length;i++)
        if(toChange[i] > 0)
          files[i].setPriority(toChange[i]);
View Full Code Here

   
      for(int i=0;i<files.length;i++)
        if(toChange[i] > 0)
          files[i].setPriority(toChange[i]);
    } finally {
      dmState.suppressStateSave(false);
    }
  }

  public void setSkipped(boolean[] toChange, boolean setSkipped) {
    if(toChange.length != files.length)
View Full Code Here

      throw new IllegalArgumentException("array length mismatches the number of files");

    DownloadManagerState dmState = diskManager.getDownloadState();
   
    try  {
      dmState.suppressStateSave(true);
     
      if (!setSkipped ){
       
        String[] types = diskManager.getStorageTypes();
View Full Code Here

      if(!setSkipped)
        DiskManagerUtil.doFileExistenceChecks(this, toChange, diskManager.getDownloadState().getDownloadManager(), true);
     
    } finally {
      dmState.suppressStateSave(false);
    }

  }

  public boolean[] setStorageTypes(boolean[] toChange, int newStroageType) {
View Full Code Here

      Debug.out("Download must be stopped for linear -> compact conversion");
      return modified;
    }
   
    try  {
      dm_state.suppressStateSave(true);

      for (int i = 0; i < files.length; i++)
      {
        if(!toChange[i])
          continue;
View Full Code Here

      dm_state.setListAttribute(DownloadManagerState.AT_FILE_STORE_TYPES, types);
     
      DiskManagerUtil.doFileExistenceChecks(this, toChange, dm_state.getDownloadManager(), true);
     
    } finally {
      dm_state.suppressStateSave(false);
      dm_state.save();
    }
   
    return modified;
  }
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.