/** * Schedules a file for async persistence. * <p> * Writes to the journal. * * @param rpcContext the rpc context * @param inodePath the {@link LockedInodePath} of the file for persistence */ private void scheduleAsyncPersistenceAndJournal(RpcContext rpcContext, LockedInodePath inodePath) throws AlluxioException { long fileId = inodePath.getInode().getId(); scheduleAsyncPersistenceInternal(inodePath); // write to journal AsyncPersistRequestEntry asyncPersistRequestEntry = AsyncPersistRequestEntry.newBuilder().setFileId(fileId).build(); rpcContext.journal( JournalEntry.newBuilder().setAsyncPersistRequest(asyncPersistRequestEntry).build()); }
public Builder mergeFrom(alluxio.proto.journal.File.AsyncPersistRequestEntry other) { if (other == alluxio.proto.journal.File.AsyncPersistRequestEntry.getDefaultInstance()) return this; if (other.hasFileId()) { setFileId(other.getFileId()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public Builder mergeFrom(alluxio.proto.journal.File.AsyncPersistRequestEntry other) { if (other == alluxio.proto.journal.File.AsyncPersistRequestEntry.getDefaultInstance()) return this; if (other.hasFileId()) { setFileId(other.getFileId()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }