Class GetTasksRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.tasks.GetTasksRequest
Get task information.
Get information about a task currently running in the cluster.
WARNING: The task management API is new and should still be considered a beta feature. The API may change in ways that are not backwards compatible.
If the task identifier is not found, a 404 response code indicates that there are no resources that match the request.
For relocatable tasks, this API transparently follows the task across
graceful shutdown relocations, so callers can keep using the original task
ID. The returned task reports its original_task_id and
original_start_time_in_millis if it is continuing work from an
earlier task.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Endpoint<GetTasksRequest,GetTasksResponse, ErrorResponse> Endpoint "tasks.get". -
Method Summary
Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_ENDPOINT
Endpoint "tasks.get".
-
-
Method Details
-
of
public static GetTasksRequest of(Function<GetTasksRequest.Builder, ObjectBuilder<GetTasksRequest>> fn) -
followRelocations
Internal use onlyAPI name:
follow_relocations -
taskId
Required - The task identifier.API name:
task_id -
timeout
The period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.API name:
timeout -
waitForCompletion
Iftrue, the request blocks until the task has completed.API name:
wait_for_completion -
rebuild
- Returns:
- New
GetTasksRequest.Builderinitialized with field values of this instance
-