Class RerouteRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.cluster.RerouteRequest
- All Implemented Interfaces:
JsonpSerializable
Allows to manually change the allocation of individual shards in the cluster.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<RerouteRequest>Json deserializer forRerouteRequeststatic final Endpoint<RerouteRequest,RerouteResponse, ErrorResponse> Endpoint "cluster.reroute". -
Method Summary
Modifier and TypeMethodDescriptioncommands()Defines the commands to perform.final BooleandryRun()If true, then the request simulates the operation only and returns the resulting state.final Booleanexplain()If true, then the response contains an explanation of why the commands can or cannot be executed.final TimePeriod to wait for a connection to the master node.metric()Limits the information returned to the specified metrics.static RerouteRequestfinal BooleanIf true, then retries allocation of shards that are blocked due to too many subsequent allocation failures.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal Timetimeout()Period to wait for a response.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Json deserializer forRerouteRequest -
_ENDPOINT
Endpoint "cluster.reroute".
-
-
Method Details
-
of
-
commands
Defines the commands to perform.API name:
commands -
dryRun
If true, then the request simulates the operation only and returns the resulting state.API name:
dry_run -
explain
If true, then the response contains an explanation of why the commands can or cannot be executed.API name:
explain -
masterTimeout
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 -
metric
Limits the information returned to the specified metrics.API name:
metric -
retryFailed
If true, then retries allocation of shards that are blocked due to too many subsequent allocation failures.API name:
retry_failed -
timeout
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 -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupRerouteRequestDeserializer
protected static void setupRerouteRequestDeserializer(ObjectDeserializer<RerouteRequest.Builder> op)
-