public class ClusterAllocationExplainRequestBuilder extends MasterNodeOperationRequestBuilder<ClusterAllocationExplainRequest,ClusterAllocationExplainResponse,ClusterAllocationExplainRequestBuilder>
action, client, request
Constructor and Description |
---|
ClusterAllocationExplainRequestBuilder(ElasticsearchClient client,
ClusterAllocationExplainAction action) |
Modifier and Type | Method and Description |
---|---|
ClusterAllocationExplainRequestBuilder |
setIndex(java.lang.String index)
The index name to use when finding the shard to explain
|
ClusterAllocationExplainRequestBuilder |
setPrimary(boolean primary)
Whether the primary or replica should be explained
|
ClusterAllocationExplainRequestBuilder |
setShard(int shard)
The shard number to use when finding the shard to explain
|
ClusterAllocationExplainRequestBuilder |
useAnyUnassignedShard()
Signal that the first unassigned shard should be used
|
setMasterNodeTimeout, setMasterNodeTimeout
beforeExecute, execute, execute, get, get, get, request
public ClusterAllocationExplainRequestBuilder(ElasticsearchClient client, ClusterAllocationExplainAction action)
public ClusterAllocationExplainRequestBuilder setIndex(java.lang.String index)
public ClusterAllocationExplainRequestBuilder setShard(int shard)
public ClusterAllocationExplainRequestBuilder setPrimary(boolean primary)
public ClusterAllocationExplainRequestBuilder useAnyUnassignedShard()