Class HealthResponse
java.lang.Object
org.opensearch.client.opensearch.cluster.HealthResponse
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<HealthResponse.Builder,HealthResponse>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class HealthResponse
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<HealthResponse.Builder,HealthResponse>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<HealthResponse> Json deserializer forHealthResponse -
Method Summary
Modifier and TypeMethodDescriptionfinal intRequired - The number of active primary shards.final intRequired - The total number of active primary and replica shards.final StringAPI name:active_shards_percentfinal doubleRequired - API name:active_shards_percent_as_numberfinal Map<String, AwarenessAttributeStats> Cluster health information for each awareness attribute.static HealthResponse.Builderbuilder()final StringRequired - API name:cluster_namefinal intRequired - The number of shards whose allocation has been delayed by the timeout settings.final BooleanTrue if the cluster-manager node has been discovered.final BooleanTrue if the cluster-manager node has been discovered.booleaninthashCode()final Map<String, IndexHealthStats> indices()API name:indicesfinal intRequired - The number of shards that are under initialization.final intRequired - The number of nodes that are dedicated data nodes.final intRequired - The number of unfinished fetches.final intRequired - The number of nodes within the cluster.final intRequired - The number of cluster-level changes that have not yet been executed.static HealthResponsefinal intRequired - The number of shards that are under relocation.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal HealthStatusstatus()Required - API name:statusfinal TimeAPI name:task_max_waiting_in_queuefinal longRequired - API name:task_max_waiting_in_queue_millisfinal booleantimedOut()Required - Iffalsethe response returned within the period of time that is specified by the timeout parameter (30sby default).Create a new builderToCopyableBuilderthat is initialised with the current state of this object.final intRequired - The number of shards that are not allocated.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forHealthResponse
-
-
Method Details
-
of
-
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 -
activeShardsPercent
API name:active_shards_percent -
activeShardsPercentAsNumber
public final double activeShardsPercentAsNumber()Required - API name:active_shards_percent_as_number -
awarenessAttributes
Cluster health information for each awareness attribute.API name:
awareness_attributes -
clusterName
Required - 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 -
discoveredClusterManager
True if the cluster-manager node has been discovered.API name:
discovered_cluster_manager -
discoveredMaster
True if the cluster-manager node has been discovered.API name:
discovered_master -
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
API name:task_max_waiting_in_queue -
taskMaxWaitingInQueueMillis
public final long taskMaxWaitingInQueueMillis()Required - API name:task_max_waiting_in_queue_millis -
timedOut
public final boolean timedOut()Required - Iffalsethe response returned within the period of time that is specified by the timeout parameter (30sby 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:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<HealthResponse.Builder,HealthResponse> - Returns:
- a new builder instance.
-
builder
-
setupHealthResponseDeserializer
protected static void setupHealthResponseDeserializer(ObjectDeserializer<HealthResponse.Builder> op) -
hashCode
public int hashCode() -
equals
-