Class TaskInfo
java.lang.Object
co.elastic.clients.elasticsearch.tasks.TaskInfo
- All Implemented Interfaces:
JsonpSerializable
- Direct Known Subclasses:
ParentTaskInfo
@JsonpDeserializable public class TaskInfo extends java.lang.Object implements JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classTaskInfo.AbstractBuilder<BuilderT extends TaskInfo.AbstractBuilder<BuilderT>>static classTaskInfo.BuilderBuilder forTaskInfo. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<TaskInfo>_DESERIALIZERJson deserializer forTaskInfo -
Constructor Summary
Constructors Modifier Constructor Description protectedTaskInfo(TaskInfo.AbstractBuilder<?> builder) -
Method Summary
Modifier and Type Method Description java.lang.Stringaction()Required - API name:actionbooleancancellable()Required - API name:cancellablejava.lang.Booleancancelled()API name:cancelledjava.lang.Stringdescription()API name:descriptionjava.util.Map<java.lang.String,java.lang.String>headers()Required - API name:headerslongid()Required - API name:idjava.lang.Stringnode()Required - API name:nodejava.lang.StringparentTaskId()API name:parent_task_idTimerunningTime()API name:running_timelongrunningTimeInNanos()Required - 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)longstartTimeInMillis()Required - API name:start_time_in_millisTaskStatusstatus()API name:statusstatic TaskInfotaskInfoOf(java.util.function.Function<TaskInfo.Builder,ObjectBuilder<TaskInfo>> fn)java.lang.StringtoString()java.lang.Stringtype()Required - API name:typeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forTaskInfo
-
-
Constructor Details
-
TaskInfo
-
-
Method Details
-
taskInfoOf
public static TaskInfo taskInfoOf(java.util.function.Function<TaskInfo.Builder,ObjectBuilder<TaskInfo>> fn) -
action
public final java.lang.String action()Required - API name:action -
cancelled
@Nullable public final java.lang.Boolean cancelled()API name:cancelled -
cancellable
public final boolean cancellable()Required - API name:cancellable -
description
@Nullable public final java.lang.String description()API name:description -
headers
public final java.util.Map<java.lang.String,java.lang.String> headers()Required - API name:headers -
id
public final long id()Required - API name:id -
node
public final java.lang.String 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
API name:status -
type
public final java.lang.String type()Required - API name:type -
parentTaskId
@Nullable public final java.lang.String parentTaskId()API name:parent_task_id -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
setupTaskInfoDeserializer
protected static <BuilderT extends TaskInfo.AbstractBuilder<BuilderT>> void setupTaskInfoDeserializer(ObjectDeserializer<BuilderT> op)
-