Class ReindexTaskInfo

java.lang.Object
co.elastic.clients.elasticsearch._types.ReindexTaskInfo
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable public class ReindexTaskInfo extends Object implements JsonpSerializable
Information about a single reindex task, as returned by the reindex management APIs.
See Also:
  • Field Details

  • Method Details

    • of

    • id

      public final String id()
      Required - The ID of the reindex task, in nodeId:taskNum format.

      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

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

      public ReindexTaskInfo.Builder rebuild()
      Returns:
      New ReindexTaskInfo.Builder initialized with field values of this instance
    • setupReindexTaskInfoDeserializer

      protected static void setupReindexTaskInfoDeserializer(ObjectDeserializer<ReindexTaskInfo.Builder> op)