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 String
action()
Required - API name:action
final boolean
Required - API name:cancellable
final Boolean
API name:cancelled
final String
Human readable text that identifies the particular request that the task is performing.headers()
Required - API name:headers
final long
id()
Required - API name:id
final String
node()
Required - API name:node
final String
API name:parent_task_id
final Time
API name:running_time
final long
Required - API name:running_time_in_nanos
void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static <BuilderT extends TaskInfo.AbstractBuilder<BuilderT>>
voidsetupTaskInfoDeserializer
(ObjectDeserializer<BuilderT> op) final long
Required - API name:start_time_in_millis
final JsonData
status()
The internal status of the task, which varies from task to task.static TaskInfo
toString()
final String
type()
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_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
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:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupTaskInfoDeserializer
protected static <BuilderT extends TaskInfo.AbstractBuilder<BuilderT>> void setupTaskInfoDeserializer(ObjectDeserializer<BuilderT> op)
-