Class NodesStatsRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<NodesStatsRequest>
- Enclosing class:
- NodesStatsRequest
public static class NodesStatsRequest.Builder extends ObjectBuilderBase implements ObjectBuilder<NodesStatsRequest>
NodesStatsRequest
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description NodesStatsRequest
build()
Builds aNodesStatsRequest
.NodesStatsRequest.Builder
completionFields(java.lang.String value, java.lang.String... values)
Comma-separated list or wildcard expressions of fields to include in fielddata and suggest statistics.NodesStatsRequest.Builder
completionFields(java.util.List<java.lang.String> list)
Comma-separated list or wildcard expressions of fields to include in fielddata and suggest statistics.NodesStatsRequest.Builder
fielddataFields(java.lang.String value, java.lang.String... values)
Comma-separated list or wildcard expressions of fields to include in fielddata statistics.NodesStatsRequest.Builder
fielddataFields(java.util.List<java.lang.String> list)
Comma-separated list or wildcard expressions of fields to include in fielddata statistics.NodesStatsRequest.Builder
fields(java.lang.String value, java.lang.String... values)
Comma-separated list or wildcard expressions of fields to include in the statistics.NodesStatsRequest.Builder
fields(java.util.List<java.lang.String> list)
Comma-separated list or wildcard expressions of fields to include in the statistics.NodesStatsRequest.Builder
groups(java.lang.Boolean value)
Comma-separated list of search groups to include in the search statistics.NodesStatsRequest.Builder
includeSegmentFileSizes(java.lang.Boolean value)
If true, the call reports the aggregated disk usage of each one of the Lucene index files (only applies if segment stats are requested).NodesStatsRequest.Builder
includeUnloadedSegments(java.lang.Boolean value)
If set to true segment stats will include stats for segments that are not currently loaded into memoryNodesStatsRequest.Builder
indexMetric(java.lang.String value, java.lang.String... values)
Limit the information returned for indices metric to the specific index metrics.NodesStatsRequest.Builder
indexMetric(java.util.List<java.lang.String> list)
Limit the information returned for indices metric to the specific index metrics.NodesStatsRequest.Builder
level(Level value)
Indicates whether statistics are aggregated at the cluster, index, or shard level.NodesStatsRequest.Builder
masterTimeout(Time value)
Period to wait for a connection to the master node.NodesStatsRequest.Builder
masterTimeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)
Period to wait for a connection to the master node.NodesStatsRequest.Builder
metric(java.lang.String value, java.lang.String... values)
Limit the information returned to the specified metricsNodesStatsRequest.Builder
metric(java.util.List<java.lang.String> list)
Limit the information returned to the specified metricsNodesStatsRequest.Builder
nodeId(java.lang.String value, java.lang.String... values)
Comma-separated list of node IDs or names used to limit returned information.NodesStatsRequest.Builder
nodeId(java.util.List<java.lang.String> list)
Comma-separated list of node IDs or names used to limit returned information.NodesStatsRequest.Builder
timeout(Time value)
Period to wait for a response.NodesStatsRequest.Builder
timeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)
Period to wait for a response.NodesStatsRequest.Builder
types(java.lang.String value, java.lang.String... values)
A comma-separated list of document types for the indexing index metric.NodesStatsRequest.Builder
types(java.util.List<java.lang.String> list)
A comma-separated list of document types for the indexing index metric.Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
completionFields
Comma-separated list or wildcard expressions of fields to include in fielddata and suggest statistics.API name:
completion_fields
Adds all elements of
list
tocompletionFields
. -
completionFields
public final NodesStatsRequest.Builder completionFields(java.lang.String value, java.lang.String... values)Comma-separated list or wildcard expressions of fields to include in fielddata and suggest statistics.API name:
completion_fields
Adds one or more values to
completionFields
. -
fielddataFields
Comma-separated list or wildcard expressions of fields to include in fielddata statistics.API name:
fielddata_fields
Adds all elements of
list
tofielddataFields
. -
fielddataFields
public final NodesStatsRequest.Builder fielddataFields(java.lang.String value, java.lang.String... values)Comma-separated list or wildcard expressions of fields to include in fielddata statistics.API name:
fielddata_fields
Adds one or more values to
fielddataFields
. -
fields
Comma-separated list or wildcard expressions of fields to include in the statistics.API name:
fields
Adds all elements of
list
tofields
. -
fields
Comma-separated list or wildcard expressions of fields to include in the statistics.API name:
fields
Adds one or more values to
fields
. -
groups
Comma-separated list of search groups to include in the search statistics.API name:
groups
-
includeSegmentFileSizes
If true, the call reports the aggregated disk usage of each one of the Lucene index files (only applies if segment stats are requested).API name:
include_segment_file_sizes
-
includeUnloadedSegments
If set to true segment stats will include stats for segments that are not currently loaded into memoryAPI name:
include_unloaded_segments
-
indexMetric
Limit the information returned for indices metric to the specific index metrics. It can be used only if indices (or all) metric is specified.API name:
index_metric
Adds all elements of
list
toindexMetric
. -
indexMetric
public final NodesStatsRequest.Builder indexMetric(java.lang.String value, java.lang.String... values)Limit the information returned for indices metric to the specific index metrics. It can be used only if indices (or all) metric is specified.API name:
index_metric
Adds one or more values to
indexMetric
. -
level
Indicates whether statistics are aggregated at the cluster, index, or shard level.API name:
level
-
masterTimeout
Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.API name:
master_timeout
-
masterTimeout
public final NodesStatsRequest.Builder masterTimeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.API name:
master_timeout
-
metric
Limit the information returned to the specified metricsAPI name:
metric
Adds all elements of
list
tometric
. -
metric
Limit the information returned to the specified metricsAPI name:
metric
Adds one or more values to
metric
. -
nodeId
Comma-separated list of node IDs or names used to limit returned information.API name:
node_id
Adds all elements of
list
tonodeId
. -
nodeId
Comma-separated list of node IDs or names used to limit returned information.API name:
node_id
Adds one or more values to
nodeId
. -
timeout
Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.API name:
timeout
-
timeout
public final NodesStatsRequest.Builder timeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.API name:
timeout
-
types
A comma-separated list of document types for the indexing index metric.API name:
types
Adds all elements of
list
totypes
. -
types
A comma-separated list of document types for the indexing index metric.API name:
types
Adds one or more values to
types
. -
build
Builds aNodesStatsRequest
.- Specified by:
build
in interfaceObjectBuilder<NodesStatsRequest>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-