Class EndpointDiagnostics
java.lang.Object
com.couchbase.client.core.diagnostics.EndpointDiagnostics
public class EndpointDiagnostics extends Object
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
Constructors Constructor Description EndpointDiagnostics(ServiceType type, EndpointState state, String local, String remote, Optional<String> namespace, Optional<Long> lastActivityUs, Optional<String> id)
-
Method Summary
Modifier and Type Method 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.
-
Constructor Details
-
EndpointDiagnostics
-
-
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. -
namespace
The namespace of this endpoint (likely the bucket name if present). -
toString
-
equals
-
hashCode
public int hashCode()
-