Class ShardsAvailabilityHealthIndicatorService.ShardAllocationStatus

java.lang.Object
org.elasticsearch.cluster.routing.allocation.shards.ShardsAvailabilityHealthIndicatorService.ShardAllocationStatus
Enclosing class:
ShardsAvailabilityHealthIndicatorService

public class ShardsAvailabilityHealthIndicatorService.ShardAllocationStatus extends Object
  • Field Details

  • Constructor Details

    • ShardAllocationStatus

      public ShardAllocationStatus(Metadata clusterMetadata)
  • Method Details

    • getStatus

      public HealthStatus getStatus()
    • getSymptom

      public String getSymptom()
    • getDetails

      public HealthIndicatorDetails getDetails(boolean verbose)
    • getImpacts

      public List<HealthIndicatorImpact> getImpacts()
    • getDiagnosis

      public List<Diagnosis> getDiagnosis(boolean verbose, int maxAffectedResourcesCount)
      Returns the diagnosis for unassigned primary and replica shards.
      Parameters:
      verbose - true if the diagnosis should be generated, false if they should be omitted.
      maxAffectedResourcesCount - the max number of affected resources to be returned as part of the diagnosis
      Returns:
      The diagnoses list the indicator identified. Alternatively, an empty list if none were found or verbose is false.