Class RecoveryStats

java.lang.Object
org.opensearch.client.opensearch._types.RecoveryStats
All Implemented Interfaces:
JsonpSerializable, PlainJsonSerializable, ToCopyableBuilder<RecoveryStats.Builder,RecoveryStats>

@JsonpDeserializable @Generated("org.opensearch.client.codegen.CodeGenerator") public class RecoveryStats extends Object implements PlainJsonSerializable, ToCopyableBuilder<RecoveryStats.Builder,RecoveryStats>
The statistics about recovery operations.
  • Field Details

  • Method Details

    • of

    • currentAsSource

      public final long currentAsSource()
      Required - The number of ongoing recoveries for which this node is the source.

      API name: current_as_source

    • currentAsTarget

      public final long currentAsTarget()
      Required - The number of ongoing recoveries for which this node is the target.

      API name: current_as_target

    • throttleTime

      @Nullable public final Time throttleTime()
      The total amount of time recovery operations have been throttled.

      API name: throttle_time

    • throttleTimeInMillis

      public final long throttleTimeInMillis()
      Required - The total amount of time recovery operations have been throttled in milliseconds.

      API name: throttle_time_in_millis

    • serialize

      public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • toBuilder

      @Nonnull public RecoveryStats.Builder toBuilder()
      Description copied from interface: ToCopyableBuilder
      Create a new builder ToCopyableBuilder that is initialised with the current state of this object.
      Specified by:
      toBuilder in interface ToCopyableBuilder<RecoveryStats.Builder,RecoveryStats>
      Returns:
      a new builder instance.
    • builder

      @Nonnull public static RecoveryStats.Builder builder()
    • setupRecoveryStatsDeserializer

      protected static void setupRecoveryStatsDeserializer(ObjectDeserializer<RecoveryStats.Builder> op)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object