Class ShardHealthStats
- java.lang.Object
-
- org.opensearch.client.opensearch.cluster.health.ShardHealthStats
-
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class ShardHealthStats extends java.lang.Object implements JsonpSerializable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classShardHealthStats.BuilderBuilder forShardHealthStats.
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<ShardHealthStats>_DESERIALIZERJson deserializer forShardHealthStats
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intactiveShards()Required - API name:active_shardsintinitializingShards()Required - API name:initializing_shardsstatic ShardHealthStatsof(java.util.function.Function<ShardHealthStats.Builder,ObjectBuilder<ShardHealthStats>> fn)booleanprimaryActive()Required - API name:primary_activeintrelocatingShards()Required - API name:relocating_shardsvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupShardHealthStatsDeserializer(ObjectDeserializer<ShardHealthStats.Builder> op)HealthStatusstatus()Required - API name:statusintunassignedShards()Required - API name:unassigned_shards
-
-
-
Field Detail
-
_DESERIALIZER
public static final JsonpDeserializer<ShardHealthStats> _DESERIALIZER
Json deserializer forShardHealthStats
-
-
Method Detail
-
of
public static ShardHealthStats of(java.util.function.Function<ShardHealthStats.Builder,ObjectBuilder<ShardHealthStats>> fn)
-
activeShards
public final int activeShards()
Required - API name:active_shards
-
initializingShards
public final int initializingShards()
Required - API name:initializing_shards
-
primaryActive
public final boolean primaryActive()
Required - API name:primary_active
-
relocatingShards
public final int relocatingShards()
Required - API name:relocating_shards
-
status
public final HealthStatus status()
Required - API name:status
-
unassignedShards
public final int unassignedShards()
Required - API name:unassigned_shards
-
serialize
public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
-
setupShardHealthStatsDeserializer
protected static void setupShardHealthStatsDeserializer(ObjectDeserializer<ShardHealthStats.Builder> op)
-
-