Class ClusterAllocationExplainRequestBuilder


Builder for requests to explain the allocation of a shard in the cluster
  • Constructor Details

  • Method Details

    • setIndex

      public  index)
      The index name to use when finding the shard to explain
    • setShard

      public ClusterAllocationExplainRequestBuilder setShard(int shard)
      The shard number to use when finding the shard to explain
    • setPrimary

      public ClusterAllocationExplainRequestBuilder setPrimary(boolean primary)
      Whether the primary or replica should be explained
    • setIncludeYesDecisions

      public ClusterAllocationExplainRequestBuilder setIncludeYesDecisions(boolean includeYesDecisions)
      Whether to include "YES" decider decisions in the response instead of only "NO" decisions
    • setIncludeDiskInfo

      public ClusterAllocationExplainRequestBuilder setIncludeDiskInfo(boolean includeDiskInfo)
      Whether to include information about the gathered disk information of nodes in the cluster
    • setCurrentNode

      public  currentNode)
      Requests the explain API to explain an already assigned replica shard currently allocated to the given node.
    • useAnyUnassignedShard

      public ClusterAllocationExplainRequestBuilder useAnyUnassignedShard()
      Signal that the first unassigned shard should be used