/** * Marks the file as complete. * * @param fid the file id * @throws IOException if the underlying master RPC fails */ synchronized void completeFile(long fid) throws IOException { try { mFSMasterClient.completeFile(fid); } catch (TachyonException e) { throw new IOException(e); } }
FileSystemMasterClient masterClient = mContext.acquireMasterClient(); try { masterClient.completeFile(mFileId); } catch (TachyonException e) { throw new IOException(e);