Class NodeStatistics

All Implemented Interfaces:

public class NodeStatistics
extends java.lang.Object
implements JsonpSerializable
See Also:
API specification
  • Field Details

  • Method Details

    • 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​( generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal​( generator, JsonpMapper mapper)
    • setupNodeStatisticsDeserializer

      protected static void setupNodeStatisticsDeserializer​(ObjectDeserializer<NodeStatistics.Builder> op)