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 |
setIncludeDiskInfo(boolean includeDiskInfo)
Whether to include information about the gathered disk information of nodes in the cluster
|
ClusterAllocationExplainRequestBuilder |
setIncludeYesDecisions(boolean includeYesDecisions)
Whether to include "YES" decider decisions in the response instead of only "NO" decisions
|
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 setIncludeYesDecisions(boolean includeYesDecisions)
public ClusterAllocationExplainRequestBuilder setIncludeDiskInfo(boolean includeDiskInfo)
public ClusterAllocationExplainRequestBuilder useAnyUnassignedShard()