Class StatsRequest.Builder
java.lang.Object
co.elastic.clients.elasticsearch.cluster.StatsRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<StatsRequest>
- Enclosing class:
- StatsRequest
public static class StatsRequest.Builder extends java.lang.Object implements ObjectBuilder<StatsRequest>
Builder for
StatsRequest.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description StatsRequest.BuilderaddNodeId(java.lang.String value)Add a value tonodeId(List), creating the list if needed.StatsRequestbuild()Builds aStatsRequest.StatsRequest.BuilderflatSettings(java.lang.Boolean value)Return settings in flat format (default: false)StatsRequest.BuildernodeId(java.lang.String... value)Comma-separated list of node filters used to limit returned information.StatsRequest.BuildernodeId(java.util.List<java.lang.String> value)Comma-separated list of node filters used to limit returned information.StatsRequest.Buildertimeout(java.lang.String value)Period to wait for each node to respond.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
-
nodeId
Comma-separated list of node filters used to limit returned information. Defaults to all nodes in the cluster.API name:
node_id -
nodeId
Comma-separated list of node filters used to limit returned information. Defaults to all nodes in the cluster.API name:
node_id -
addNodeId
Add a value tonodeId(List), creating the list if needed. -
flatSettings
Return settings in flat format (default: false)API name:
flat_settings -
timeout
Period to wait for each node to respond. If a node does not respond before its timeout expires, the response does not include its stats. However, timed out nodes are included in the response’s _nodes.failed property. Defaults to no timeout.API name:
timeout -
build
Builds aStatsRequest.- Specified by:
buildin interfaceObjectBuilder<StatsRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-