Class ClusterStateRequestBuilder
java.lang.Object
org.elasticsearch.action.ActionRequestBuilder<Request,Response>
org.elasticsearch.action.support.master.MasterNodeOperationRequestBuilder<Request,Response,RequestBuilder>
org.elasticsearch.action.support.master.MasterNodeReadOperationRequestBuilder<ClusterStateRequest,ClusterStateResponse,ClusterStateRequestBuilder>
org.elasticsearch.action.admin.cluster.state.ClusterStateRequestBuilder
public class ClusterStateRequestBuilder
extends MasterNodeReadOperationRequestBuilder<ClusterStateRequest,ClusterStateResponse,ClusterStateRequestBuilder>
-
Field Summary
Fields inherited from class org.elasticsearch.action.ActionRequestBuilder
action, client, request
-
Constructor Summary
ConstructorDescriptionClusterStateRequestBuilder(ElasticsearchClient client, ClusterStateAction action)
-
Method Summary
Modifier and TypeMethodDescriptionall()
Include all dataclear()
Do not include any datasetBlocks(boolean filter)
setCustoms(boolean filter)
Should the cluster state result include theClusterState.Custom
.setIndices(String... indices)
WhensetMetadata(boolean)
is set, which indices to return theIndexMetadata
for.setIndicesOptions(IndicesOptions indicesOptions)
setMetadata(boolean filter)
Should the cluster state result include theMetadata
.setNodes(boolean filter)
Should the cluster state result include theDiscoveryNodes
.setRoutingTable(boolean filter)
Should the cluster state result include theRoutingTable
.setWaitForMetadataVersion(long waitForMetadataVersion)
Causes the request to wait for the metadata version to advance to at least the given version.setWaitForTimeOut(org.elasticsearch.core.TimeValue waitForTimeout)
IfClusterStateRequest.waitForMetadataVersion()
is set then this determines how long to waitMethods inherited from class org.elasticsearch.action.support.master.MasterNodeReadOperationRequestBuilder
setLocal
Methods inherited from class org.elasticsearch.action.support.master.MasterNodeOperationRequestBuilder
setMasterNodeTimeout, setMasterNodeTimeout
-
Constructor Details
-
ClusterStateRequestBuilder
-
-
Method Details
-
all
Include all data -
clear
Do not include any data -
setBlocks
-
setMetadata
Should the cluster state result include theMetadata
. Defaults totrue
. -
setNodes
Should the cluster state result include theDiscoveryNodes
. Defaults totrue
. -
setCustoms
Should the cluster state result include theClusterState.Custom
. Defaults totrue
. -
setRoutingTable
Should the cluster state result include theRoutingTable
. Defaults totrue
. -
setIndices
WhensetMetadata(boolean)
is set, which indices to return theIndexMetadata
for. Defaults to all indices. -
setIndicesOptions
-
setWaitForMetadataVersion
Causes the request to wait for the metadata version to advance to at least the given version.- Parameters:
waitForMetadataVersion
- The metadata version for which to wait
-
setWaitForTimeOut
public ClusterStateRequestBuilder setWaitForTimeOut(org.elasticsearch.core.TimeValue waitForTimeout)IfClusterStateRequest.waitForMetadataVersion()
is set then this determines how long to wait
-