Class HealthRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<HealthRequest.Builder>
co.elastic.clients.elasticsearch.cluster.HealthRequest.Builder
- All Implemented Interfaces:
WithJson<HealthRequest.Builder>,ObjectBuilder<HealthRequest>
- Enclosing class:
- HealthRequest
public static class HealthRequest.Builder
extends RequestBase.AbstractBuilder<HealthRequest.Builder>
implements ObjectBuilder<HealthRequest>
Builder for
HealthRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aHealthRequest.final HealthRequest.BuilderexpandWildcards(ExpandWildcard value, ExpandWildcard... values) Expand wildcard expression to concrete indices that are open, closed or both.final HealthRequest.BuilderexpandWildcards(List<ExpandWildcard> list) Expand wildcard expression to concrete indices that are open, closed or both.final HealthRequest.BuilderA comma-separated list of data streams, indices, and index aliases that limit the request.final HealthRequest.BuilderA comma-separated list of data streams, indices, and index aliases that limit the request.final HealthRequest.BuilderReturn health information at a specific level of detail.final HealthRequest.BuilderIf true, retrieve information from the local node only.final HealthRequest.BuildermasterTimeout(Time value) The period to wait for a connection to the master node.final HealthRequest.BuilderThe period to wait for a connection to the master node.protected HealthRequest.Builderself()final HealthRequest.BuilderThe period to wait for a response.final HealthRequest.BuilderThe period to wait for a response.final HealthRequest.BuilderWait for the specified number of active shards.final HealthRequest.BuilderWait for the specified number of active shards.final HealthRequest.BuilderwaitForEvents(WaitForEvents value) Wait until all currently queued events with the given priority are processed.final HealthRequest.BuilderwaitForNodes(String value) Wait until the specified number (N) of nodes is available.final HealthRequest.BuilderWait (until the timeout expires) for the cluster to have no shard initializations.final HealthRequest.BuilderwaitForNoRelocatingShards(Boolean value) Wait (until the timeout expires) for the cluster to have no shard relocations.final HealthRequest.BuilderwaitForStatus(HealthStatus value) Wait (until the timeout expires) for the cluster to reach a specific health status (or a better status).Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
expandWildcards
Expand wildcard expression to concrete indices that are open, closed or both.API name:
expand_wildcardsAdds all elements of
listtoexpandWildcards. -
expandWildcards
Expand wildcard expression to concrete indices that are open, closed or both.API name:
expand_wildcardsAdds one or more values to
expandWildcards. -
index
A comma-separated list of data streams, indices, and index aliases that limit the request. Wildcard expressions (*) are supported. To target all data streams and indices in a cluster, omit this parameter or use _all or*.API name:
indexAdds all elements of
listtoindex. -
index
A comma-separated list of data streams, indices, and index aliases that limit the request. Wildcard expressions (*) are supported. To target all data streams and indices in a cluster, omit this parameter or use _all or*.API name:
indexAdds one or more values to
index. -
level
Return health information at a specific level of detail.API name:
level -
local
If true, retrieve information from the local node only. If false, retrieve information from the master node.API name:
local -
masterTimeout
The period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.API name:
master_timeout -
masterTimeout
The period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.API name:
master_timeout -
timeout
The period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.API name:
timeout -
timeout
The period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.API name:
timeout -
waitForActiveShards
Wait for the specified number of active shards. Useallto wait for all shards in the cluster to be active. Use0to not wait.API name:
wait_for_active_shards -
waitForActiveShards
public final HealthRequest.Builder waitForActiveShards(Function<WaitForActiveShards.Builder, ObjectBuilder<WaitForActiveShards>> fn) Wait for the specified number of active shards. Useallto wait for all shards in the cluster to be active. Use0to not wait.API name:
wait_for_active_shards -
waitForEvents
Wait until all currently queued events with the given priority are processed.API name:
wait_for_events -
waitForNoInitializingShards
Wait (until the timeout expires) for the cluster to have no shard initializations. If false, the request does not wait for initializing shards.API name:
wait_for_no_initializing_shards -
waitForNoRelocatingShards
Wait (until the timeout expires) for the cluster to have no shard relocations. If false, the request not wait for relocating shards.API name:
wait_for_no_relocating_shards -
waitForNodes
Wait until the specified number (N) of nodes is available. It also accepts>=N,<=N,>Nand<N. Alternatively, use the notationsge(N),le(N),gt(N), andlt(N).API name:
wait_for_nodes -
waitForStatus
Wait (until the timeout expires) for the cluster to reach a specific health status (or a better status). A green status is better than yellow and yellow is better than red. By default, the request does not wait for a particular status.API name:
wait_for_status -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<HealthRequest.Builder>
-
build
Builds aHealthRequest.- Specified by:
buildin interfaceObjectBuilder<HealthRequest>- Throws:
NullPointerException- if some of the required fields are null.
-