Class NodeStatistics
java.lang.Object
org.opensearch.client.opensearch._types.NodeStatistics
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<NodeStatistics.Builder,NodeStatistics>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class NodeStatistics
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<NodeStatistics.Builder,NodeStatistics>
The statistics about node operations.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<NodeStatistics> Json deserializer forNodeStatistics -
Method Summary
Modifier and TypeMethodDescriptionstatic NodeStatistics.Builderbuilder()booleanfinal intfailed()Required - The number of nodes that rejected the request or failed to respond.final List<ErrorCause> failures()API name:failuresinthashCode()static NodeStatisticsvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal intRequired - The number of nodes that responded successfully to the request.Create a new builderToCopyableBuilderthat is initialised with the current state of this object.final inttotal()Required - The total number of nodes selected by the request.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 forNodeStatistics
-
-
Method Details
-
of
-
failed
public final int failed()Required - The number of nodes that rejected the request or failed to respond. If this value is not 0, then a reason for the rejection or failure is included in the response.API name:
failed -
failures
API name:failures -
successful
public final int successful()Required - The number of nodes that responded successfully to the request.API name:
successful -
total
public final int total()Required - The total number of nodes selected by the request.API name:
total -
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<NodeStatistics.Builder,NodeStatistics> - Returns:
- a new builder instance.
-
builder
-
setupNodeStatisticsDeserializer
protected static void setupNodeStatisticsDeserializer(ObjectDeserializer<NodeStatistics.Builder> op) -
hashCode
public int hashCode() -
equals
-