Class ClusterRerouteDescriptor
Descriptor for Reroute
https://opensearch.org/docs/latest
Inheritance
ClusterRerouteDescriptor
Assembly: OpenSearch.Client.dll
Syntax
public class ClusterRerouteDescriptor : RequestDescriptorBase<ClusterRerouteDescriptor, ClusterRerouteRequestParameters, IClusterRerouteRequest>, IDescriptor, IClusterRerouteRequest, IRequest<ClusterRerouteRequestParameters>, IRequest
Methods
|
Edit this page
View Source
AllocateEmptyPrimary(Func<AllocateEmptyPrimaryRerouteCommandDescriptor, IAllocateEmptyPrimaryRerouteCommand>)
Declaration
public ClusterRerouteDescriptor AllocateEmptyPrimary(Func<AllocateEmptyPrimaryRerouteCommandDescriptor, IAllocateEmptyPrimaryRerouteCommand> selector)
Parameters
Returns
|
Edit this page
View Source
AllocateReplica(Func<AllocateReplicaClusterRerouteCommandDescriptor, IAllocateClusterRerouteCommand>)
Declaration
public ClusterRerouteDescriptor AllocateReplica(Func<AllocateReplicaClusterRerouteCommandDescriptor, IAllocateClusterRerouteCommand> selector)
Parameters
Returns
|
Edit this page
View Source
AllocateStalePrimary(Func<AllocateStalePrimaryRerouteCommandDescriptor, IAllocateStalePrimaryRerouteCommand>)
Declaration
public ClusterRerouteDescriptor AllocateStalePrimary(Func<AllocateStalePrimaryRerouteCommandDescriptor, IAllocateStalePrimaryRerouteCommand> selector)
Parameters
Returns
|
Edit this page
View Source
Cancel(Func<CancelClusterRerouteCommandDescriptor, ICancelClusterRerouteCommand>)
Declaration
public ClusterRerouteDescriptor Cancel(Func<CancelClusterRerouteCommandDescriptor, ICancelClusterRerouteCommand> selector)
Parameters
Returns
|
Edit this page
View Source
ClusterManagerTimeout(Time)
Operation timeout for connection to cluster-manager node.
Declaration
public ClusterRerouteDescriptor ClusterManagerTimeout(Time clustermanagertimeout)
Parameters
Type |
Name |
Description |
Time |
clustermanagertimeout |
|
Returns
|
Edit this page
View Source
DryRun(bool?)
If true
, then the request simulates the operation only and returns the resulting state.
Declaration
public ClusterRerouteDescriptor DryRun(bool? dryrun = true)
Parameters
Type |
Name |
Description |
bool? |
dryrun |
|
Returns
|
Edit this page
View Source
Explain(bool?)
If true
, then the response contains an explanation of why the commands can or cannot be executed.
Declaration
public ClusterRerouteDescriptor Explain(bool? explain = true)
Parameters
Type |
Name |
Description |
bool? |
explain |
|
Returns
|
Edit this page
View Source
MasterTimeout(Time)
Period to wait for a connection to the cluster-manager node. If no response is received before the timeout expires, the request fails and returns an error.
Declaration
[Obsolete("Deprecated as of: 2.0.0, reason: To promote inclusive language, use `cluster_manager_timeout` instead.")]
public ClusterRerouteDescriptor MasterTimeout(Time mastertimeout)
Parameters
Type |
Name |
Description |
Time |
mastertimeout |
|
Returns
|
Edit this page
View Source
Metric(ClusterRerouteMetric?)
Limits the information returned to the specified metrics.
Declaration
public ClusterRerouteDescriptor Metric(ClusterRerouteMetric? metric)
Parameters
Returns
|
Edit this page
View Source
Move(Func<MoveClusterRerouteCommandDescriptor, IMoveClusterRerouteCommand>)
Declaration
public ClusterRerouteDescriptor Move(Func<MoveClusterRerouteCommandDescriptor, IMoveClusterRerouteCommand> selector)
Parameters
Returns
|
Edit this page
View Source
RetryFailed(bool?)
If true
, then retries allocation of shards that are blocked due to too many subsequent allocation failures.
Declaration
public ClusterRerouteDescriptor RetryFailed(bool? retryfailed = true)
Parameters
Type |
Name |
Description |
bool? |
retryfailed |
|
Returns
|
Edit this page
View Source
Timeout(Time)
Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.
Declaration
public ClusterRerouteDescriptor Timeout(Time timeout)
Parameters
Type |
Name |
Description |
Time |
timeout |
|
Returns
Implements
Extension Methods