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,
CircuitBreaker.State circuitBreakerState,
String local,
String remote,
Optional<String> namespace,
Optional<Long> lastActivityUs,
Optional<String> id,
Optional<Throwable> lastConnectAttemptFailure) |
Modifier and Type | Method and Description |
---|---|
CircuitBreaker.State |
circuitBreakerState()
The current state of the endpoint's circuit breaker
|
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.
|
Optional<Throwable> |
lastConnectAttemptFailure()
If present, returns the last connect failure of this endpoint.
|
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, CircuitBreaker.State circuitBreakerState, String local, String remote, Optional<String> namespace, Optional<Long> lastActivityUs, Optional<String> id, Optional<Throwable> lastConnectAttemptFailure)
public ServiceType type()
public String local()
public String remote()
public Optional<Duration> lastActivity()
public EndpointState state()
@Stability.Volatile public CircuitBreaker.State circuitBreakerState()
public Optional<String> namespace()
@Stability.Volatile public Optional<Throwable> lastConnectAttemptFailure()
Copyright © 2024 Couchbase, Inc.. All rights reserved.