Class NodesStatsRequestBuilder
java.lang.Object
org.elasticsearch.action.ActionRequestBuilder<Request,Response>
org.elasticsearch.action.support.nodes.NodesOperationRequestBuilder<NodesStatsRequest,NodesStatsResponse,NodesStatsRequestBuilder>
org.elasticsearch.action.admin.cluster.node.stats.NodesStatsRequestBuilder
public class NodesStatsRequestBuilder
extends NodesOperationRequestBuilder<NodesStatsRequest,NodesStatsResponse,NodesStatsRequestBuilder>
-
Field Summary
Fields inherited from class org.elasticsearch.action.ActionRequestBuilder
action, client, request
-
Constructor Summary
ConstructorDescriptionNodesStatsRequestBuilder(ElasticsearchClient client, NodesStatsAction action)
-
Method Summary
Modifier and TypeMethodDescriptionAdd a single metric to the request.addMetrics(String... metrics)
Add an array of metrics to the request.all()
Sets all the request flags.clear()
Clears all stats flags.setIndices(boolean indices)
Should the node indices stats be returned.setIndices(CommonStatsFlags indices)
Should the node indices stats be returned.Methods inherited from class org.elasticsearch.action.support.nodes.NodesOperationRequestBuilder
setNodesIds, setTimeout, setTimeout
-
Constructor Details
-
NodesStatsRequestBuilder
-
-
Method Details
-
all
Sets all the request flags. -
clear
Clears all stats flags. -
addMetric
Add a single metric to the request.- Parameters:
metric
- Name of metric as a string.- Returns:
- This, for request chaining.
-
addMetrics
Add an array of metrics to the request.- Parameters:
metrics
- Metric names as strings.- Returns:
- This, for request chaining.
-
setIndices
Should the node indices stats be returned. -
setIndices
Should the node indices stats be returned.
-