Package zipkin2
Class Endpoint
java.lang.Object
zipkin2.Endpoint
- All Implemented Interfaces:
Serializable
The network context of a node in the service graph.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
ipv4()
The text representation of the primary IPv4 address associated with this a connection.byte[]
IPv4 endpoint address packed into 4 bytes or null if unknown.ipv6()
The text representation of the primary IPv6 address associated with this a connection.byte[]
IPv6 endpoint address packed into 16 bytes or null if unknown.static Endpoint.Builder
port()
Port of the IP's socket or null, if not known.int
Likeport()
except returns a primitive where zero implies absent.Lower-case label of this node in the service graph, such as "favstar".toString()
-
Method Details
-
serviceName
Lower-case label of this node in the service graph, such as "favstar". Leave absent if unknown.This is a primary label for trace lookup and aggregation, so it should be intuitive and consistent. Many use a name from service discovery.
-
ipv4
The text representation of the primary IPv4 address associated with this a connection. Ex. 192.168.99.100 Absent if unknown. -
ipv4Bytes
@Nullable public byte[] ipv4Bytes()IPv4 endpoint address packed into 4 bytes or null if unknown.- See Also:
-
ipv6
The text representation of the primary IPv6 address associated with this a connection. Ex. 2001:db8::c001 Absent if unknown.- See Also:
-
ipv6Bytes
@Nullable public byte[] ipv6Bytes()IPv6 endpoint address packed into 16 bytes or null if unknown.- See Also:
-
port
Port of the IP's socket or null, if not known.- See Also:
-
portAsInt
public int portAsInt()Likeport()
except returns a primitive where zero implies absent.Using this method will avoid allocation, so is encouraged when copying data.
-
toBuilder
-
newBuilder
-
toString
-
equals
-
hashCode
public int hashCode()
-