public Process deepCopy() { return new Process(this); }
private static SpanExporter.Handler newHandlerWithSender( final HttpSender sender, final String serviceName) { final Process process = new Process(serviceName); return new JaegerExporterHandler(sender, process); }
private static SpanExporter.Handler newHandler( final String thriftEndpoint, final String serviceName) { final HttpSender sender = new HttpSender(thriftEndpoint); final Process process = new Process(serviceName); return new JaegerExporterHandler(sender, process); }
/** * Performs a deep copy on <i>other</i>. */ public Batch(Batch other) { if (other.isSetProcess()) { this.process = new Process(other.process); } if (other.isSetSpans()) { List<Span> __this__spans = new ArrayList<Span>(other.spans.size()); for (Span other_element : other.spans) { __this__spans.add(new Span(other_element)); } this.spans = __this__spans; } }
case 1: // PROCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.process = new Process(); struct.process.read(iprot); struct.setProcessIsSet(true);
@Override public void read(org.apache.thrift.protocol.TProtocol prot, Batch struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.process = new Process(); struct.process.read(iprot); struct.setProcessIsSet(true); { org.apache.thrift.protocol.TList _list45 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.spans = new ArrayList<Span>(_list45.size); Span _elem46; for (int _i47 = 0; _i47 < _list45.size; ++_i47) { _elem46 = new Span(); _elem46.read(iprot); struct.spans.add(_elem46); } } struct.setSpansIsSet(true); } }