java.lang.Object
co.elastic.clients.elasticsearch.nodes.Client
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable public class Client extends Object implements JsonpSerializable
See Also:
  • Field Details

  • Method Details

    • of

    • id

      @Nullable public final Long id()
      Unique ID for the HTTP client.

      API name: id

    • agent

      @Nullable public final String agent()
      Reported agent for the HTTP client. If unavailable, this property is not included in the response.

      API name: agent

    • localAddress

      @Nullable public final String localAddress()
      Local address for the HTTP connection.

      API name: local_address

    • remoteAddress

      @Nullable public final String remoteAddress()
      Remote address for the HTTP connection.

      API name: remote_address

    • lastUri

      @Nullable public final String lastUri()
      The URI of the client’s most recent request.

      API name: last_uri

    • openedTimeMillis

      @Nullable public final Long openedTimeMillis()
      Time at which the client opened the connection.

      API name: opened_time_millis

    • closedTimeMillis

      @Nullable public final Long closedTimeMillis()
      Time at which the client closed the connection if the connection is closed.

      API name: closed_time_millis

    • lastRequestTimeMillis

      @Nullable public final Long lastRequestTimeMillis()
      Time of the most recent request from this client.

      API name: last_request_time_millis

    • requestCount

      @Nullable public final Long requestCount()
      Number of requests from this client.

      API name: request_count

    • requestSizeBytes

      @Nullable public final Long requestSizeBytes()
      Cumulative size in bytes of all requests from this client.

      API name: request_size_bytes

    • xOpaqueId

      @Nullable public final String xOpaqueId()
      Value from the client’s x-opaque-id HTTP header. If unavailable, this property is not included in the response.

      API name: x_opaque_id

    • serialize

      public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • toString

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

      protected static void setupClientDeserializer(ObjectDeserializer<Client.Builder> op)