Class TaskInfo

java.lang.Object
co.elastic.clients.elasticsearch.tasks.TaskInfo
All Implemented Interfaces:
JsonpSerializable
Direct Known Subclasses:
ParentTaskInfo

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

  • Constructor Details

  • Method Details

    • taskInfoOf

      public static TaskInfo taskInfoOf(Function<TaskInfo.Builder,ObjectBuilder<TaskInfo>> fn)
    • action

      public final String action()
      Required - API name: action
    • cancelled

      @Nullable public final Boolean cancelled()
      API name: cancelled
    • cancellable

      public final boolean cancellable()
      Required - API name: cancellable
    • description

      @Nullable public final String description()
      Human readable text that identifies the particular request that the task is performing. For example, it might identify the search request being performed by a search task. Other kinds of tasks have different descriptions, like _reindex which has the source and the destination, or _bulk which just has the number of requests and the destination indices. Many requests will have only an empty description because more detailed information about the request is not easily available or particularly helpful in identifying the request.

      API name: description

    • headers

      public final Map<String,String> headers()
      Required - API name: headers
    • id

      public final long id()
      Required - API name: id
    • node

      public final String node()
      Required - API name: node
    • runningTime

      @Nullable public final Time runningTime()
      API name: running_time
    • runningTimeInNanos

      public final long runningTimeInNanos()
      Required - API name: running_time_in_nanos
    • startTimeInMillis

      public final long startTimeInMillis()
      Required - API name: start_time_in_millis
    • status

      @Nullable public final JsonData status()
      The internal status of the task, which varies from task to task. The format also varies. While the goal is to keep the status for a particular task consistent from version to version, this is not always possible because sometimes the implementation changes. Fields might be removed from the status for a particular request so any parsing you do of the status might break in minor releases.

      API name: status

    • type

      public final String type()
      Required - API name: type
    • parentTaskId

      @Nullable public final String parentTaskId()
      API name: parent_task_id
    • 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
    • setupTaskInfoDeserializer

      protected static <BuilderT extends TaskInfo.AbstractBuilder<BuilderT>> void setupTaskInfoDeserializer(ObjectDeserializer<BuilderT> op)