@InterfaceAudience.Public @InterfaceStability.Experimental public class EndpointHealth extends Object
Aggregates the health of one specific Endpoint
.
Constructor and Description |
---|
EndpointHealth(ServiceType type,
LifecycleState state,
SocketAddress localAddr,
SocketAddress remoteAddr,
long lastActivityUs,
long pingLatencyUs) |
Modifier and Type | Method and Description |
---|---|
long |
lastActivity() |
InetSocketAddress |
local() |
long |
pingLatency() |
InetSocketAddress |
remote() |
LifecycleState |
state() |
Map<String,Object> |
toMap() |
String |
toString() |
ServiceType |
type() |
public EndpointHealth(ServiceType type, LifecycleState state, SocketAddress localAddr, SocketAddress remoteAddr, long lastActivityUs, long pingLatencyUs)
public ServiceType type()
public LifecycleState state()
public InetSocketAddress local()
public InetSocketAddress remote()
public long lastActivity()
public long pingLatency()
Copyright © 2017 Couchbase, Inc.. All rights reserved.