Class HealthResponseBody
java.lang.Object
co.elastic.clients.elasticsearch.cluster.health.HealthResponseBody
- All Implemented Interfaces:
JsonpSerializable
- Direct Known Subclasses:
HealthResponse
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
-
Constructor Summary
ModifierConstructorDescriptionprotected
HealthResponseBody
(HealthResponseBody.AbstractBuilder<?> builder) -
Method Summary
Modifier and TypeMethodDescriptionfinal int
Required - The number of active primary shards.final int
Required - The total number of active primary and replica shards.final String
Required - The ratio of active shards in the cluster expressed as a percentage.final String
Required - The name of the cluster.final int
Required - The number of shards whose allocation has been delayed by the timeout settings.final Map<String,
IndexHealthStats> indices()
API name:indices
final int
Required - The number of shards that are under initialization.final int
Required - The number of nodes that are dedicated data nodes.final int
Required - The number of unfinished fetches.final int
Required - The number of nodes within the cluster.final int
Required - The number of cluster-level changes that have not yet been executed.final int
Required - The number of shards that are under relocation.void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static <BuilderT extends HealthResponseBody.AbstractBuilder<BuilderT>>
voidsetupHealthResponseBodyDeserializer
(ObjectDeserializer<BuilderT> op) final HealthStatus
status()
Required - API name:status
final Time
The time since the earliest initiated task is waiting for being performed.final long
Required - The time expressed in milliseconds since the earliest initiated task is waiting for being performed.final boolean
timedOut()
Required - If false the response returned within the period of time that is specified by the timeout parameter (30s by default)toString()
final int
Required - The number of shards that are not allocated.
-
Constructor Details
-
HealthResponseBody
-
-
Method Details
-
activePrimaryShards
public final int activePrimaryShards()Required - The number of active primary shards.API name:
active_primary_shards
-
activeShards
public final int activeShards()Required - The total number of active primary and replica shards.API name:
active_shards
-
activeShardsPercentAsNumber
Required - The ratio of active shards in the cluster expressed as a percentage.API name:
active_shards_percent_as_number
-
clusterName
Required - The name of the cluster.API name:
cluster_name
-
delayedUnassignedShards
public final int delayedUnassignedShards()Required - The number of shards whose allocation has been delayed by the timeout settings.API name:
delayed_unassigned_shards
-
indices
API name:indices
-
initializingShards
public final int initializingShards()Required - The number of shards that are under initialization.API name:
initializing_shards
-
numberOfDataNodes
public final int numberOfDataNodes()Required - The number of nodes that are dedicated data nodes.API name:
number_of_data_nodes
-
numberOfInFlightFetch
public final int numberOfInFlightFetch()Required - The number of unfinished fetches.API name:
number_of_in_flight_fetch
-
numberOfNodes
public final int numberOfNodes()Required - The number of nodes within the cluster.API name:
number_of_nodes
-
numberOfPendingTasks
public final int numberOfPendingTasks()Required - The number of cluster-level changes that have not yet been executed.API name:
number_of_pending_tasks
-
relocatingShards
public final int relocatingShards()Required - The number of shards that are under relocation.API name:
relocating_shards
-
status
Required - API name:status
-
taskMaxWaitingInQueue
The time since the earliest initiated task is waiting for being performed.API name:
task_max_waiting_in_queue
-
taskMaxWaitingInQueueMillis
public final long taskMaxWaitingInQueueMillis()Required - The time expressed in milliseconds since the earliest initiated task is waiting for being performed.API name:
task_max_waiting_in_queue_millis
-
timedOut
public final boolean timedOut()Required - If false the response returned within the period of time that is specified by the timeout parameter (30s by default)API name:
timed_out
-
unassignedShards
public final int unassignedShards()Required - The number of shards that are not allocated.API name:
unassigned_shards
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupHealthResponseBodyDeserializer
protected static <BuilderT extends HealthResponseBody.AbstractBuilder<BuilderT>> void setupHealthResponseBodyDeserializer(ObjectDeserializer<BuilderT> op)
-