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
Constructors Constructor Description NodesStatsRequestBuilder(ElasticsearchClient client, NodesStatsAction action) -
Method Summary
Modifier and Type Method Description NodesStatsRequestBuilderaddMetric(java.lang.String metric)Add a single metric to the request.NodesStatsRequestBuilderaddMetrics(java.lang.String... metrics)Add an array of metrics to the request.NodesStatsRequestBuilderall()Sets all the request flags.NodesStatsRequestBuilderclear()Clears all stats flags.NodesStatsRequestBuildersetIndices(boolean indices)Should the node indices stats be returned.NodesStatsRequestBuildersetIndices(CommonStatsFlags indices)Should the node indices stats be returned.Methods inherited from class org.elasticsearch.action.support.nodes.NodesOperationRequestBuilder
setNodesIds, setTimeout, setTimeoutMethods inherited from class org.elasticsearch.action.ActionRequestBuilder
execute, execute, get, get, get, requestMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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.
-