Class AdaptiveSelection.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.nodes.stats.AdaptiveSelection.Builder
- All Implemented Interfaces:
CopyableBuilder<AdaptiveSelection.Builder,,AdaptiveSelection> MutableBuilder<AdaptiveSelection.Builder,,AdaptiveSelection> ObjectBuilder<AdaptiveSelection>
- Enclosing class:
AdaptiveSelection
public static class AdaptiveSelection.Builder
extends ObjectBuilderBase
implements CopyableBuilder<AdaptiveSelection.Builder,AdaptiveSelection>
Builder for
AdaptiveSelection.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionavgQueueSize(Long value) The exponentially weighted moving average queue size of search requests on the keyed node.API name:avg_response_timeavgResponseTime(Time value) API name:avg_response_timeavgResponseTimeNs(Long value) The exponentially weighted moving average response time, in nanoseconds, of search requests on the keyed node.API name:avg_service_timeavgServiceTime(Time value) API name:avg_service_timeavgServiceTimeNs(Long value) The exponentially weighted moving average service time, in nanoseconds, of search requests on the keyed node.build()Builds aAdaptiveSelection.copy()Create a new builderCopyableBuilderthat is a copy of this one.outgoingSearches(Long value) The number of outstanding search requests to the keyed node from the node these stats are for.The rank of this node; used for shard selection when routing search requests.Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<AdaptiveSelection.Builder,AdaptiveSelection> - Returns:
- a new builder instance.
-
avgQueueSize
The exponentially weighted moving average queue size of search requests on the keyed node.API name:
avg_queue_size -
avgResponseTime
API name:avg_response_time -
avgResponseTime
@Nonnull public final AdaptiveSelection.Builder avgResponseTime(Function<Time.Builder, ObjectBuilder<Time>> fn) API name:avg_response_time -
avgResponseTimeNs
The exponentially weighted moving average response time, in nanoseconds, of search requests on the keyed node.API name:
avg_response_time_ns -
avgServiceTime
API name:avg_service_time -
avgServiceTime
@Nonnull public final AdaptiveSelection.Builder avgServiceTime(Function<Time.Builder, ObjectBuilder<Time>> fn) API name:avg_service_time -
avgServiceTimeNs
The exponentially weighted moving average service time, in nanoseconds, of search requests on the keyed node.API name:
avg_service_time_ns -
outgoingSearches
The number of outstanding search requests to the keyed node from the node these stats are for.API name:
outgoing_searches -
rank
The rank of this node; used for shard selection when routing search requests.API name:
rank -
build
Builds aAdaptiveSelection.- Specified by:
buildin interfaceObjectBuilder<AdaptiveSelection>- Throws:
NullPointerException- if some of the required fields are null.
-