Class RepositoryAnalyzeRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<RepositoryAnalyzeRequest.Builder>
co.elastic.clients.elasticsearch.snapshot.RepositoryAnalyzeRequest.Builder
- All Implemented Interfaces:
WithJson<RepositoryAnalyzeRequest.Builder>
,ObjectBuilder<RepositoryAnalyzeRequest>
- Enclosing class:
- RepositoryAnalyzeRequest
public static class RepositoryAnalyzeRequest.Builder
extends RequestBase.AbstractBuilder<RepositoryAnalyzeRequest.Builder>
implements ObjectBuilder<RepositoryAnalyzeRequest>
Builder for
RepositoryAnalyzeRequest
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe total number of blobs to write to the repository during the test.build()
Builds aRepositoryAnalyzeRequest
.concurrency
(Integer value) The number of operations to run concurrently during the test.Indicates whether to return detailed results, including timing information for every operation performed during the analysis.earlyReadNodeCount
(Integer value) The number of nodes on which to perform an early read operation while writing each blob.maxBlobSize
(String value) The maximum size of a blob to be written during the test.maxTotalDataSize
(String value) An upper limit on the total size of all the blobs written during the test.Required - The name of the repository.rareActionProbability
(Double value) The probability of performing a rare action such as an early read, an overwrite, or an aborted write on each blob.rarelyAbortWrites
(Boolean value) Indicates whether to rarely cancel writes before they complete.readNodeCount
(Integer value) The number of nodes on which to read a blob after writing.registerOperationCount
(Integer value) The minimum number of linearizable register operations to perform in total.The seed for the pseudo-random number generator used to generate the list of operations performed during the test.protected RepositoryAnalyzeRequest.Builder
self()
The period of time to wait for the test to complete.The period of time to wait for the test to complete.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
-
blobCount
The total number of blobs to write to the repository during the test. For realistic experiments, you should set it to at least2000
.API name:
blob_count
-
concurrency
The number of operations to run concurrently during the test.API name:
concurrency
-
detailed
Indicates whether to return detailed results, including timing information for every operation performed during the analysis. If false, it returns only a summary of the analysis.API name:
detailed
-
earlyReadNodeCount
The number of nodes on which to perform an early read operation while writing each blob. Early read operations are only rarely performed.API name:
early_read_node_count
-
maxBlobSize
The maximum size of a blob to be written during the test. For realistic experiments, you should set it to at least2gb
.API name:
max_blob_size
-
maxTotalDataSize
An upper limit on the total size of all the blobs written during the test. For realistic experiments, you should set it to at least1tb
.API name:
max_total_data_size
-
name
Required - The name of the repository.API name:
repository
-
rareActionProbability
The probability of performing a rare action such as an early read, an overwrite, or an aborted write on each blob.API name:
rare_action_probability
-
rarelyAbortWrites
Indicates whether to rarely cancel writes before they complete.API name:
rarely_abort_writes
-
readNodeCount
The number of nodes on which to read a blob after writing.API name:
read_node_count
-
registerOperationCount
The minimum number of linearizable register operations to perform in total. For realistic experiments, you should set it to at least100
.API name:
register_operation_count
-
seed
The seed for the pseudo-random number generator used to generate the list of operations performed during the test. To repeat the same set of operations in multiple experiments, use the same seed in each experiment. Note that the operations are performed concurrently so might not always happen in the same order on each run.API name:
seed
-
timeout
The period of time to wait for the test to complete. If no response is received before the timeout expires, the test is cancelled and returns an error.API name:
timeout
-
timeout
public final RepositoryAnalyzeRequest.Builder timeout(Function<Time.Builder, ObjectBuilder<Time>> fn) The period of time to wait for the test to complete. If no response is received before the timeout expires, the test is cancelled and returns an error.API name:
timeout
-
self
- Specified by:
self
in classRequestBase.AbstractBuilder<RepositoryAnalyzeRequest.Builder>
-
build
Builds aRepositoryAnalyzeRequest
.- Specified by:
build
in interfaceObjectBuilder<RepositoryAnalyzeRequest>
- Throws:
NullPointerException
- if some of the required fields are null.
-