/** * <code>optional .alluxio.proto.journal.AddMountPointEntry add_mount_point = 2;</code> */ public Builder setAddMountPoint( alluxio.proto.journal.File.AddMountPointEntry.Builder builderForValue) { if (addMountPointBuilder_ == null) { addMountPoint_ = builderForValue.build(); onChanged(); } else { addMountPointBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /**
@Override public Journal.JournalEntry next() { if (!hasNext()) { throw new NoSuchElementException(); } String alluxioPath = mEntry.getKey(); MountInfo info = mEntry.getValue(); mEntry = null; Map<String, String> properties = info.getOptions().getProperties(); List<File.StringPairEntry> protoProperties = new ArrayList<>(properties.size()); for (Map.Entry<String, String> property : properties.entrySet()) { protoProperties.add(File.StringPairEntry.newBuilder() .setKey(property.getKey()) .setValue(property.getValue()) .build()); } AddMountPointEntry addMountPoint = AddMountPointEntry.newBuilder().setAlluxioPath(alluxioPath) .setMountId(info.getMountId()).setUfsPath(info.getUfsUri().toString()) .setReadOnly(info.getOptions().getReadOnly()).addAllProperties(protoProperties) .setShared(info.getOptions().getShared()).build(); return Journal.JournalEntry.newBuilder().setAddMountPoint(addMountPoint).build(); }
.setShared(options.getShared()) .setUfsPath(ufsUri.toString()) .build());
.setUfsPath(ufsPath.toString()).setMountId(mountId) .setReadOnly(options.isReadOnly()) .addAllProperties(protoProperties).setShared(options.isShared()).build(); rpcContext.journal(JournalEntry.newBuilder().setAddMountPoint(addMountPoint).build());
@Override public Journal.JournalEntry next() { if (!hasNext()) { throw new NoSuchElementException(); } String alluxioPath = mEntry.getKey(); MountInfo info = mEntry.getValue(); mEntry = null; Map<String, String> properties = info.getOptions().getProperties(); List<File.StringPairEntry> protoProperties = new ArrayList<>(properties.size()); for (Map.Entry<String, String> property : properties.entrySet()) { protoProperties.add(File.StringPairEntry.newBuilder() .setKey(property.getKey()) .setValue(property.getValue()) .build()); } AddMountPointEntry addMountPoint = AddMountPointEntry.newBuilder().setAlluxioPath(alluxioPath) .setMountId(info.getMountId()).setUfsPath(info.getUfsUri().toString()) .setReadOnly(info.getOptions().isReadOnly()).addAllProperties(protoProperties) .setShared(info.getOptions().isShared()).build(); return Journal.JournalEntry.newBuilder().setAddMountPoint(addMountPoint).build(); }
/** * <code>optional .alluxio.proto.journal.AddMountPointEntry add_mount_point = 2;</code> */ public Builder setAddMountPoint( alluxio.proto.journal.File.AddMountPointEntry.Builder builderForValue) { if (addMountPointBuilder_ == null) { addMountPoint_ = builderForValue.build(); onChanged(); } else { addMountPointBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /**