Class CancelReindexResponse

java.lang.Object
co.elastic.clients.elasticsearch.core.CancelReindexResponse
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable public class CancelReindexResponse extends Object implements JsonpSerializable
See Also:
  • Field Details

  • Method Details

    • of

    • acknowledged

      @Nullable public final Boolean acknowledged()
      Present and true when wait_for_completion=false.

      API name: acknowledged

    • completed

      @Nullable public final Boolean completed()
      Whether the reindex task has completed. Present when wait_for_completion=true.

      API name: completed

    • id

      @Nullable public final String id()
      The ID of the reindex task. The value is the ID assigned when the task was first created and remains stable across node-shutdown relocations. Present when wait_for_completion=true.

      API name: id

    • description

      @Nullable public final String description()
      A sanitized description of the reindex operation.

      API name: description

    • startTimeInMillis

      @Nullable public final Long startTimeInMillis()
      The time at which the reindex task started, in milliseconds since the Unix epoch.

      API name: start_time_in_millis

    • startTime

      @Nullable public final String startTime()
      The time at which the reindex task started, as an ISO 8601 formatted string.

      API name: start_time

    • runningTime

      @Nullable public final Time runningTime()
      The elapsed running time of the reindex task, in a human-readable format. Only present when the request includes the ?human=true query parameter.

      API name: running_time

    • runningTimeInNanos

      @Nullable public final Long runningTimeInNanos()
      The elapsed running time of the reindex task, in nanoseconds.

      API name: running_time_in_nanos

    • cancelled

      @Nullable public final Boolean cancelled()
      Whether the reindex task has been cancelled.

      API name: cancelled

    • status

      @Nullable public final ReindexStatus status()
      The status of the reindex operation at the time of cancellation.

      API name: status

    • error

      @Nullable public final ErrorCause error()
      The error that caused the reindex task to fail, if any.

      API name: error

    • response

      @Nullable public final ReindexTaskResult response()
      The final result of the reindex operation, if it completed before being cancelled.

      API name: response

    • 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)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • setupCancelReindexResponseDeserializer

      protected static void setupCancelReindexResponseDeserializer(ObjectDeserializer<CancelReindexResponse.Builder> op)