Class NodeStatistics
java.lang.Object
co.elastic.clients.elasticsearch._types.NodeStatistics
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class NodeStatistics extends java.lang.Object implements JsonpSerializable
Contains statistics about the number of nodes selected by the request.
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NodeStatistics.Builder
Builder forNodeStatistics
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<NodeStatistics>
_DESERIALIZER
Json deserializer forNodeStatistics
-
Method Summary
Modifier and Type Method Description int
failed()
Required - Number of nodes that rejected the request or failed to respond.java.util.List<ErrorCause>
failures()
API name:failures
static NodeStatistics
of(java.util.function.Function<NodeStatistics.Builder,ObjectBuilder<NodeStatistics>> fn)
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 void
setupNodeStatisticsDeserializer(ObjectDeserializer<NodeStatistics.Builder> op)
int
successful()
Required - Number of nodes that responded successfully to the request.java.lang.String
toString()
int
total()
Required - Total number of nodes selected by the request.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forNodeStatistics
-
-
Method Details
-
of
public static NodeStatistics of(java.util.function.Function<NodeStatistics.Builder,ObjectBuilder<NodeStatistics>> fn) -
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
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
setupNodeStatisticsDeserializer
protected static void setupNodeStatisticsDeserializer(ObjectDeserializer<NodeStatistics.Builder> op)
-