Package tachyon.thrift

Examples of tachyon.thrift.ClientFileInfo$ClientFileInfoStandardScheme


            Constants.DEFAULT_BLOCK_SIZE_BYTE);
    Assert.assertEquals(2, mMasterInfo.getFileId(new TachyonURI("/testFolder")));
    Assert.assertEquals(fileId, mMasterInfo.getFileId(new TachyonURI("/testFolder/testFile")));
    long opTimeMs = System.currentTimeMillis();
    Assert.assertTrue(mMasterInfo._delete(fileId, true, opTimeMs));
    ClientFileInfo folderInfo = mMasterInfo.getClientFileInfo(new TachyonURI("/testFolder"));
    Assert.assertEquals(opTimeMs, folderInfo.lastModificationTimeMs);
  }
View Full Code Here


        mMasterInfo.createFile(new TachyonURI("/testFolder/testFile1"),
            Constants.DEFAULT_BLOCK_SIZE_BYTE);
    long opTimeMs = System.currentTimeMillis();
    Assert.assertTrue(mMasterInfo
        ._rename(fileId, new TachyonURI("/testFolder/testFile2"), opTimeMs));
    ClientFileInfo folderInfo = mMasterInfo.getClientFileInfo(new TachyonURI("/testFolder"));
    Assert.assertEquals(opTimeMs, folderInfo.lastModificationTimeMs);
  }
View Full Code Here

   *
   * @return the under filesystem path
   * @throws IOException
   */
  String getUfsPath() throws IOException {
    ClientFileInfo info = mTachyonFS.getFileStatus(mFileId, true);

    if (!info.getUfsPath().isEmpty()) {
      return info.getUfsPath();
    }

    return mTachyonFS.getFileStatus(mFileId, false).getUfsPath();
  }
View Full Code Here

   *
   * @return true if this file is complete, false otherwise
   * @throws IOException
   */
  public boolean isComplete() throws IOException {
    ClientFileInfo info = mTachyonFS.getFileStatus(mFileId, true);

    return info.isComplete || mTachyonFS.getFileStatus(mFileId, false).isComplete;
  }
View Full Code Here

    mBlocks.get(blockIndex).addLocation(workerId, workerAddress);
  }

  @Override
  public ClientFileInfo generateClientFileInfo(String path) {
    ClientFileInfo ret = new ClientFileInfo();

    ret.id = getId();
    ret.name = getName();
    ret.path = path;
    ret.ufsPath = mUfsPath;
View Full Code Here

TOP

Related Classes of tachyon.thrift.ClientFileInfo$ClientFileInfoStandardScheme

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.