Package tachyon.thrift

Examples of tachyon.thrift.SuspectedFileSizeException$SuspectedFileSizeExceptionStandardSchemeFactory


      InodeFile tFile = (InodeFile) inode;
      boolean needLog = false;

      if (tFile.isComplete()) {
        if (tFile.getLength() != length) {
          throw new SuspectedFileSizeException(fileId + ". Original Size: " + tFile.getLength()
              + ". New Size: " + length);
        }
      } else {
        tFile.setLength(length);
        needLog = true;
View Full Code Here


   * @throws BlockInfoException
   */
  public synchronized void setLength(long length) throws SuspectedFileSizeException,
      BlockInfoException {
    if (isComplete()) {
      throw new SuspectedFileSizeException("InodeFile length was set previously.");
    }
    if (length < 0) {
      throw new SuspectedFileSizeException("InodeFile new length " + length + " is illegal.");
    }
    mLength = 0;
    while (length >= mBlockSizeByte) {
      addBlock(new BlockInfo(this, mBlocks.size(), mBlockSizeByte));
      length -= mBlockSizeByte;
View Full Code Here

TOP

Related Classes of tachyon.thrift.SuspectedFileSizeException$SuspectedFileSizeExceptionStandardSchemeFactory

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.