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 Details

  • Method Details

    • type

      public ServiceType type()
      The service type for this endpoint.
    • id

      public Optional<String> id()
      The ID for this endpoint.
    • local

      public String local()
      The local socket address for this endpoint.
    • remote

      public String remote()
      The remote socket address for this endpoint.
    • lastActivity

      public Optional<Duration> lastActivity()
      If there has been a last activity, returned as a duration.
    • state

      public EndpointState state()
      The current state of the endpoint.
    • namespace

      public Optional<String> namespace()
      The namespace of this endpoint (likely the bucket name if present).
    • lastConnectAttemptFailure

      @Volatile public Optional<Throwable> lastConnectAttemptFailure()
      If present, returns the last connect failure of this endpoint.
      Returns:
      the last connect failure, if any.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object