Class NodeStatistics
- java.lang.Object
-
- org.opensearch.client.opensearch._types.NodeStatistics
-
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class NodeStatistics extends java.lang.Object implements JsonpSerializable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNodeStatistics.BuilderBuilder forNodeStatistics.
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<NodeStatistics>_DESERIALIZERJson deserializer forNodeStatistics
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intfailed()Required - Number of nodes that rejected the request or failed to respond.java.util.List<ErrorCause>failures()API name:failuresstatic NodeStatisticsof(java.util.function.Function<NodeStatistics.Builder,ObjectBuilder<NodeStatistics>> fn)voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupNodeStatisticsDeserializer(ObjectDeserializer<NodeStatistics.Builder> op)intsuccessful()Required - Number of nodes that responded successfully to the request.inttotal()Required - Total number of nodes selected by the request.
-
-
-
Field Detail
-
_DESERIALIZER
public static final JsonpDeserializer<NodeStatistics> _DESERIALIZER
Json deserializer forNodeStatistics
-
-
Method Detail
-
of
public static NodeStatistics of(java.util.function.Function<NodeStatistics.Builder,ObjectBuilder<NodeStatistics>> fn)
-
failures
public final java.util.List<ErrorCause> failures()
API name:failures
-
total
public final int total()
Required - Total number of nodes selected by the request.API name:
total
-
successful
public final int successful()
Required - Number of nodes that responded successfully to the request.API name:
successful
-
failed
public final int failed()
Required - Number of nodes that rejected the request or failed to respond. If this value is not 0, a reason for the rejection or failure is included in the response.API name:
failed
-
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)
-
setupNodeStatisticsDeserializer
protected static void setupNodeStatisticsDeserializer(ObjectDeserializer<NodeStatistics.Builder> op)
-
-