Class AdaptiveSelection

java.lang.Object
org.opensearch.client.opensearch.nodes.stats.AdaptiveSelection
All Implemented Interfaces:
JsonpSerializable, PlainJsonSerializable, ToCopyableBuilder<AdaptiveSelection.Builder,AdaptiveSelection>

@JsonpDeserializable @Generated("org.opensearch.client.codegen.CodeGenerator") public class AdaptiveSelection extends Object implements PlainJsonSerializable, ToCopyableBuilder<AdaptiveSelection.Builder,AdaptiveSelection>
  • Field Details

  • Method Details

    • of

    • avgQueueSize

      @Nullable public final Long avgQueueSize()
      The exponentially weighted moving average queue size of search requests on the keyed node.

      API name: avg_queue_size

    • avgResponseTime

      @Nullable public final Time avgResponseTime()
      API name: avg_response_time
    • avgResponseTimeNs

      @Nullable public final Long avgResponseTimeNs()
      The exponentially weighted moving average response time, in nanoseconds, of search requests on the keyed node.

      API name: avg_response_time_ns

    • avgServiceTime

      @Nullable public final Time avgServiceTime()
      API name: avg_service_time
    • avgServiceTimeNs

      @Nullable public final Long avgServiceTimeNs()
      The exponentially weighted moving average service time, in nanoseconds, of search requests on the keyed node.

      API name: avg_service_time_ns

    • outgoingSearches

      @Nullable public final Long outgoingSearches()
      The number of outstanding search requests to the keyed node from the node these stats are for.

      API name: outgoing_searches

    • rank

      @Nullable public final String rank()
      The rank of this node; used for shard selection when routing search requests.

      API name: rank

    • 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)
    • toBuilder

      @Nonnull public AdaptiveSelection.Builder toBuilder()
      Description copied from interface: ToCopyableBuilder
      Create a new builder ToCopyableBuilder that is initialised with the current state of this object.
      Specified by:
      toBuilder in interface ToCopyableBuilder<AdaptiveSelection.Builder,AdaptiveSelection>
      Returns:
      a new builder instance.
    • builder

      @Nonnull public static AdaptiveSelection.Builder builder()
    • setupAdaptiveSelectionDeserializer

      protected static void setupAdaptiveSelectionDeserializer(ObjectDeserializer<AdaptiveSelection.Builder> op)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

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