Examples of FMFile


Examples of com.aelitis.azureus.core.diskmanager.file.FMFile

       
          if ( !surviving ){
           
            for (int i=1;i<files_use_count.length;i++){
             
              FMFile file = files[i];
             
              if ( file.isClone()){
               
                // System.out.println( "Destroyed clone " + file.getName());
               
                synchronized( CacheFileWithoutCacheMT.class ){
                 
                  num_clones--;
                }
              }
             
              file.close();
            }
           
            files = new FMFile[]{ base_file };
           
            files_use_count = new int[]{ files_use_count[0] };
View Full Code Here

Examples of com.aelitis.azureus.core.diskmanager.file.FMFile

       
          if ( !surviving ){
           
            for (int i=1;i<files_use_count.length;i++){
             
              FMFile file = files[i];
             
              if ( file.isClone()){
               
                // System.out.println( "Destroyed clone " + file.getName());
               
                synchronized( CacheFileWithoutCacheMT.class ){
                 
                  num_clones--;
                }
              }
             
              file.close();
            }
           
            files = new FMFile[]{ base_file };
           
            files_use_count = new int[]{ files_use_count[0] };
View Full Code Here

Examples of com.aelitis.azureus.core.diskmanager.file.FMFile

      }
     
        // all files already in use
     
      try{
        FMFile clone = base_file.createClone();
               
        //System.out.println( "Created clone " + clone.getName());
       
        int  old_num  = files.length;
        int  new_num = old_num + 1;
View Full Code Here

Examples of com.aelitis.azureus.core.diskmanager.file.FMFile

    for (int i=0;i<buffers.length;i++){
     
      read_length += buffers[i].remaining(DirectByteBuffer.SS_CACHE);
    }
   
    FMFile file = null;
   
    try
      file  = getFile();
     
      file.read( buffers, position );
     
      manager.fileBytesRead( read_length );

    }catch( FMFileManagerException e ){
       
View Full Code Here

Examples of com.aelitis.azureus.core.diskmanager.file.FMFile

 
    throws CacheFileManagerException
  {
    int  read_length  = buffer.remaining(DirectByteBuffer.SS_CACHE);

    FMFile file = null;
   
    try
      file  = getFile();
     
      file.read( buffer, position );
     
      manager.fileBytesRead( read_length );

    }catch( FMFileManagerException e ){
       
View Full Code Here

Examples of com.aelitis.azureus.core.diskmanager.file.FMFile

    try{   
      synchronized( this ){
       
        for (int i=0;i<files.length;i++){
         
          FMFile file = files[i];
         
          if ( file.isClone()){
         
            // System.out.println( "Destroyed clone " + file.getName());
           
            synchronized( CacheFileWithoutCacheMT.class ){
             
              num_clones--;
            }
          }
         
          file.close();
        }
      }     
    }catch( FMFileManagerException e ){
     
      manager.rethrow(this,e);     
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.