Class TaskInfo
java.lang.Object
co.elastic.clients.elasticsearch.tasks.TaskInfo
- All Implemented Interfaces:
JsonpSerializable
- Direct Known Subclasses:
ParentTaskInfo
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<TaskInfo>Json deserializer forTaskInfo -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Stringaction()Required - API name:actionfinal booleanRequired - API name:cancellablefinal BooleanAPI name:cancelledfinal StringHuman readable text that identifies the particular request that the task is performing.headers()Required - API name:headersfinal longid()Required - API name:idfinal Stringnode()Required - API name:nodefinal StringAPI name:parent_task_idfinal TimeAPI name:running_timefinal longRequired - API name:running_time_in_nanosvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static <BuilderT extends TaskInfo.AbstractBuilder<BuilderT>>
voidsetupTaskInfoDeserializer(ObjectDeserializer<BuilderT> op) final longRequired - API name:start_time_in_millisfinal JsonDatastatus()The internal status of the task, which varies from task to task.static TaskInfotoString()final Stringtype()Required - API name:type
-
Field Details
-
_DESERIALIZER
Json deserializer forTaskInfo
-
-
Constructor Details
-
TaskInfo
-
-
Method Details
-
taskInfoOf
-
action
Required - API name:action -
cancelled
API name:cancelled -
cancellable
public final boolean cancellable()Required - API name:cancellable -
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_reindexwhich has the source and the destination, or_bulkwhich 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
Required - API name:headers -
id
public final long id()Required - API name:id -
node
Required - API name:node -
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
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
Required - API name:type -
parentTaskId
API name:parent_task_id -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupTaskInfoDeserializer
protected static <BuilderT extends TaskInfo.AbstractBuilder<BuilderT>> void setupTaskInfoDeserializer(ObjectDeserializer<BuilderT> op)
-