@InterfaceAudience.Public @InterfaceStability.Experimental public class PingServiceHealth extends Object
Represents health for a specific service on ping.
Modifier and Type | Class and Description |
---|---|
static class |
PingServiceHealth.PingState |
Constructor and Description |
---|
PingServiceHealth(ServiceType serviceType,
PingServiceHealth.PingState pingState,
String id,
long latency,
SocketAddress localAddr,
SocketAddress remoteAddr,
String scope) |
Modifier and Type | Method and Description |
---|---|
String |
id() |
long |
latency() |
InetSocketAddress |
local() |
InetSocketAddress |
remote() |
String |
scope() |
PingServiceHealth.PingState |
state() |
Map<String,Object> |
toMap() |
String |
toString() |
ServiceType |
type() |
public PingServiceHealth(ServiceType serviceType, PingServiceHealth.PingState pingState, String id, long latency, SocketAddress localAddr, SocketAddress remoteAddr, String scope)
public ServiceType type()
public String scope()
public PingServiceHealth.PingState state()
public String id()
public long latency()
public InetSocketAddress local()
public InetSocketAddress remote()
Copyright © 2018 Couchbase, Inc.. All rights reserved.