@Override public void send(final String metricType, final String metricId, final String metricField, final byte[] metricValue) { metricMessageQueue.add( ControlMessage.Metric.newBuilder() .setMetricType(metricType) .setMetricId(metricId) .setMetricField(metricField) .setMetricValue(ByteString.copyFrom(metricValue)) .build()); }
@Override public void send(final String metricType, final String metricId, final String metricField, final byte[] metricValue) { metricMessageQueue.add( ControlMessage.Metric.newBuilder() .setMetricType(metricType) .setMetricId(metricId) .setMetricField(metricField) .setMetricValue(ByteString.copyFrom(metricValue)) .build()); }
public Builder mergeFrom(org.apache.nemo.runtime.common.comm.ControlMessage.Metric other) { if (other == org.apache.nemo.runtime.common.comm.ControlMessage.Metric.getDefaultInstance()) return this; if (other.hasMetricType()) { bitField0_ |= 0x00000001; metricType_ = other.metricType_; onChanged(); } if (other.hasMetricId()) { bitField0_ |= 0x00000002; metricId_ = other.metricId_; onChanged(); } if (other.hasMetricField()) { bitField0_ |= 0x00000004; metricField_ = other.metricField_; onChanged(); } if (other.hasMetricValue()) { setMetricValue(other.getMetricValue()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public Builder mergeFrom(org.apache.nemo.runtime.common.comm.ControlMessage.Metric other) { if (other == org.apache.nemo.runtime.common.comm.ControlMessage.Metric.getDefaultInstance()) return this; if (other.hasMetricType()) { bitField0_ |= 0x00000001; metricType_ = other.metricType_; onChanged(); } if (other.hasMetricId()) { bitField0_ |= 0x00000002; metricId_ = other.metricId_; onChanged(); } if (other.hasMetricField()) { bitField0_ |= 0x00000004; metricField_ = other.metricField_; onChanged(); } if (other.hasMetricValue()) { setMetricValue(other.getMetricValue()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }