Package tachyon.thrift

Examples of tachyon.thrift.FileDoesNotExistException


      SuspectedFileSizeException, BlockInfoException, IOException {
    File srcFile = new File(CommonUtils.concat(getUserLocalTempFolder(userId), blockId));
    File dstFile = new File(CommonUtils.concat(mLocalDataFolder, blockId));
    long fileSizeBytes = srcFile.length();
    if (!srcFile.exists()) {
      throw new FileDoesNotExistException("File " + srcFile + " does not exist.");
    }
    synchronized (mBlockIdToLatestAccessTimeMs) {
      if (!srcFile.renameTo(dstFile)) {
        throw new FileDoesNotExistException("Failed to rename file from " + srcFile.getPath()
            + " to " + dstFile.getPath());
      }
      if (mBlockSizes.containsKey(blockId)) {
        mSpaceCounter.returnUsedBytes(mBlockSizes.get(blockId));
      }
View Full Code Here


      throws FileDoesNotExistException, SuspectedFileSizeException, BlockInfoException, TException {
    try {
      return mMasterInfo.addCheckpoint(workerId, fileId, fileSizeBytes, new TachyonURI(
          checkpointPath));
    } catch (FileNotFoundException e) {
      throw new FileDoesNotExistException(e.getMessage());
    }
  }
View Full Code Here

        parentUris.add(new TachyonURI(parents.get(k)));
      }
      return mMasterInfo.createDependency(parentUris, childrenUris, commandPrefix, data, comment,
          framework, frameworkVersion, DependencyType.getDependencyType(dependencyType));
    } catch (IOException e) {
      throw new FileDoesNotExistException(e.getMessage());
    }
  }
View Full Code Here

      BlockInfoException, TException {
    ClientBlockInfo ret = null;
    try {
      ret = mMasterInfo.getClientBlockInfo(blockId);
    } catch (IOException e) {
      throw new FileDoesNotExistException(e.getMessage());
    }
    return ret;
  }
View Full Code Here

        ret = mMasterInfo.getFileBlocks(fileId);
      } else {
        ret = mMasterInfo.getFileBlocks(new TachyonURI(path));
      }
    } catch (IOException e) {
      throw new FileDoesNotExistException(e.getMessage());
    }
    return ret;
  }
View Full Code Here

TOP

Related Classes of tachyon.thrift.FileDoesNotExistException

Copyright © 2018 www.massapicom. 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.