Examples of FileDoesNotExistException


Examples of com.cloudloop.storage.exceptions.FileDoesNotExistException

  {
      return new FileInputStream( localFile );
  }
  catch ( FileNotFoundException e )
  {
      throw new FileDoesNotExistException( e );
  }
    }
View Full Code Here

Examples of com.cloudloop.storage.exceptions.FileDoesNotExistException

    public void copyTo(
      CloudStoreFile destinationFile, TransferProgressObserver progressObserver )
    {
    if ( !existsInStore( ) )
    {
        throw new FileDoesNotExistException( "Source file '"
          + getPath( ).getAbsolutePath( )
          + "' does not exist in store '"
          + getParentStore( ).getCloudloopToken( ) + "'" );
    }
   
View Full Code Here

Examples of com.cloudloop.storage.exceptions.FileDoesNotExistException

  assertObjectBelongsToStore( file );
  assertFileExistsInStore( file );
 
  if ( !file.existsInStore( ) )
  {
      throw new FileDoesNotExistException( "File "
        + file.getPath( ).getAbsolutePath( ) + " does not exist." );
  }
 
  // check for encryption meta data upfront so that
  // we won't download the file if there's an error
View Full Code Here

Examples of org.bitbucket.kchau.longshot.exceptions.FileDoesNotExistException

    }
   
    catch(FileDoesNotExistException e)
    {
      System.out.println("AudioInterface_createAudioObject-\tFAIL");
      throw new FileDoesNotExistException(e);
    }
  }
View Full Code Here

Examples of tachyon.thrift.FileDoesNotExistException

  void _completeFile(int fileId, long opTimeMs) throws FileDoesNotExistException {
    synchronized (mRootLock) {
      Inode inode = mFileIdToInodes.get(fileId);

      if (inode == null) {
        throw new FileDoesNotExistException("File " + fileId + " does not exit.");
      }
      if (!inode.isFile()) {
        throw new FileDoesNotExistException("File " + fileId + " is not a file.");
      }

      addFile(fileId, ((InodeFile) inode).getDependencyId());

      ((InodeFile) inode).setComplete();
View Full Code Here

Examples of tachyon.thrift.FileDoesNotExistException

    LOG.info("setPinned(" + fileId + ", " + pinned + ")");
    synchronized (mRootLock) {
      Inode inode = mFileIdToInodes.get(fileId);

      if (inode == null) {
        throw new FileDoesNotExistException("Failed to find inode" + fileId);
      }

      _recomputePinnedFiles(inode, Optional.of(pinned), opTimeMs);
    }
  }
View Full Code Here

Examples of tachyon.thrift.FileDoesNotExistException

    int blockIndex = BlockInfo.computeBlockIndex(blockId);
    synchronized (mRootLock) {
      Inode inode = mFileIdToInodes.get(fileId);

      if (inode == null) {
        throw new FileDoesNotExistException("File " + fileId + " does not exist.");
      }
      if (inode.isDirectory()) {
        throw new FileDoesNotExistException("File " + fileId + " is a folder.");
      }

      InodeFile tFile = (InodeFile) inode;
      if (tFile.getNumberOfBlocks() <= blockIndex) {
        addBlock(tFile, new BlockInfo(tFile, blockIndex, length), System.currentTimeMillis());
View Full Code Here

Examples of tachyon.thrift.FileDoesNotExistException

  public long createNewBlock(int fileId) throws FileDoesNotExistException {
    synchronized (mRootLock) {
      Inode inode = mFileIdToInodes.get(fileId);

      if (inode == null) {
        throw new FileDoesNotExistException("File " + fileId + " does not exit.");
      }
      if (!inode.isFile()) {
        throw new FileDoesNotExistException("File " + fileId + " is not a file.");
      }

      return ((InodeFile) inode).getNewBlockId();
    }
  }
View Full Code Here

Examples of tachyon.thrift.FileDoesNotExistException

  public long getBlockIdBasedOnOffset(int fileId, long offset) throws FileDoesNotExistException {
    synchronized (mRootLock) {
      Inode inode = mFileIdToInodes.get(fileId);
      if (inode == null) {
        throw new FileDoesNotExistException("FileId " + fileId + " does not exist.");
      }
      if (!inode.isFile()) {
        throw new FileDoesNotExistException(fileId + " is not a file.");
      }

      return ((InodeFile) inode).getBlockIdBasedOnOffset(offset);
    }
  }
View Full Code Here

Examples of tachyon.thrift.FileDoesNotExistException

   */
  public List<BlockInfo> getBlockList(TachyonURI path) throws InvalidPathException,
      FileDoesNotExistException {
    Inode inode = getInode(path);
    if (inode == null) {
      throw new FileDoesNotExistException(path + " does not exist.");
    }
    if (!inode.isFile()) {
      throw new FileDoesNotExistException(path + " is not a file.");
    }
    InodeFile inodeFile = (InodeFile) inode;
    return inodeFile.getBlockList();
  }
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.