Examples of CacheFileManagerException


Examples of com.aelitis.azureus.core.diskmanager.cache.CacheFileManagerException

  setStorageType(
    int    type )
 
    throws CacheFileManagerException
  {
    throw( new CacheFileManagerException( this, "Not Implemented" ))
  }
View Full Code Here

Examples of com.aelitis.azureus.core.diskmanager.cache.CacheFileManagerException

          try{
            this_mon.enter();
           
            if ( access_mode != CF_WRITE ){
             
              throw( new CacheFileManagerException( this,"Write failed - cache file is read only" ));
            }
           
              // if we are overwriting stuff already in the cache then force-write overlapped
              // data (easiest solution as this should only occur on hash-fails)
View Full Code Here

Examples of com.aelitis.azureus.core.diskmanager.cache.CacheFileManagerException

        if ( last_failure instanceof CacheFileManagerException ){
         
          throw((CacheFileManagerException)last_failure );
        }
       
        throw( new CacheFileManagerException( this,"cache flush failed", last_failure ));
      }
    }finally{
     
      this_mon.exit();
    }
View Full Code Here

Examples of com.aelitis.azureus.core.diskmanager.cache.CacheFileManagerException

     
        DirectByteBuffer  buffer = entry.getBuffer();
       
        if ( buffer.limit(SS_CACHE) - buffer.position(SS_CACHE) != entry.getLength()){
         
          throw( new CacheFileManagerException( this,"flush: inconsistent entry length, position wrong" ));
        }
       
        expected_per_entry_write  += entry.getLength();
       
        buffers[i] = buffer;
      }
     
      long  expected_overall_write  = multi_block_next - multi_block_start;

      if ( expected_per_entry_write != expected_overall_write ){
   
        throw( new CacheFileManagerException( this,"flush: inconsistent write length, entrys = " + expected_per_entry_write + " overall = " + expected_overall_write ));
       
      }
     
      getFMFile().write( buffers, multi_block_start );
                 
      manager.fileBytesWritten( expected_overall_write );
     
      write_ok  = true;
     
    }catch( FMFileManagerException e ){
     
      throw( new CacheFileManagerException( this,"flush fails", e ));
     
    }finally{     
     
      for (int i=0;i<multi_block_entries.size();i++){
       
View Full Code Here

Examples of com.aelitis.azureus.core.diskmanager.cache.CacheFileManagerException

       
        position += len;
       
      }catch( CacheFileManagerException e ){
       
        throw( new CacheFileManagerException( this, e.getMessage(), e, i ));
      }
    }
  }
View Full Code Here

Examples of com.aelitis.azureus.core.diskmanager.cache.CacheFileManagerException

     
        position += len;
       
      }catch( CacheFileManagerException e ){
       
        throw( new CacheFileManagerException( this, e.getMessage(), e, i ));
      }
    }
  }
View Full Code Here

Examples of com.aelitis.azureus.core.diskmanager.cache.CacheFileManagerException

     
        position += len;
       
      }catch( CacheFileManagerException e ){
       
        throw( new CacheFileManagerException( this, e.getMessage(), e, i ));
      }
    }
  }
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.