Class RerouteRequest
java.lang.Object
org.opensearch.client.opensearch._types.RequestBase
org.opensearch.client.opensearch.cluster.RerouteRequest
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<RerouteRequest.Builder,RerouteRequest>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public final class RerouteRequest
extends RequestBase
implements PlainJsonSerializable, ToCopyableBuilder<RerouteRequest.Builder,RerouteRequest>
Allows to manually change the allocation of individual shards in the cluster.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.opensearch.client.opensearch._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 TypeMethodDescriptionprotected voidapplyQueryParameters(Map<String, String> params) static RerouteRequest.Builderbuilder()final TimeThe amount of time to wait for a response from the cluster manager node.commands()Defines the reroute commands to perform, eithermove,cancel, orallocate.final BooleandryRun()Whentrue, the request simulates the operation and returns the resulting state.booleanfinal Booleanexplain()Whentrue, the response contains an explanation of why reroute certain commands can or cannot be executed.inthashCode()final TimeDeprecated.final List<ClusterRerouteMetric> metric()Limits the information returned to the specified metrics.static RerouteRequestfinal BooleanWhentrue, retries shard allocation if it was blocked because of too many subsequent 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()A duration.Create a new builderToCopyableBuilderthat is initialised with the current state of this object.Methods inherited from class org.opensearch.client.opensearch._types.RequestBase
errorTrace, humanMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forRerouteRequest -
_ENDPOINT
Endpoint "cluster.reroute".
-
-
Method Details
-
of
-
clusterManagerTimeout
The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see Common parameters.API name:
cluster_manager_timeout -
commands
Defines the reroute commands to perform, eithermove,cancel, orallocate.API name:
commands -
dryRun
Whentrue, the request simulates the operation and returns the resulting state.API name:
dry_run -
explain
Whentrue, the response contains an explanation of why reroute certain commands can or cannot be executed.API name:
explain -
masterTimeout
Deprecated.A duration. Units can benanos,micros,ms(milliseconds),s(seconds),m(minutes),h(hours) andd(days). Also accepts0without a unit and-1to indicate an unspecified value.API name:
master_timeout -
metric
Limits the information returned to the specified metrics.API name:
metric -
retryFailed
Whentrue, retries shard allocation if it was blocked because of too many subsequent failures.API name:
retry_failed -
timeout
A duration. Units can benanos,micros,ms(milliseconds),s(seconds),m(minutes),h(hours) andd(days). Also accepts0without a unit and-1to indicate an unspecified value.API name:
timeout -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<RerouteRequest.Builder,RerouteRequest> - Returns:
- a new builder instance.
-
builder
-
setupRerouteRequestDeserializer
protected static void setupRerouteRequestDeserializer(ObjectDeserializer<RerouteRequest.Builder> op) -
applyQueryParameters
- Overrides:
applyQueryParametersin classRequestBase
-
hashCode
public int hashCode() -
equals
-