Module org.elasticsearch.server
Class ShardsAvailabilityHealthIndicatorService.ShardAllocationStatus
java.lang.Object
org.elasticsearch.cluster.routing.allocation.shards.ShardsAvailabilityHealthIndicatorService.ShardAllocationStatus
- Enclosing class:
- ShardsAvailabilityHealthIndicatorService
-
Field Summary
Modifier and TypeFieldDescriptionprotected final Metadata
protected final ShardsAvailabilityHealthIndicatorService.ShardAllocationCounts
protected final ShardsAvailabilityHealthIndicatorService.ShardAllocationCounts
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetDetails
(boolean verbose) getDiagnosis
(boolean verbose, int maxAffectedResourcesCount) Returns the diagnosis for unassigned primary and replica shards.
-
Field Details
-
primaries
-
replicas
-
clusterMetadata
-
-
Constructor Details
-
ShardAllocationStatus
-
-
Method Details
-
getStatus
-
getSymptom
-
getDetails
-
getImpacts
-
getDiagnosis
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.
-