@Override public synchronized void send(final byte[] message) { this.jobControlHandler.onNext( JobControlProto.newBuilder() .setIdentifier(this.jobId) .setMessage(ByteString.copyFrom(message)) .build() ); }
@Override public synchronized void close(final byte[] message) { this.jobControlHandler.onNext( JobControlProto.newBuilder() .setIdentifier(this.jobId) .setSignal(Signal.SIG_TERMINATE) .setMessage(ByteString.copyFrom(message)) .build() ); }
public Builder mergeFrom(com.microsoft.reef.proto.ClientRuntimeProtocol.JobControlProto other) { if (other == com.microsoft.reef.proto.ClientRuntimeProtocol.JobControlProto.getDefaultInstance()) return this; if (other.hasIdentifier()) { bitField0_ |= 0x00000001; identifier_ = other.identifier_; onChanged(); } if (other.hasSignal()) { setSignal(other.getSignal()); } if (other.hasMessage()) { setMessage(other.getMessage()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }