public class EndpointDiagnostics extends Object
Usually this diagnostic information is not looked at in isolation, but rather as part of the overall
DiagnosticsResult
.
Constructor and Description |
---|
EndpointDiagnostics(ServiceType type,
EndpointState state,
String local,
String remote,
Optional<String> namespace,
Optional<Long> lastActivityUs,
Optional<String> id) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
hashCode() |
Optional<String> |
id()
The ID for this endpoint.
|
Optional<Duration> |
lastActivity()
If there has been a last activity, returned as a duration.
|
String |
local()
The local socket address for this endpoint.
|
Optional<String> |
namespace()
The namespace of this endpoint (likely the bucket name if present).
|
String |
remote()
The remote socket address for this endpoint.
|
EndpointState |
state()
The current state of the endpoint.
|
String |
toString() |
ServiceType |
type()
The service type for this endpoint.
|
@Stability.Internal public EndpointDiagnostics(ServiceType type, EndpointState state, String local, String remote, Optional<String> namespace, Optional<Long> lastActivityUs, Optional<String> id)
public ServiceType type()
public String local()
public String remote()
public Optional<Duration> lastActivity()
public EndpointState state()
public Optional<String> namespace()
Copyright © 2020 Couchbase, Inc.. All rights reserved.