public static Endpoint create(String serviceName, int ipv4) { return new Endpoint(serviceName, ipv4, null); }
public Endpoint deepCopy() { return new Endpoint(this); }
public static Endpoint create(String serviceName, int ipv4, int port) { return new Endpoint(serviceName, ipv4, (short) (port & 0xffff)); }
public Endpoint deepCopy() { return new Endpoint(this); }
public static Endpoint create(String serviceName, int ipv4) { return new Endpoint(serviceName, ipv4, null, null); }
public Endpoint deepCopy() { return new Endpoint(this); }
/** * @deprecated as leads to null pointer exceptions on port. Use {@link #builder()} instead. */ @Deprecated public static Endpoint create(String serviceName, int ipv4, int port) { return new Endpoint(serviceName, ipv4, null, port == 0 ? null : (short) (port & 0xffff)); }
public Endpoint build() { checkNotNull(serviceName, "serviceName"); return new Endpoint(serviceName, ipv4 == null ? 0 : ipv4, ipv6, port); } }
@Override public Endpoint getClientEndPoint() { if(currentClientServiceName == null){ return endPoint; } else { Endpoint newEndPoint = new Endpoint(endPoint); newEndPoint.setService_name(currentClientServiceName); return newEndPoint; } }
/** * {@inheritDoc} */ @Override public Endpoint getClientEndPoint() { final String serviceName = currentClientServiceName.get(); if (serviceName == null) { return endPoint; } else { final Endpoint ep = new Endpoint(endPoint); ep.setService_name(serviceName); return ep; } }
/** * Performs a deep copy on <i>other</i>. */ public Annotation(Annotation other) { __isset_bitfield = other.__isset_bitfield; this.timestamp = other.timestamp; if (other.isSetValue()) { this.value = other.value; } if (other.isSetHost()) { this.host = new Endpoint(other.host); } }
/** * Performs a deep copy on <i>other</i>. */ public Annotation(Annotation other) { __isset_bitfield = other.__isset_bitfield; this.timestamp = other.timestamp; if (other.isSetValue()) { this.value = other.value; } if (other.isSetHost()) { this.host = new Endpoint(other.host); } }
/** * Performs a deep copy on <i>other</i>. */ public Annotation(Annotation other) { __isset_bitfield = other.__isset_bitfield; this.timestamp = other.timestamp; if (other.isSetValue()) { this.value = other.value; } if (other.isSetHost()) { this.host = new Endpoint(other.host); } this.duration = other.duration; }
/** * {@inheritDoc} */ @Override public void submit(final String ip, final int port, final String serviceName) { final int ipv4 = ipAddressToInt(ip); final Endpoint endpoint = new Endpoint(ipv4, (short)port, serviceName); spanstate.setServerEndPoint(endpoint); }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, Annotation struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if (incoming.get(1)) { struct.value = iprot.readString(); struct.setValueIsSet(true); } if (incoming.get(2)) { struct.host = new Endpoint(); struct.host.read(iprot); struct.setHostIsSet(true); } } }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, Annotation struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if (incoming.get(1)) { struct.value = iprot.readString(); struct.setValueIsSet(true); } if (incoming.get(2)) { struct.host = new Endpoint(); struct.host.read(iprot); struct.setHostIsSet(true); } } }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, Annotation struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if (incoming.get(1)) { struct.value = iprot.readString(); struct.setValueIsSet(true); } if (incoming.get(2)) { struct.host = new Endpoint(); struct.host.read(iprot); struct.setHostIsSet(true); } if (incoming.get(3)) { struct.duration = iprot.readI32(); struct.setDurationIsSet(true); } } }
/** * Performs a deep copy on <i>other</i>. */ public BinaryAnnotation(BinaryAnnotation other) { if (other.isSetKey()) { this.key = other.key; } if (other.isSetValue()) { this.value = org.apache.thrift.TBaseHelper.copyBinary(other.value); ; } if (other.isSetAnnotation_type()) { this.annotation_type = other.annotation_type; } if (other.isSetHost()) { this.host = new Endpoint(other.host); } }
/** * Performs a deep copy on <i>other</i>. */ public BinaryAnnotation(BinaryAnnotation other) { if (other.isSetKey()) { this.key = other.key; } if (other.isSetValue()) { this.value = org.apache.thrift.TBaseHelper.copyBinary(other.value); ; } if (other.isSetAnnotation_type()) { this.annotation_type = other.annotation_type; } if (other.isSetHost()) { this.host = new Endpoint(other.host); } }
/** * Performs a deep copy on <i>other</i>. */ public BinaryAnnotation(BinaryAnnotation other) { if (other.isSetKey()) { this.key = other.key; } if (other.isSetValue()) { this.value = org.apache.thrift.TBaseHelper.copyBinary(other.value); ; } if (other.isSetAnnotation_type()) { this.annotation_type = other.annotation_type; } if (other.isSetHost()) { this.host = new Endpoint(other.host); } }