Class DeleteSampleConfigurationAction.Request
- All Implemented Interfaces:
IndicesRequest,IndicesRequest.Replaceable,Writeable,RefCounted,TaskAwareRequest,TransportRequest
- Enclosing class:
DeleteSampleConfigurationAction
This request specifies which index or data stream should have their sampling
configurations removed. It extends AcknowledgedRequest to support
master node timeout and acknowledgment timeout settings.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.action.support.master.AcknowledgedRequest
AcknowledgedRequest.PlainNested classes/interfaces inherited from interface org.elasticsearch.action.IndicesRequest
IndicesRequest.RemoteClusterShardRequest, IndicesRequest.Replaceable, IndicesRequest.SingleIndexNoWildcardsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields inherited from class org.elasticsearch.action.support.master.AcknowledgedRequest
DEFAULT_ACK_TIMEOUTFields inherited from class org.elasticsearch.action.support.master.MasterNodeRequest
INFINITE_MASTER_NODE_TIMEOUT, TRAPPY_IMPLICIT_DEFAULT_MASTER_NODE_TIMEOUTFields inherited from interface org.elasticsearch.core.RefCounted
ALWAYS_REFERENCED -
Constructor Summary
ConstructorsConstructorDescriptionRequest(StreamInput in) Constructs a new request by deserializing from a StreamInput.Constructs a new request with specified timeouts. -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompares this request with another object for equality.inthashCode()Returns a hash code value for this request.booleanIndicates whether this request should include data streams in addition to regular indices.String[]indices()Returns the array of index names or patterns targeted by this request.Sets the array of index name for this request.Returns the indices options that control how index name resolution is performed.voidwriteTo(StreamOutput out) Serializes this request to a StreamOutput.Methods inherited from class org.elasticsearch.action.support.master.AcknowledgedRequest
ackTimeout, ackTimeout, validateMethods inherited from class org.elasticsearch.action.support.master.MasterNodeRequest
masterNodeTimeout, masterNodeTimeout, masterTermMethods inherited from class org.elasticsearch.action.ActionRequest
getShouldStoreResultMethods inherited from class org.elasticsearch.transport.AbstractTransportRequest
getParentTask, getRequestId, remoteAddress, remoteAddress, setParentTask, setRequestId, toStringMethods inherited from class org.elasticsearch.transport.TransportMessage
decRef, hasReferences, incRef, tryIncRefMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.action.IndicesRequest.Replaceable
allowsCrossProject, allowsRemoteIndices, getProjectRouting, getResolvedIndexExpressions, setResolvedIndexExpressionsMethods inherited from interface org.elasticsearch.core.RefCounted
decRef, hasReferences, incRef, mustIncRef, tryIncRefMethods inherited from interface org.elasticsearch.tasks.TaskAwareRequest
createTask, createTask, getDescription, setParentTask
-
Constructor Details
-
Request
Constructs a new request with specified timeouts.- Parameters:
masterNodeTimeout- the timeout for master node operations, or null for defaultackTimeout- the timeout for acknowledgment, or null for default
-
Request
Constructs a new request by deserializing from a StreamInput.- Parameters:
in- the stream input to read from- Throws:
IOException- if an I/O error occurs during deserialization
-
-
Method Details
-
writeTo
Serializes this request to a StreamOutput.This method is called during transport layer serialization when sending the request to remote nodes.
- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classAcknowledgedRequest<DeleteSampleConfigurationAction.Request>- Parameters:
out- the stream output to write to, must not be null- Throws:
IOException- if an I/O error occurs during serialization
-
indices
Returns the array of index names or patterns targeted by this request.The returned array contains the names of indices and/or data streams from which sampling configurations should be deleted. Index patterns using wildcards are supported according to the configured
indicesOptions().- Specified by:
indicesin interfaceIndicesRequest- Returns:
- an array of index names or patterns, never null but may be empty
-
indices
Sets the array of index name for this request.Specifies which index and/or data stream should have their sampling configurations deleted. Supports individual index names
- Specified by:
indicesin interfaceIndicesRequest.Replaceable- Parameters:
indices- the index names or patterns to target, null will be converted to empty array- Returns:
- this request instance for method chaining
-
includeDataStreams
public boolean includeDataStreams()Indicates whether this request should include data streams in addition to regular indices.- Specified by:
includeDataStreamsin interfaceIndicesRequest- Returns:
- true to include data streams, false to exclude them
-
indicesOptions
Returns the indices options that control how index name resolution is performed.This configuration specifies how wildcards are expanded, whether closed indices are included, and how missing indices are handled. The strict single index option ensures proper validation and prevents accidental broad operations.
- Specified by:
indicesOptionsin interfaceIndicesRequest- Returns:
- the indices options for this request, never null
- See Also:
-
equals
Compares this request with another object for equality.Two delete sampling configuration requests are considered equal if they target the same indices and have the same timeout values.
-
hashCode
public int hashCode()Returns a hash code value for this request.The hash code is computed based on the target indices and timeout values, ensuring that equal requests produce the same hash code.
-