/** * <code>optional .protobuf.BlockLocationInfoMsg blockLocationInfoMsg = 9;</code> */ public Builder setBlockLocationInfoMsg( org.apache.nemo.runtime.common.comm.ControlMessage.BlockLocationInfoMsg.Builder builderForValue) { if (blockLocationInfoMsgBuilder_ == null) { blockLocationInfoMsg_ = builderForValue.build(); onChanged(); } else { blockLocationInfoMsgBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; return this; } /**
subBuilder.mergeFrom(blockLocationInfoMsg_); blockLocationInfoMsg_ = subBuilder.buildPartial();
subBuilder.mergeFrom(blockLocationInfoMsg_); blockLocationInfoMsg_ = subBuilder.buildPartial();
/** * Registers a request for the block location. * If the location is already known, reply the location instantly. * * @param requestId the ID of the block location request. * @param messageContext the message context to reply. */ void registerRequest(final long requestId, final MessageContext messageContext) { final ControlMessage.BlockLocationInfoMsg.Builder infoMsgBuilder = ControlMessage.BlockLocationInfoMsg.newBuilder() .setRequestId(requestId) .setBlockId(blockIdOrWildcard); locationFuture.whenComplete((location, throwable) -> { if (throwable == null) { infoMsgBuilder.setOwnerExecutorId(location); } else { infoMsgBuilder.setState( convertBlockState(((AbsentBlockException) throwable).getState())); } messageContext.reply( ControlMessage.Message.newBuilder() .setId(RuntimeIdManager.generateMessageId()) .setListenerId(MessageEnvironment.EXECUTOR_MESSAGE_LISTENER_ID) .setType(ControlMessage.MessageType.BlockLocationInfo) .setBlockLocationInfoMsg(infoMsgBuilder.build()) .build()); }); }
/** * Registers a request for the block location. * If the location is already known, reply the location instantly. * * @param requestId the ID of the block location request. * @param messageContext the message context to reply. */ void registerRequest(final long requestId, final MessageContext messageContext) { final ControlMessage.BlockLocationInfoMsg.Builder infoMsgBuilder = ControlMessage.BlockLocationInfoMsg.newBuilder() .setRequestId(requestId) .setBlockId(blockIdOrWildcard); locationFuture.whenComplete((location, throwable) -> { if (throwable == null) { infoMsgBuilder.setOwnerExecutorId(location); } else { infoMsgBuilder.setState( convertBlockState(((AbsentBlockException) throwable).getState())); } messageContext.reply( ControlMessage.Message.newBuilder() .setId(RuntimeIdManager.generateMessageId()) .setListenerId(MessageEnvironment.EXECUTOR_MESSAGE_LISTENER_ID) .setType(ControlMessage.MessageType.BlockLocationInfo) .setBlockLocationInfoMsg(infoMsgBuilder.build()) .build()); }); }
public Builder mergeFrom(org.apache.nemo.runtime.common.comm.ControlMessage.BlockLocationInfoMsg other) { if (other == org.apache.nemo.runtime.common.comm.ControlMessage.BlockLocationInfoMsg.getDefaultInstance()) return this; if (other.hasRequestId()) { setRequestId(other.getRequestId()); } if (other.hasBlockId()) { bitField0_ |= 0x00000002; blockId_ = other.blockId_; onChanged(); } if (other.hasState()) { setState(other.getState()); } if (other.hasOwnerExecutorId()) { bitField0_ |= 0x00000008; ownerExecutorId_ = other.ownerExecutorId_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
/** * <code>optional .protobuf.BlockLocationInfoMsg blockLocationInfoMsg = 9;</code> */ public Builder mergeBlockLocationInfoMsg(org.apache.nemo.runtime.common.comm.ControlMessage.BlockLocationInfoMsg value) { if (blockLocationInfoMsgBuilder_ == null) { if (((bitField0_ & 0x00000100) == 0x00000100) && blockLocationInfoMsg_ != org.apache.nemo.runtime.common.comm.ControlMessage.BlockLocationInfoMsg.getDefaultInstance()) { blockLocationInfoMsg_ = org.apache.nemo.runtime.common.comm.ControlMessage.BlockLocationInfoMsg.newBuilder(blockLocationInfoMsg_).mergeFrom(value).buildPartial(); } else { blockLocationInfoMsg_ = value; } onChanged(); } else { blockLocationInfoMsgBuilder_.mergeFrom(value); } bitField0_ |= 0x00000100; return this; } /**
public Builder mergeFrom(org.apache.nemo.runtime.common.comm.ControlMessage.BlockLocationInfoMsg other) { if (other == org.apache.nemo.runtime.common.comm.ControlMessage.BlockLocationInfoMsg.getDefaultInstance()) return this; if (other.hasRequestId()) { setRequestId(other.getRequestId()); } if (other.hasBlockId()) { bitField0_ |= 0x00000002; blockId_ = other.blockId_; onChanged(); } if (other.hasState()) { setState(other.getState()); } if (other.hasOwnerExecutorId()) { bitField0_ |= 0x00000008; ownerExecutorId_ = other.ownerExecutorId_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
/** * <code>optional .protobuf.BlockLocationInfoMsg blockLocationInfoMsg = 9;</code> */ public Builder mergeBlockLocationInfoMsg(org.apache.nemo.runtime.common.comm.ControlMessage.BlockLocationInfoMsg value) { if (blockLocationInfoMsgBuilder_ == null) { if (((bitField0_ & 0x00000100) == 0x00000100) && blockLocationInfoMsg_ != org.apache.nemo.runtime.common.comm.ControlMessage.BlockLocationInfoMsg.getDefaultInstance()) { blockLocationInfoMsg_ = org.apache.nemo.runtime.common.comm.ControlMessage.BlockLocationInfoMsg.newBuilder(blockLocationInfoMsg_).mergeFrom(value).buildPartial(); } else { blockLocationInfoMsg_ = value; } onChanged(); } else { blockLocationInfoMsgBuilder_.mergeFrom(value); } bitField0_ |= 0x00000100; return this; } /**
public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.nemo.runtime.common.comm.ControlMessage.BlockLocationInfoMsg parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.nemo.runtime.common.comm.ControlMessage.BlockLocationInfoMsg) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_;
public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.nemo.runtime.common.comm.ControlMessage.BlockLocationInfoMsg parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.nemo.runtime.common.comm.ControlMessage.BlockLocationInfoMsg) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_;
private Builder() { maybeForceBuilderInitialization(); }
private Builder() { maybeForceBuilderInitialization(); }
public Builder clone() { return create().mergeFrom(buildPartial()); }
private static Builder create() { return new Builder(); }
public static Builder newBuilder(org.apache.nemo.runtime.common.comm.ControlMessage.BlockLocationInfoMsg prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); }
public static Builder newBuilder(org.apache.nemo.runtime.common.comm.ControlMessage.BlockLocationInfoMsg prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); }
private static Builder create() { return new Builder(); }
/** * <code>optional .protobuf.BlockLocationInfoMsg blockLocationInfoMsg = 9;</code> */ public Builder setBlockLocationInfoMsg( org.apache.nemo.runtime.common.comm.ControlMessage.BlockLocationInfoMsg.Builder builderForValue) { if (blockLocationInfoMsgBuilder_ == null) { blockLocationInfoMsg_ = builderForValue.build(); onChanged(); } else { blockLocationInfoMsgBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; return this; } /**
private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() {