Class GetReindexResponse

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

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

  • Method Details

    • of

    • completed

      public final boolean completed()
      Required - Whether the reindex task has completed.

      API name: completed

    • id

      public final String id()
      Required - 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.

      API name: id

    • description

      @Nullable public final String description()
      A sanitized description of the reindex operation (source and destination indices, and optionally remote host info).

      API name: description

    • startTimeInMillis

      public final long startTimeInMillis()
      Required - 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. Only present when the request includes the ?human=true query parameter.

      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

      public final long runningTimeInNanos()
      Required - The elapsed running time of the reindex task, in nanoseconds.

      API name: running_time_in_nanos

    • cancelled

      public final boolean cancelled()
      Required - Whether the reindex task has been cancelled.

      API name: cancelled

    • status

      @Nullable public final ReindexStatus status()
      The current progress of the reindex operation.

      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 completed reindex operation, if the task has finished successfully.

      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
    • setupGetReindexResponseDeserializer

      protected static void setupGetReindexResponseDeserializer(ObjectDeserializer<GetReindexResponse.Builder> op)