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 SummaryNested ClassesNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContentToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
- 
Field SummaryFields inherited from interface org.elasticsearch.xcontent.ToXContentEMPTY_PARAMS
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObjectisFragment
- 
Constructor Details- 
TaskGroupCreates an instance of aTaskGrouprecord class.- Parameters:
- task- the value for the- taskrecord component
- childTasks- the value for the- childTasksrecord component
 
 
- 
- 
Method Details- 
builder
- 
taskInfo
- 
toXContentpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
- toXContentin interface- ToXContent
- Throws:
- IOException
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
taskReturns the value of thetaskrecord component.- Returns:
- the value of the taskrecord component
 
- 
childTasksReturns the value of thechildTasksrecord component.- Returns:
- the value of the childTasksrecord component
 
 
-