public final class Endpoint extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
Endpoint.Builder |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
hashCode() |
String |
ipv4()
The text representation of the primary IPv4 address associated with this a connection.
|
String |
ipv6()
The text representation of the primary IPv6 address associated with this a connection.
|
static Endpoint.Builder |
newBuilder() |
Integer |
port()
Port of the IP's socket or null, if not known.
|
String |
serviceName()
Lower-case label of this node in the service graph, such as "favstar".
|
Endpoint.Builder |
toBuilder() |
String |
toString() |
@Nullable public String serviceName()
This is a primary label for trace lookup and aggregation, so it should be intuitive and consistent. Many use a name from service discovery.
@Nullable public String ipv4()
@Nullable public String ipv6()
Prefer using the ipv4() field for mapped addresses.
@Nullable public Integer port()
InetSocketAddress.getPort()public Endpoint.Builder toBuilder()
public static Endpoint.Builder newBuilder()
Copyright © 2015–2018 OpenZipkin. All rights reserved.