Class EndpointDiagnostics
java.lang.Object
com.couchbase.client.core.diagnostics.EndpointDiagnostics
A diagnostic report for an individual endpoint.
Usually this diagnostic information is not looked at in isolation, but rather as part of the overall
DiagnosticsResult
.
-
Constructor Summary
ConstructorDescriptionEndpointDiagnostics
(ServiceType type, EndpointState state, CircuitBreaker.State circuitBreakerState, String local, String remote, Optional<String> namespace, Optional<Long> lastActivityUs, Optional<String> id, Optional<Throwable> lastConnectAttemptFailure) -
Method Summary
Modifier and TypeMethodDescriptionThe current state of the endpoint's circuit breakerboolean
int
hashCode()
id()
The ID for this endpoint.If there has been a last activity, returned as a duration.If present, returns the last connect failure of this endpoint.local()
The local socket address for this endpoint.The namespace of this endpoint (likely the bucket name if present).remote()
The remote socket address for this endpoint.state()
The current state of the endpoint.toString()
type()
The service type for this endpoint.
-
Constructor Details
-
EndpointDiagnostics
@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)
-
-
Method Details
-
type
The service type for this endpoint. -
id
The ID for this endpoint. -
local
The local socket address for this endpoint. -
remote
The remote socket address for this endpoint. -
lastActivity
If there has been a last activity, returned as a duration. -
state
The current state of the endpoint. -
circuitBreakerState
The current state of the endpoint's circuit breaker -
namespace
The namespace of this endpoint (likely the bucket name if present). -
lastConnectAttemptFailure
If present, returns the last connect failure of this endpoint.- Returns:
- the last connect failure, if any.
-
toString
-
equals
-
hashCode
public int hashCode()
-