Class RepositoryVerifyIntegrityRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<RepositoryVerifyIntegrityRequest.Builder>
co.elastic.clients.elasticsearch.snapshot.RepositoryVerifyIntegrityRequest.Builder
- All Implemented Interfaces:
WithJson<RepositoryVerifyIntegrityRequest.Builder>
,ObjectBuilder<RepositoryVerifyIntegrityRequest>
- Enclosing class:
- RepositoryVerifyIntegrityRequest
public static class RepositoryVerifyIntegrityRequest.Builder
extends RequestBase.AbstractBuilder<RepositoryVerifyIntegrityRequest.Builder>
implements ObjectBuilder<RepositoryVerifyIntegrityRequest>
Builder for
RepositoryVerifyIntegrityRequest
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionblobThreadPoolConcurrency
(Integer value) Ifverify_blob_contents
istrue
, this parameter specifies how many blobs to verify at once.build()
Builds aRepositoryVerifyIntegrityRequest
.The maximum number of index snapshots to verify concurrently within each index verification.The number of indices to verify concurrently.maxBytesPerSec
(String value) Ifverify_blob_contents
istrue
, this parameter specifies the maximum amount of data that Elasticsearch will read from the repository every second.maxFailedShardSnapshots
(Integer value) The number of shard snapshot failures to track during integrity verification, in order to avoid excessive resource usage.metaThreadPoolConcurrency
(Integer value) The maximum number of snapshot metadata operations to run concurrently.Required - The name of the snapshot repository.Required - The name of the snapshot repository.protected RepositoryVerifyIntegrityRequest.Builder
self()
The number of snapshots to verify concurrently.verifyBlobContents
(Boolean value) Indicates whether to verify the checksum of every data blob in the repository.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
blobThreadPoolConcurrency
public final RepositoryVerifyIntegrityRequest.Builder blobThreadPoolConcurrency(@Nullable Integer value) Ifverify_blob_contents
istrue
, this parameter specifies how many blobs to verify at once.API name:
blob_thread_pool_concurrency
-
indexSnapshotVerificationConcurrency
public final RepositoryVerifyIntegrityRequest.Builder indexSnapshotVerificationConcurrency(@Nullable Integer value) The maximum number of index snapshots to verify concurrently within each index verification.API name:
index_snapshot_verification_concurrency
-
indexVerificationConcurrency
public final RepositoryVerifyIntegrityRequest.Builder indexVerificationConcurrency(@Nullable Integer value) The number of indices to verify concurrently. The default behavior is to use the entiresnapshot_meta
thread pool.API name:
index_verification_concurrency
-
maxBytesPerSec
Ifverify_blob_contents
istrue
, this parameter specifies the maximum amount of data that Elasticsearch will read from the repository every second.API name:
max_bytes_per_sec
-
maxFailedShardSnapshots
public final RepositoryVerifyIntegrityRequest.Builder maxFailedShardSnapshots(@Nullable Integer value) The number of shard snapshot failures to track during integrity verification, in order to avoid excessive resource usage. If your repository contains more than this number of shard snapshot failures, the verification will fail.API name:
max_failed_shard_snapshots
-
metaThreadPoolConcurrency
public final RepositoryVerifyIntegrityRequest.Builder metaThreadPoolConcurrency(@Nullable Integer value) The maximum number of snapshot metadata operations to run concurrently. The default behavior is to use at most half of thesnapshot_meta
thread pool at once.API name:
meta_thread_pool_concurrency
-
name
Required - The name of the snapshot repository.API name:
repository
Adds all elements of
list
toname
. -
name
Required - The name of the snapshot repository.API name:
repository
Adds one or more values to
name
. -
snapshotVerificationConcurrency
public final RepositoryVerifyIntegrityRequest.Builder snapshotVerificationConcurrency(@Nullable Integer value) The number of snapshots to verify concurrently. The default behavior is to use at most half of thesnapshot_meta
thread pool at once.API name:
snapshot_verification_concurrency
-
verifyBlobContents
Indicates whether to verify the checksum of every data blob in the repository. If this feature is enabled, Elasticsearch will read the entire repository contents, which may be extremely slow and expensive.API name:
verify_blob_contents
-
self
- Specified by:
self
in classRequestBase.AbstractBuilder<RepositoryVerifyIntegrityRequest.Builder>
-
build
Builds aRepositoryVerifyIntegrityRequest
.- Specified by:
build
in interfaceObjectBuilder<RepositoryVerifyIntegrityRequest>
- Throws:
NullPointerException
- if some of the required fields are null.
-