public class Endpoint extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
int |
ipv4
IPv4 host address packed into 4 bytes.
|
Short |
port
IPv4 port
Note: this is to be treated as an unsigned integer, so watch for negatives.
|
String |
service_name
Service name in lowercase, such as "memcache" or "zipkin-web"
Conventionally, when the service name isn't known, service_name = "unknown".
|
| Modifier and Type | Method and Description |
|---|---|
static Endpoint |
create(String serviceName,
int ipv4) |
static Endpoint |
create(String serviceName,
int ipv4,
int port) |
boolean |
equals(Object o) |
int |
hashCode() |
public final int ipv4
@Nullable public final Short port
public final String service_name
Copyright © 2016. All rights reserved.