Module org.elasticsearch.server
Record Class TaskGroup
java.lang.Object
java.lang.Record
org.elasticsearch.action.admin.cluster.node.tasks.list.TaskGroup
- All Implemented Interfaces:
ToXContent,ToXContentObject
public record TaskGroup(TaskInfo task, List<TaskGroup> childTasks)
extends Record
implements ToXContentObject
Information about a currently running task and all its subtasks.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params -
Field Summary
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TaskGroup.BuilderReturns the value of thechildTasksrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.task()Returns the value of thetaskrecord component.taskInfo()final StringtoString()Returns a string representation of this record class.toXContent(XContentBuilder builder, ToXContent.Params params) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Constructor Details
-
TaskGroup
Creates an instance of aTaskGrouprecord class.- Parameters:
task- the value for thetaskrecord componentchildTasks- the value for thechildTasksrecord component
-
-
Method Details
-
builder
-
taskInfo
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
task
Returns the value of thetaskrecord component.- Returns:
- the value of the
taskrecord component
-
childTasks
Returns the value of thechildTasksrecord component.- Returns:
- the value of the
childTasksrecord component
-